xref: /linux/Documentation/devicetree/bindings/leds/backlight/kinetic,ktd2801.yaml (revision 79790b6818e96c58fe2bffee1b418c16e64e7b80)
1*922235a9SDuje Mihanović# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2*922235a9SDuje Mihanović%YAML 1.2
3*922235a9SDuje Mihanović---
4*922235a9SDuje Mihanović$id: http://devicetree.org/schemas/leds/backlight/kinetic,ktd2801.yaml#
5*922235a9SDuje Mihanović$schema: http://devicetree.org/meta-schemas/core.yaml#
6*922235a9SDuje Mihanović
7*922235a9SDuje Mihanovićtitle: Kinetic Technologies KTD2801 one-wire backlight
8*922235a9SDuje Mihanović
9*922235a9SDuje Mihanovićmaintainers:
10*922235a9SDuje Mihanović  - Duje Mihanović <duje.mihanovic@skole.hr>
11*922235a9SDuje Mihanović
12*922235a9SDuje Mihanovićdescription: |
13*922235a9SDuje Mihanović  The Kinetic Technologies KTD2801 is a LED backlight driver controlled
14*922235a9SDuje Mihanović  by a single GPIO line. The driver can be controlled with a PWM signal
15*922235a9SDuje Mihanović  or by pulsing the GPIO line to set the backlight level. This is called
16*922235a9SDuje Mihanović  "ExpressWire".
17*922235a9SDuje Mihanović
18*922235a9SDuje MihanovićallOf:
19*922235a9SDuje Mihanović  - $ref: common.yaml#
20*922235a9SDuje Mihanović
21*922235a9SDuje Mihanovićproperties:
22*922235a9SDuje Mihanović  compatible:
23*922235a9SDuje Mihanović    const: kinetic,ktd2801
24*922235a9SDuje Mihanović
25*922235a9SDuje Mihanović  ctrl-gpios:
26*922235a9SDuje Mihanović    maxItems: 1
27*922235a9SDuje Mihanović
28*922235a9SDuje Mihanović  default-brightness: true
29*922235a9SDuje Mihanović  max-brightness: true
30*922235a9SDuje Mihanović
31*922235a9SDuje Mihanovićrequired:
32*922235a9SDuje Mihanović  - compatible
33*922235a9SDuje Mihanović  - ctrl-gpios
34*922235a9SDuje Mihanović
35*922235a9SDuje MihanovićadditionalProperties: false
36*922235a9SDuje Mihanović
37*922235a9SDuje Mihanovićexamples:
38*922235a9SDuje Mihanović  - |
39*922235a9SDuje Mihanović    #include <dt-bindings/gpio/gpio.h>
40*922235a9SDuje Mihanović
41*922235a9SDuje Mihanović    backlight {
42*922235a9SDuje Mihanović        compatible = "kinetic,ktd2801";
43*922235a9SDuje Mihanović        ctrl-gpios = <&gpio 97 GPIO_ACTIVE_HIGH>;
44*922235a9SDuje Mihanović        max-brightness = <210>;
45*922235a9SDuje Mihanović        default-brightness = <100>;
46*922235a9SDuje Mihanović    };
47