Commit 77036e09 authored by Jianhua Lu's avatar Jianhua Lu Committed by Lee Jones
Browse files

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: default avatarJianhua Lu <lujianhua000@gmail.com>
Reviewed-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: default avatarDaniel Thompson <daniel.thompson@linaro.org>
Link: https://lore.kernel.org/r/20230428160246.16982-1-lujianhua000@gmail.com


Signed-off-by: default avatarLee Jones <lee@kernel.org>
parent ac9a7868
Loading
Loading
Loading
Loading
+19 −10
Original line number Diff line number Diff line
@@ -21,6 +21,9 @@ properties:
  compatible:
    const: kinetic,ktz8866

  reg:
    maxItems: 1

  vddpos-supply:
    description: positive boost supply regulator.

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

required:
  - compatible
  - reg
  - vddpos-supply
  - vddneg-supply
  - enable-gpios
@@ -63,9 +67,13 @@ examples:
  - |
    #include <dt-bindings/gpio/gpio.h>

    backlight {
        compatible = "kinetic,ktz8866";
    i2c {
        #address-cells = <1>;
        #size-cells = <0>;

        backlight@11 {
            compatible = "kinetic,ktz8866";
            reg = <0x11>;
            vddpos-supply = <&bl_vddpos_5p5>;
            vddneg-supply = <&bl_vddneg_5p5>;
            enable-gpios = <&tlmm 139 GPIO_ACTIVE_HIGH>;
@@ -74,3 +82,4 @@ examples:
            kinetic,led-enable-ramp-delay-ms = <1>;
            kinetic,enable-lcd-bias;
        };
    };