.. | .. |
---|
1 | 1 | STMicro VL6180 - ALS, range and proximity sensor |
---|
2 | 2 | |
---|
3 | | -Link to datasheet: http://www.st.com/resource/en/datasheet/vl6180x.pdf |
---|
| 3 | +Link to datasheet: https://www.st.com/resource/en/datasheet/vl6180x.pdf |
---|
4 | 4 | |
---|
5 | 5 | Required properties: |
---|
6 | 6 | |
---|
7 | 7 | -compatible: should be "st,vl6180" |
---|
8 | 8 | -reg: the I2C address of the sensor |
---|
9 | 9 | |
---|
| 10 | +Optional properties: |
---|
| 11 | + -avdd-gpio: gpio to enable or disable the digital/analog power supply |
---|
| 12 | + -chip-enable-gpio: gpio to enable or disable chip select (CE) |
---|
| 13 | + |
---|
10 | 14 | Example: |
---|
11 | 15 | |
---|
12 | 16 | vl6180@29 { |
---|
13 | 17 | compatible = "st,vl6180"; |
---|
14 | 18 | reg = <0x29>; |
---|
15 | 19 | }; |
---|
| 20 | + |
---|
| 21 | +Here an example with power controlled by gpio: |
---|
| 22 | + |
---|
| 23 | +vl6180@29 { |
---|
| 24 | + compatible = "st,vl6180"; |
---|
| 25 | + reg = <0x29>; |
---|
| 26 | + avdd-gpio = <&gpio1 2 GPIO_ACTIVE_HIGH>; |
---|
| 27 | + chip-enable-gpio = <&gpio1 3 GPIO_ACTIVE_HIGH>; |
---|
| 28 | +}; |
---|