xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/iio/light/vl6180.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunSTMicro VL6180 -  ALS, range and proximity sensor
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunLink to datasheet: https://www.st.com/resource/en/datasheet/vl6180x.pdf
4*4882a593Smuzhiyun
5*4882a593SmuzhiyunRequired properties:
6*4882a593Smuzhiyun
7*4882a593Smuzhiyun	-compatible: should be "st,vl6180"
8*4882a593Smuzhiyun	-reg: the I2C address of the sensor
9*4882a593Smuzhiyun
10*4882a593SmuzhiyunOptional properties:
11*4882a593Smuzhiyun	-avdd-gpio: gpio to enable or disable the digital/analog power supply
12*4882a593Smuzhiyun	-chip-enable-gpio: gpio to enable or disable chip select (CE)
13*4882a593Smuzhiyun
14*4882a593SmuzhiyunExample:
15*4882a593Smuzhiyun
16*4882a593Smuzhiyunvl6180@29 {
17*4882a593Smuzhiyun	compatible = "st,vl6180";
18*4882a593Smuzhiyun	reg = <0x29>;
19*4882a593Smuzhiyun};
20*4882a593Smuzhiyun
21*4882a593SmuzhiyunHere an example with power controlled by gpio:
22*4882a593Smuzhiyun
23*4882a593Smuzhiyunvl6180@29 {
24*4882a593Smuzhiyun	compatible = "st,vl6180";
25*4882a593Smuzhiyun	reg = <0x29>;
26*4882a593Smuzhiyun	avdd-gpio = <&gpio1 2 GPIO_ACTIVE_HIGH>;
27*4882a593Smuzhiyun	chip-enable-gpio = <&gpio1 3 GPIO_ACTIVE_HIGH>;
28*4882a593Smuzhiyun};
29