0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/leds/backlight/kinetic,ktd253.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Kinetic Technologies KTD253 and KTD259 one-wire backlight
0008
0009 maintainers:
0010 - Linus Walleij <linus.walleij@linaro.org>
0011
0012 description: |
0013 The Kinetic Technologies KTD253 and KTD259 are white LED backlights
0014 controlled by a single GPIO line. If you just turn on the backlight
0015 it goes to maximum backlight then you can set the level of backlight
0016 using pulses on the enable wire. This is sometimes referred to as
0017 "expresswire".
0018
0019 allOf:
0020 - $ref: common.yaml#
0021
0022 properties:
0023 compatible:
0024 items:
0025 - enum:
0026 - kinetic,ktd253
0027 - kinetic,ktd259
0028
0029 enable-gpios:
0030 description: GPIO to use to enable/disable and dim the backlight.
0031 maxItems: 1
0032
0033 default-brightness: true
0034 max-brightness: true
0035
0036 required:
0037 - compatible
0038 - enable-gpios
0039
0040 additionalProperties: false
0041
0042 examples:
0043 - |
0044 #include <dt-bindings/gpio/gpio.h>
0045 backlight {
0046 compatible = "kinetic,ktd253";
0047 enable-gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>;
0048 default-brightness = <13>;
0049 };