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

dt-bindings: leds: backlight: ktz8866: Add reg property and update example

The kinetic,ktz8866 is a I2C driver, so add the missing reg property.
And update example to make it clear.

Signed-off-by: Jianhua Lu <lujianhua000@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Link: https://lore.kernel.org/r/20230428160246.16982-1-lujianhua000@gmail.com
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Jianhua Lu and committed by
Lee Jones
77036e09 ac9a7868

+18 -9
+18 -9
Documentation/devicetree/bindings/leds/backlight/kinetic,ktz8866.yaml
··· 21 21 compatible: 22 22 const: kinetic,ktz8866 23 23 24 + reg: 25 + maxItems: 1 26 + 24 27 vddpos-supply: 25 28 description: positive boost supply regulator. 26 29 ··· 56 53 57 54 required: 58 55 - compatible 56 + - reg 59 57 - vddpos-supply 60 58 - vddneg-supply 61 59 - enable-gpios ··· 67 63 - | 68 64 #include <dt-bindings/gpio/gpio.h> 69 65 70 - backlight { 71 - compatible = "kinetic,ktz8866"; 66 + i2c { 67 + #address-cells = <1>; 68 + #size-cells = <0>; 72 69 73 - vddpos-supply = <&bl_vddpos_5p5>; 74 - vddneg-supply = <&bl_vddneg_5p5>; 75 - enable-gpios = <&tlmm 139 GPIO_ACTIVE_HIGH>; 76 - current-num-sinks = <5>; 77 - kinetic,current-ramp-delay-ms = <128>; 78 - kinetic,led-enable-ramp-delay-ms = <1>; 79 - kinetic,enable-lcd-bias; 70 + backlight@11 { 71 + compatible = "kinetic,ktz8866"; 72 + reg = <0x11>; 73 + vddpos-supply = <&bl_vddpos_5p5>; 74 + vddneg-supply = <&bl_vddneg_5p5>; 75 + enable-gpios = <&tlmm 139 GPIO_ACTIVE_HIGH>; 76 + current-num-sinks = <5>; 77 + kinetic,current-ramp-delay-ms = <128>; 78 + kinetic,led-enable-ramp-delay-ms = <1>; 79 + kinetic,enable-lcd-bias; 80 + }; 80 81 };