18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
28c2ecf20Sopenharmony_ci%YAML 1.2
38c2ecf20Sopenharmony_ci---
48c2ecf20Sopenharmony_ci$id: http://devicetree.org/schemas/leds/backlight/kinetic,ktd253.yaml#
58c2ecf20Sopenharmony_ci$schema: http://devicetree.org/meta-schemas/core.yaml#
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_cititle: Kinetic Technologies KTD253 one-wire backlight
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_cimaintainers:
108c2ecf20Sopenharmony_ci  - Linus Walleij <linus.walleij@linaro.org>
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_cidescription: |
138c2ecf20Sopenharmony_ci  The Kinetic Technologies KTD253 is a white LED backlight that is
148c2ecf20Sopenharmony_ci  controlled by a single GPIO line. If you just turn on the backlight
158c2ecf20Sopenharmony_ci  it goes to maximum backlight then you can set the level of backlight
168c2ecf20Sopenharmony_ci  using pulses on the enable wire. This is sometimes referred to as
178c2ecf20Sopenharmony_ci  "expresswire".
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ciallOf:
208c2ecf20Sopenharmony_ci  - $ref: common.yaml#
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ciproperties:
238c2ecf20Sopenharmony_ci  compatible:
248c2ecf20Sopenharmony_ci    const: kinetic,ktd253
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_ci  enable-gpios:
278c2ecf20Sopenharmony_ci    description: GPIO to use to enable/disable and dim the backlight.
288c2ecf20Sopenharmony_ci    maxItems: 1
298c2ecf20Sopenharmony_ci
308c2ecf20Sopenharmony_ci  default-brightness: true
318c2ecf20Sopenharmony_ci  max-brightness: true
328c2ecf20Sopenharmony_ci
338c2ecf20Sopenharmony_cirequired:
348c2ecf20Sopenharmony_ci  - compatible
358c2ecf20Sopenharmony_ci  - enable-gpios
368c2ecf20Sopenharmony_ci
378c2ecf20Sopenharmony_ciadditionalProperties: false
388c2ecf20Sopenharmony_ci
398c2ecf20Sopenharmony_ciexamples:
408c2ecf20Sopenharmony_ci  - |
418c2ecf20Sopenharmony_ci    #include <dt-bindings/gpio/gpio.h>
428c2ecf20Sopenharmony_ci    backlight {
438c2ecf20Sopenharmony_ci        compatible = "kinetic,ktd253";
448c2ecf20Sopenharmony_ci        enable-gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>;
458c2ecf20Sopenharmony_ci        default-brightness = <13>;
468c2ecf20Sopenharmony_ci    };
47