From 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Tue, 22 Oct 2024 10:36:11 +0000
Subject: [PATCH] 修改4g拨号为QMI,需要在系统里后台执行quectel-CM
---
kernel/Documentation/devicetree/bindings/iio/light/vl6180.txt | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 deletions(-)
diff --git a/kernel/Documentation/devicetree/bindings/iio/light/vl6180.txt b/kernel/Documentation/devicetree/bindings/iio/light/vl6180.txt
index 2c52952..98a7a8e 100644
--- a/kernel/Documentation/devicetree/bindings/iio/light/vl6180.txt
+++ b/kernel/Documentation/devicetree/bindings/iio/light/vl6180.txt
@@ -1,15 +1,28 @@
STMicro VL6180 - ALS, range and proximity sensor
-Link to datasheet: http://www.st.com/resource/en/datasheet/vl6180x.pdf
+Link to datasheet: https://www.st.com/resource/en/datasheet/vl6180x.pdf
Required properties:
-compatible: should be "st,vl6180"
-reg: the I2C address of the sensor
+Optional properties:
+ -avdd-gpio: gpio to enable or disable the digital/analog power supply
+ -chip-enable-gpio: gpio to enable or disable chip select (CE)
+
Example:
vl6180@29 {
compatible = "st,vl6180";
reg = <0x29>;
};
+
+Here an example with power controlled by gpio:
+
+vl6180@29 {
+ compatible = "st,vl6180";
+ reg = <0x29>;
+ avdd-gpio = <&gpio1 2 GPIO_ACTIVE_HIGH>;
+ chip-enable-gpio = <&gpio1 3 GPIO_ACTIVE_HIGH>;
+};
--
Gitblit v1.6.2