Merge tag 'for-linus' of git://linux-c6x.org/git/projects/linux-c6x-upstreaming
[sfrench/cifs-2.6.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                 "avago,apds9930"
17   - reg: the I2C address of the device
18
19 Optional properties:
20
21   - amstaos,proximity-diodes - proximity diodes to enable. <0>, <1>, or <0 1>
22                                are the only valid values.
23   - led-max-microamp - current for the proximity LED. Must be 100000, 50000,
24                        25000, or 13000.
25   - vdd-supply: phandle to the regulator that provides power to the sensor.
26   - vddio-supply: phandle to the regulator that provides power to the bus.
27   - interrupts: the sole interrupt generated by the device
28
29   Refer to interrupt-controller/interrupts.txt for generic interrupt client
30   node bindings.
31
32 Example:
33
34 tsl2772@39 {
35         compatible = "amstaos,tsl2772";
36         reg = <0x39>;
37         interrupts-extended = <&msmgpio 61 IRQ_TYPE_EDGE_FALLING>;
38         vdd-supply = <&pm8941_l17>;
39         vddio-supply = <&pm8941_lvs1>;
40         amstaos,proximity-diodes = <0>;
41         led-max-microamp = <100000>;
42 };