Skip to content

Commit 77036e0

Browse files
lujianhualag-linaro
authored andcommitted
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>
1 parent ac9a786 commit 77036e0

1 file changed

Lines changed: 19 additions & 10 deletions

File tree

Documentation/devicetree/bindings/leds/backlight/kinetic,ktz8866.yaml

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ properties:
2121
compatible:
2222
const: kinetic,ktz8866
2323

24+
reg:
25+
maxItems: 1
26+
2427
vddpos-supply:
2528
description: positive boost supply regulator.
2629

@@ -53,6 +56,7 @@ properties:
5356

5457
required:
5558
- compatible
59+
- reg
5660
- vddpos-supply
5761
- vddneg-supply
5862
- enable-gpios
@@ -63,14 +67,19 @@ examples:
6367
- |
6468
#include <dt-bindings/gpio/gpio.h>
6569
66-
backlight {
67-
compatible = "kinetic,ktz8866";
68-
69-
vddpos-supply = <&bl_vddpos_5p5>;
70-
vddneg-supply = <&bl_vddneg_5p5>;
71-
enable-gpios = <&tlmm 139 GPIO_ACTIVE_HIGH>;
72-
current-num-sinks = <5>;
73-
kinetic,current-ramp-delay-ms = <128>;
74-
kinetic,led-enable-ramp-delay-ms = <1>;
75-
kinetic,enable-lcd-bias;
70+
i2c {
71+
#address-cells = <1>;
72+
#size-cells = <0>;
73+
74+
backlight@11 {
75+
compatible = "kinetic,ktz8866";
76+
reg = <0x11>;
77+
vddpos-supply = <&bl_vddpos_5p5>;
78+
vddneg-supply = <&bl_vddneg_5p5>;
79+
enable-gpios = <&tlmm 139 GPIO_ACTIVE_HIGH>;
80+
current-num-sinks = <5>;
81+
kinetic,current-ramp-delay-ms = <128>;
82+
kinetic,led-enable-ramp-delay-ms = <1>;
83+
kinetic,enable-lcd-bias;
84+
};
7685
};

0 commit comments

Comments
 (0)