Debian Codegraph @

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

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