4e7d98627cbf9e4b51ef441c1bd137d3b767cfbb
[linux-block.git] / Documentation / devicetree / bindings / iio / light / tsl2772.txt
1 * AMS/TAOS ALS and proximity sensor
2
3 Required properties:
4
5   - compatible: Should be one of
6                 "amstaos,tsl2571"
7                 "amstaos,tsl2671"
8                 "amstaos,tmd2671"
9                 "amstaos,tsl2771"
10                 "amstaos,tmd2771"
11                 "amstaos,tsl2572"
12                 "amstaos,tsl2672"
13                 "amstaos,tmd2672"
14                 "amstaos,tsl2772"
15                 "amstaos,tmd2772"
16   - reg: the I2C address of the device
17
18 Optional properties:
19
20   - amstaos,proximity-diodes - proximity diodes to enable. <0>, <1>, or <0 1>
21                                are the only valid values.
22   - led-max-microamp - current for the proximity LED. Must be 100000, 50000,
23                        25000, or 13000.
24   - vdd-supply: phandle to the regulator that provides power to the sensor.
25   - vddio-supply: phandle to the regulator that provides power to the bus.
26   - interrupts: the sole interrupt generated by the device
27
28   Refer to interrupt-controller/interrupts.txt for generic interrupt client
29   node bindings.
30
31 Example:
32
33 tsl2772@39 {
34         compatible = "amstaos,tsl2772";
35         reg = <0x39>;
36         interrupts-extended = <&msmgpio 61 IRQ_TYPE_EDGE_FALLING>;
37         vdd-supply = <&pm8941_l17>;
38         vddio-supply = <&pm8941_lvs1>;
39         amstaos,proximity-diodes = <0>;
40         led-max-microamp = <100000>;
41 };