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