0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/leds/kinetic,ktd2692.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: KTD2692 Flash LED Driver from Kinetic Technologies
0008
0009 maintainers:
0010 - Markuss Broks <markuss.broks@gmail.com>
0011
0012 description: |
0013 KTD2692 is the ideal power solution for high-power flash LEDs.
0014 It uses ExpressWire single-wire programming for maximum flexibility.
0015
0016 The ExpressWire interface through CTRL pin can control LED on/off and
0017 enable/disable the IC, Movie(max 1/3 of Flash current) / Flash mode current,
0018 Flash timeout, LVP(low voltage protection).
0019
0020 Also, When the AUX pin is pulled high while CTRL pin is high,
0021 LED current will be ramped up to the flash-mode current level.
0022
0023 properties:
0024 compatible:
0025 const: kinetic,ktd2692
0026
0027 ctrl-gpios:
0028 maxItems: 1
0029 description: Specifier of the GPIO connected to CTRL pin.
0030
0031 aux-gpios:
0032 maxItems: 1
0033 description: Specifier of the GPIO connected to CTRL pin.
0034
0035 vin-supply:
0036 description: LED supply (2.7V to 5.5V).
0037
0038 led:
0039 type: object
0040 $ref: common.yaml#
0041 description: Properties for the LED.
0042 properties:
0043 function: true
0044 color: true
0045 flash-max-timeout-us:
0046 description: Flash LED maximum timeout.
0047
0048 led-max-microamp:
0049 maximum: 300000
0050 description: Minimum Threshold for Timer protection
0051 is defined internally (Maximum 300mA).
0052
0053 flash-max-microamp:
0054 maximum: 300000
0055 description: Flash LED maximum current
0056 Formula - I(uA) = 15000000 / Rset.
0057
0058 additionalProperties: false
0059
0060 required:
0061 - compatible
0062 - ctrl-gpios
0063 - led
0064
0065 additionalProperties: false
0066
0067 examples:
0068 - |
0069 #include <dt-bindings/gpio/gpio.h>
0070 #include <dt-bindings/leds/common.h>
0071
0072 ktd2692 {
0073 compatible = "kinetic,ktd2692";
0074 ctrl-gpios = <&gpc0 1 0>;
0075 aux-gpios = <&gpc0 2 0>;
0076 vin-supply = <&vbat>;
0077
0078 led {
0079 function = LED_FUNCTION_FLASH;
0080 color = <LED_COLOR_ID_WHITE>;
0081 flash-max-timeout-us = <250000>;
0082 flash-max-microamp = <150000>;
0083 led-max-microamp = <25000>;
0084 };
0085 };
0086
0087 ...