1b2dbde54SPavel Machek* Analog Devices ADP1653 flash LED driver 2b2dbde54SPavel Machek 3b2dbde54SPavel MachekRequired Properties: 4b2dbde54SPavel Machek 5b2dbde54SPavel Machek - compatible: Must contain "adi,adp1653" 6b2dbde54SPavel Machek 7b2dbde54SPavel Machek - reg: I2C slave address 8b2dbde54SPavel Machek 9b2dbde54SPavel Machek - enable-gpios: Specifier of the GPIO connected to EN pin 10b2dbde54SPavel Machek 11b2dbde54SPavel MachekThere are two LED outputs available - flash and indicator. One LED is 12b2dbde54SPavel Machekrepresented by one child node, nodes need to be named "flash" and "indicator". 13b2dbde54SPavel Machek 14b2dbde54SPavel MachekRequired properties of the LED child node: 15*dc17340eSPali Rohár- led-max-microamp : see Documentation/devicetree/bindings/leds/common.txt 16b2dbde54SPavel Machek 17b2dbde54SPavel MachekRequired properties of the flash LED child node: 18b2dbde54SPavel Machek 19b2dbde54SPavel Machek- flash-max-microamp : see Documentation/devicetree/bindings/leds/common.txt 20b2dbde54SPavel Machek- flash-timeout-us : see Documentation/devicetree/bindings/leds/common.txt 21*dc17340eSPali Rohár- led-max-microamp : see Documentation/devicetree/bindings/leds/common.txt 22b2dbde54SPavel Machek 23b2dbde54SPavel MachekExample: 24b2dbde54SPavel Machek 25b2dbde54SPavel Machek adp1653: led-controller@30 { 26b2dbde54SPavel Machek compatible = "adi,adp1653"; 27b2dbde54SPavel Machek reg = <0x30>; 28b2dbde54SPavel Machek enable-gpios = <&gpio3 24 GPIO_ACTIVE_HIGH>; /* 88 */ 29b2dbde54SPavel Machek 30b2dbde54SPavel Machek flash { 31b2dbde54SPavel Machek flash-timeout-us = <500000>; 32b2dbde54SPavel Machek flash-max-microamp = <320000>; 33*dc17340eSPali Rohár led-max-microamp = <50000>; 34b2dbde54SPavel Machek }; 35b2dbde54SPavel Machek indicator { 36*dc17340eSPali Rohár led-max-microamp = <17500>; 37b2dbde54SPavel Machek }; 38b2dbde54SPavel Machek }; 39