xref: /linux/Documentation/devicetree/bindings/leds/backlight/kinetic,ktz8866.yaml (revision cdd5b5a9761fd66d17586e4f4ba6588c70e640ea)
1c8990c38SJianhua Lu# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2c8990c38SJianhua Lu%YAML 1.2
3c8990c38SJianhua Lu---
4c8990c38SJianhua Lu$id: http://devicetree.org/schemas/leds/backlight/kinetic,ktz8866.yaml#
5c8990c38SJianhua Lu$schema: http://devicetree.org/meta-schemas/core.yaml#
6c8990c38SJianhua Lu
7c8990c38SJianhua Lutitle: Kinetic Technologies KTZ8866 backlight
8c8990c38SJianhua Lu
9c8990c38SJianhua Lumaintainers:
10c8990c38SJianhua Lu  - Jianhua Lu <lujianhua000@gmail.com>
11c8990c38SJianhua Lu
12c8990c38SJianhua Ludescription: |
13c8990c38SJianhua Lu  The Kinetic Technologies KTZ8866 is a high efficiency 6-channels-current-sinks
14c8990c38SJianhua Lu  led backlight with dual lcd bias power.
15c8990c38SJianhua Lu  https://www.kinet-ic.com/ktz8866/
16c8990c38SJianhua Lu
17c8990c38SJianhua LuallOf:
18c8990c38SJianhua Lu  - $ref: common.yaml#
19c8990c38SJianhua Lu
20c8990c38SJianhua Luproperties:
21c8990c38SJianhua Lu  compatible:
22c8990c38SJianhua Lu    const: kinetic,ktz8866
23c8990c38SJianhua Lu
2477036e09SJianhua Lu  reg:
2577036e09SJianhua Lu    maxItems: 1
2677036e09SJianhua Lu
27c8990c38SJianhua Lu  vddpos-supply:
28c8990c38SJianhua Lu    description: positive boost supply regulator.
29c8990c38SJianhua Lu
30c8990c38SJianhua Lu  vddneg-supply:
31c8990c38SJianhua Lu    description: negative boost supply regulator.
32c8990c38SJianhua Lu
33c8990c38SJianhua Lu  enable-gpios:
34c8990c38SJianhua Lu    description: GPIO to use to enable/disable the backlight (HWEN pin).
35c8990c38SJianhua Lu    maxItems: 1
36c8990c38SJianhua Lu
37c8990c38SJianhua Lu  current-num-sinks:
38c8990c38SJianhua Lu    description: number of the LED current sinks' channels.
39*f0fb7651SRob Herring    $ref: /schemas/types.yaml#/definitions/uint32
40c8990c38SJianhua Lu    enum: [1, 2, 3, 4, 5, 6]
41c8990c38SJianhua Lu
42c8990c38SJianhua Lu  kinetic,current-ramp-delay-ms:
43c8990c38SJianhua Lu    description: |
44c8990c38SJianhua Lu      LED current ramping delay time in milliseconds, note that the
45c8990c38SJianhua Lu      case 1 will be mapped to 1μs.
46c8990c38SJianhua Lu    enum: [1, 2, 4, 8, 16, 32, 64, 128, 192, 256, 320, 384, 448, 512, 576, 640]
47c8990c38SJianhua Lu
48c8990c38SJianhua Lu  kinetic,led-enable-ramp-delay-ms:
49c8990c38SJianhua Lu    description: |
50c8990c38SJianhua Lu      LED on/off ramping delay time in milliseconds, note that the case 0 will be
51c8990c38SJianhua Lu      mapped to 512μs because ktz8866 can't ramp faster than it.
52c8990c38SJianhua Lu    enum: [0, 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384]
53c8990c38SJianhua Lu
54c8990c38SJianhua Lu  kinetic,enable-lcd-bias:
55c8990c38SJianhua Lu    description: Set if we want to output bias power supply for LCD.
56c8990c38SJianhua Lu    type: boolean
57c8990c38SJianhua Lu
58c8990c38SJianhua Lurequired:
59c8990c38SJianhua Lu  - compatible
6077036e09SJianhua Lu  - reg
61c8990c38SJianhua Lu  - vddpos-supply
62c8990c38SJianhua Lu  - vddneg-supply
63c8990c38SJianhua Lu  - enable-gpios
64c8990c38SJianhua Lu
65c8990c38SJianhua LuunevaluatedProperties: false
66c8990c38SJianhua Lu
67c8990c38SJianhua Luexamples:
68c8990c38SJianhua Lu  - |
69c8990c38SJianhua Lu    #include <dt-bindings/gpio/gpio.h>
70c8990c38SJianhua Lu
7177036e09SJianhua Lu    i2c {
7277036e09SJianhua Lu        #address-cells = <1>;
7377036e09SJianhua Lu        #size-cells = <0>;
74c8990c38SJianhua Lu
7577036e09SJianhua Lu        backlight@11 {
7677036e09SJianhua Lu            compatible = "kinetic,ktz8866";
7777036e09SJianhua Lu            reg = <0x11>;
78c8990c38SJianhua Lu            vddpos-supply = <&bl_vddpos_5p5>;
79c8990c38SJianhua Lu            vddneg-supply = <&bl_vddneg_5p5>;
80c8990c38SJianhua Lu            enable-gpios = <&tlmm 139 GPIO_ACTIVE_HIGH>;
81c8990c38SJianhua Lu            current-num-sinks = <5>;
82c8990c38SJianhua Lu            kinetic,current-ramp-delay-ms = <128>;
83c8990c38SJianhua Lu            kinetic,led-enable-ramp-delay-ms = <1>;
84c8990c38SJianhua Lu            kinetic,enable-lcd-bias;
85c8990c38SJianhua Lu        };
8677036e09SJianhua Lu    };
87