xref: /linux/Documentation/devicetree/bindings/leds/backlight/kinetic,ktd253.yaml (revision 8be98d2f2a0a262f8bf8a0bc1fdf522b3c7aab17)
1299beae5SLinus Walleij# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2299beae5SLinus Walleij%YAML 1.2
3299beae5SLinus Walleij---
4299beae5SLinus Walleij$id: http://devicetree.org/schemas/leds/backlight/kinetic,ktd253.yaml#
5299beae5SLinus Walleij$schema: http://devicetree.org/meta-schemas/core.yaml#
6299beae5SLinus Walleij
7*4b79ec9aSLinus Walleijtitle: Kinetic Technologies KTD253 and KTD259 one-wire backlight
8299beae5SLinus Walleij
9299beae5SLinus Walleijmaintainers:
10299beae5SLinus Walleij  - Linus Walleij <linus.walleij@linaro.org>
11299beae5SLinus Walleij
12299beae5SLinus Walleijdescription: |
13*4b79ec9aSLinus Walleij  The Kinetic Technologies KTD253 and KTD259 are white LED backlights
14299beae5SLinus Walleij  controlled by a single GPIO line. If you just turn on the backlight
15299beae5SLinus Walleij  it goes to maximum backlight then you can set the level of backlight
16299beae5SLinus Walleij  using pulses on the enable wire. This is sometimes referred to as
17299beae5SLinus Walleij  "expresswire".
18299beae5SLinus Walleij
19299beae5SLinus WalleijallOf:
20299beae5SLinus Walleij  - $ref: common.yaml#
21299beae5SLinus Walleij
22299beae5SLinus Walleijproperties:
23299beae5SLinus Walleij  compatible:
24*4b79ec9aSLinus Walleij    items:
25*4b79ec9aSLinus Walleij      - enum:
26*4b79ec9aSLinus Walleij          - kinetic,ktd253
27*4b79ec9aSLinus Walleij          - kinetic,ktd259
28299beae5SLinus Walleij
29299beae5SLinus Walleij  enable-gpios:
30299beae5SLinus Walleij    description: GPIO to use to enable/disable and dim the backlight.
31299beae5SLinus Walleij    maxItems: 1
32299beae5SLinus Walleij
33299beae5SLinus Walleij  default-brightness: true
34299beae5SLinus Walleij  max-brightness: true
35299beae5SLinus Walleij
36299beae5SLinus Walleijrequired:
37299beae5SLinus Walleij  - compatible
38299beae5SLinus Walleij  - enable-gpios
39299beae5SLinus Walleij
40299beae5SLinus WalleijadditionalProperties: false
41299beae5SLinus Walleij
42299beae5SLinus Walleijexamples:
43299beae5SLinus Walleij  - |
44299beae5SLinus Walleij    #include <dt-bindings/gpio/gpio.h>
45299beae5SLinus Walleij    backlight {
46299beae5SLinus Walleij        compatible = "kinetic,ktd253";
47299beae5SLinus Walleij        enable-gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>;
48299beae5SLinus Walleij        default-brightness = <13>;
49299beae5SLinus Walleij    };
50