xref: /freebsd/sys/contrib/device-tree/Bindings/leds/backlight/kinetic,ktd2801.yaml (revision 01950c46b8155250f64374fb72fc11faa44bf099)
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
7title: Kinetic Technologies KTD2801 one-wire backlight
8
9maintainers:
10  - Duje Mihanović <duje.mihanovic@skole.hr>
11
12description: |
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
18allOf:
19  - $ref: common.yaml#
20
21properties:
22  compatible:
23    const: kinetic,ktd2801
24
25  ctrl-gpios:
26    maxItems: 1
27
28  default-brightness: true
29  max-brightness: true
30
31required:
32  - compatible
33  - ctrl-gpios
34
35additionalProperties: false
36
37examples:
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    };
47