forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/Documentation/devicetree/bindings/iio/light/vl6180.txt
....@@ -1,15 +1,28 @@
11 STMicro VL6180 - ALS, range and proximity sensor
22
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
44
55 Required properties:
66
77 -compatible: should be "st,vl6180"
88 -reg: the I2C address of the sensor
99
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
+
1014 Example:
1115
1216 vl6180@29 {
1317 compatible = "st,vl6180";
1418 reg = <0x29>;
1519 };
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
+};