Back to home page

OSCL-LXR

 
 

    


0001 Analog devices AS3645A device tree bindings
0002 
0003 The AS3645A flash LED controller can drive two LEDs, one high current
0004 flash LED and one indicator LED. The high current flash LED can be
0005 used in torch mode as well.
0006 
0007 Ranges below noted as [a, b] are closed ranges between a and b, i.e. a
0008 and b are included in the range.
0009 
0010 Please also see common.txt in the same directory.
0011 
0012 
0013 Required properties
0014 ===================
0015 
0016 compatible      : Must be "ams,as3645a".
0017 reg             : The I2C address of the device. Typically 0x30.
0018 #address-cells  : 1
0019 #size-cells     : 0
0020 
0021 
0022 Required properties of the flash child node (0)
0023 ===============================================
0024 
0025 reg: 0
0026 flash-timeout-us: Flash timeout in microseconds. The value must be in
0027                   the range [100000, 850000] and divisible by 50000.
0028 flash-max-microamp: Maximum flash current in microamperes. Has to be
0029                     in the range between [200000, 500000] and
0030                     divisible by 20000.
0031 led-max-microamp: Maximum torch (assist) current in microamperes. The
0032                   value must be in the range between [20000, 160000] and
0033                   divisible by 20000.
0034 ams,input-max-microamp: Maximum flash controller input current. The
0035                         value must be in the range [1250000, 2000000]
0036                         and divisible by 50000.
0037 
0038 
0039 Optional properties of the flash child node
0040 ===========================================
0041 
0042 function        :  See Documentation/devicetree/bindings/leds/common.txt.
0043 color           :  See Documentation/devicetree/bindings/leds/common.txt.
0044 label           :  See Documentation/devicetree/bindings/leds/common.txt (deprecated).
0045 
0046 
0047 Required properties of the indicator child node (1)
0048 ===================================================
0049 
0050 reg: 1
0051 led-max-microamp: Maximum indicator current. The allowed values are
0052                   2500, 5000, 7500 and 10000.
0053 
0054 Optional properties of the indicator child node
0055 ===============================================
0056 
0057 function        :  See Documentation/devicetree/bindings/leds/common.txt.
0058 color           :  See Documentation/devicetree/bindings/leds/common.txt.
0059 label           :  See Documentation/devicetree/bindings/leds/common.txt (deprecated).
0060 
0061 
0062 Example
0063 =======
0064 
0065 #include <dt-bindings/leds/common.h>
0066 
0067         as3645a@30 {
0068                 #address-cells = <1>;
0069                 #size-cells = <0>;
0070                 reg = <0x30>;
0071                 compatible = "ams,as3645a";
0072                 led@0 {
0073                         reg = <0x0>;
0074                         flash-timeout-us = <150000>;
0075                         flash-max-microamp = <320000>;
0076                         led-max-microamp = <60000>;
0077                         ams,input-max-microamp = <1750000>;
0078                         function = LED_FUNCTION_FLASH;
0079                 };
0080                 led@1 {
0081                         reg = <0x1>;
0082                         led-max-microamp = <10000>;
0083                         function = LED_FUNCTION_INDICATOR;
0084                 };
0085         };