Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: leds-lp55xx: Add ti,charge-pump-mode

Add a binding to configure the internal charge pump for lp55xx.

Signed-off-by: Maarten Zanders <maarten.zanders@mind.be>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20230421075305.37597-2-maarten.zanders@mind.be

authored by

Maarten Zanders and committed by
Lee Jones
91e47d40 d1b9e139

+20
+10
Documentation/devicetree/bindings/leds/leds-lp55xx.yaml
··· 66 66 '#size-cells': 67 67 const: 0 68 68 69 + ti,charge-pump-mode: 70 + description: 71 + Set the operating mode of the internal charge pump as defined in 72 + <dt-bindings/leds/leds-lp55xx.h>. 73 + $ref: /schemas/types.yaml#/definitions/uint32 74 + default: 3 # auto 75 + maximum: 3 76 + 69 77 patternProperties: 70 78 '^multi-led@[0-8]$': 71 79 type: object ··· 160 152 examples: 161 153 - | 162 154 #include <dt-bindings/leds/common.h> 155 + #include <dt-bindings/leds/leds-lp55xx.h> 163 156 164 157 i2c { 165 158 #address-cells = <1>; ··· 173 164 reg = <0x32>; 174 165 clock-mode = /bits/ 8 <2>; 175 166 pwr-sel = /bits/ 8 <3>; /* D1~9 connected to VOUT */ 167 + ti,charge-pump-mode = <LP55XX_CP_BYPASS>; 176 168 177 169 led@0 { 178 170 reg = <0>;
+10
include/dt-bindings/leds/leds-lp55xx.h
··· 1 + /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ 2 + #ifndef _DT_BINDINGS_LEDS_LP55XX_H 3 + #define _DT_BINDINGS_LEDS_LP55XX_H 4 + 5 + #define LP55XX_CP_OFF 0 6 + #define LP55XX_CP_BYPASS 1 7 + #define LP55XX_CP_BOOST 2 8 + #define LP55XX_CP_AUTO 3 9 + 10 + #endif /* _DT_BINDINGS_LEDS_LP55XX_H */