^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) * Texas Instruments - lm3601x Single-LED Flash Driver
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) The LM3601X are ultra-small LED flash drivers that
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) provide a high level of adjustability.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) Required properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) - compatible : Can be one of the following
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) "ti,lm36010"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) "ti,lm36011"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) - reg : I2C slave address
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) - #address-cells : 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) - #size-cells : 0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) Required child properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) - reg : 0 - Indicates a IR mode
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 1 - Indicates a Torch (white LED) mode
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) Required properties for flash LED child nodes:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) See Documentation/devicetree/bindings/leds/common.txt
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) - flash-max-microamp : Range from 11mA - 1.5A
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) - flash-max-timeout-us : Range from 40ms - 1600ms
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) - led-max-microamp : Range from 2.4mA - 376mA
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) Optional child properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) - function : see Documentation/devicetree/bindings/leds/common.txt
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) - color : see Documentation/devicetree/bindings/leds/common.txt
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) - label : see Documentation/devicetree/bindings/leds/common.txt (deprecated)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) Example:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) #include <dt-bindings/leds/common.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) led-controller@64 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) compatible = "ti,lm36010";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) #address-cells = <1>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) #size-cells = <0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) reg = <0x64>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) led@0 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) reg = <1>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) function = LED_FUNCTION_TORCH;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) color = <LED_COLOR_ID_WHITE>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) led-max-microamp = <376000>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) flash-max-microamp = <1500000>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) flash-max-timeout-us = <1600000>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) For more product information please see the links below:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) https://www.ti.com/product/LM36010
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) https://www.ti.com/product/LM36011