1*d5b0e70fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*d5b0e70fSEmmanuel Vadot%YAML 1.2
3*d5b0e70fSEmmanuel Vadot---
4*d5b0e70fSEmmanuel Vadot$id: http://devicetree.org/schemas/leds/kinetic,ktd2692.yaml#
5*d5b0e70fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*d5b0e70fSEmmanuel Vadot
7*d5b0e70fSEmmanuel Vadottitle: KTD2692 Flash LED Driver from Kinetic Technologies
8*d5b0e70fSEmmanuel Vadot
9*d5b0e70fSEmmanuel Vadotmaintainers:
10*d5b0e70fSEmmanuel Vadot  - Markuss Broks <markuss.broks@gmail.com>
11*d5b0e70fSEmmanuel Vadot
12*d5b0e70fSEmmanuel Vadotdescription: |
13*d5b0e70fSEmmanuel Vadot  KTD2692 is the ideal power solution for high-power flash LEDs.
14*d5b0e70fSEmmanuel Vadot  It uses ExpressWire single-wire programming for maximum flexibility.
15*d5b0e70fSEmmanuel Vadot
16*d5b0e70fSEmmanuel Vadot  The ExpressWire interface through CTRL pin can control LED on/off and
17*d5b0e70fSEmmanuel Vadot  enable/disable the IC, Movie(max 1/3 of Flash current) / Flash mode current,
18*d5b0e70fSEmmanuel Vadot  Flash timeout, LVP(low voltage protection).
19*d5b0e70fSEmmanuel Vadot
20*d5b0e70fSEmmanuel Vadot  Also, When the AUX pin is pulled high while CTRL pin is high,
21*d5b0e70fSEmmanuel Vadot  LED current will be ramped up to the flash-mode current level.
22*d5b0e70fSEmmanuel Vadot
23*d5b0e70fSEmmanuel Vadotproperties:
24*d5b0e70fSEmmanuel Vadot  compatible:
25*d5b0e70fSEmmanuel Vadot    const: kinetic,ktd2692
26*d5b0e70fSEmmanuel Vadot
27*d5b0e70fSEmmanuel Vadot  ctrl-gpios:
28*d5b0e70fSEmmanuel Vadot    maxItems: 1
29*d5b0e70fSEmmanuel Vadot    description: Specifier of the GPIO connected to CTRL pin.
30*d5b0e70fSEmmanuel Vadot
31*d5b0e70fSEmmanuel Vadot  aux-gpios:
32*d5b0e70fSEmmanuel Vadot    maxItems: 1
33*d5b0e70fSEmmanuel Vadot    description: Specifier of the GPIO connected to CTRL pin.
34*d5b0e70fSEmmanuel Vadot
35*d5b0e70fSEmmanuel Vadot  vin-supply:
36*d5b0e70fSEmmanuel Vadot    description: LED supply (2.7V to 5.5V).
37*d5b0e70fSEmmanuel Vadot
38*d5b0e70fSEmmanuel Vadot  led:
39*d5b0e70fSEmmanuel Vadot    type: object
40*d5b0e70fSEmmanuel Vadot    $ref: common.yaml#
41*d5b0e70fSEmmanuel Vadot    description: Properties for the LED.
42*d5b0e70fSEmmanuel Vadot    properties:
43*d5b0e70fSEmmanuel Vadot      function: true
44*d5b0e70fSEmmanuel Vadot      color: true
45*d5b0e70fSEmmanuel Vadot      flash-max-timeout-us:
46*d5b0e70fSEmmanuel Vadot        description: Flash LED maximum timeout.
47*d5b0e70fSEmmanuel Vadot
48*d5b0e70fSEmmanuel Vadot      led-max-microamp:
49*d5b0e70fSEmmanuel Vadot        maximum: 300000
50*d5b0e70fSEmmanuel Vadot        description: Minimum Threshold for Timer protection
51*d5b0e70fSEmmanuel Vadot          is defined internally (Maximum 300mA).
52*d5b0e70fSEmmanuel Vadot
53*d5b0e70fSEmmanuel Vadot      flash-max-microamp:
54*d5b0e70fSEmmanuel Vadot        maximum: 300000
55*d5b0e70fSEmmanuel Vadot        description: Flash LED maximum current
56*d5b0e70fSEmmanuel Vadot          Formula - I(uA) = 15000000 / Rset.
57*d5b0e70fSEmmanuel Vadot
58*d5b0e70fSEmmanuel Vadot    additionalProperties: false
59*d5b0e70fSEmmanuel Vadot
60*d5b0e70fSEmmanuel Vadotrequired:
61*d5b0e70fSEmmanuel Vadot  - compatible
62*d5b0e70fSEmmanuel Vadot  - ctrl-gpios
63*d5b0e70fSEmmanuel Vadot  - led
64*d5b0e70fSEmmanuel Vadot
65*d5b0e70fSEmmanuel VadotadditionalProperties: false
66*d5b0e70fSEmmanuel Vadot
67*d5b0e70fSEmmanuel Vadotexamples:
68*d5b0e70fSEmmanuel Vadot  - |
69*d5b0e70fSEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
70*d5b0e70fSEmmanuel Vadot    #include <dt-bindings/leds/common.h>
71*d5b0e70fSEmmanuel Vadot
72*d5b0e70fSEmmanuel Vadot    ktd2692 {
73*d5b0e70fSEmmanuel Vadot      compatible = "kinetic,ktd2692";
74*d5b0e70fSEmmanuel Vadot      ctrl-gpios = <&gpc0 1 0>;
75*d5b0e70fSEmmanuel Vadot      aux-gpios = <&gpc0 2 0>;
76*d5b0e70fSEmmanuel Vadot      vin-supply = <&vbat>;
77*d5b0e70fSEmmanuel Vadot
78*d5b0e70fSEmmanuel Vadot      led {
79*d5b0e70fSEmmanuel Vadot        function = LED_FUNCTION_FLASH;
80*d5b0e70fSEmmanuel Vadot        color = <LED_COLOR_ID_WHITE>;
81*d5b0e70fSEmmanuel Vadot        flash-max-timeout-us = <250000>;
82*d5b0e70fSEmmanuel Vadot        flash-max-microamp = <150000>;
83*d5b0e70fSEmmanuel Vadot        led-max-microamp = <25000>;
84*d5b0e70fSEmmanuel Vadot      };
85*d5b0e70fSEmmanuel Vadot    };
86*d5b0e70fSEmmanuel Vadot
87*d5b0e70fSEmmanuel Vadot...
88