Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1482298
| From | Andy Yan <andy.yan@rock-chips.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] iio: dt-bindings: add documentation for Light&Proximity sensor STK331x |
| Date | 2016-09-13 11:30 +0200 |
| Message-ID | <sgScp-8ns-9@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
Add the device tree binding documentation for Light & Proximity sensor
STK331X from Sensortek
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
---
.../devicetree/bindings/iio/light/stk3310.txt | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
create mode 100644 Documentation/devicetree/bindings/iio/light/stk3310.txt
diff --git a/Documentation/devicetree/bindings/iio/light/stk3310.txt b/Documentation/devicetree/bindings/iio/light/stk3310.txt
new file mode 100644
index 0000000..d697118
--- /dev/null
+++ b/Documentation/devicetree/bindings/iio/light/stk3310.txt
@@ -0,0 +1,21 @@
+* Sensortek STK331X I2C Light&Proximity sensor
+
+Required properties:
+- compatible: should be "sensortek,STK3310" or "sensortek,STK3311"
+- reg: the I2C address of the device
+- interrupt-parent: phandle to the parent interrupt controller
+- interrupts: interrupt mapping for GPIO IRQ
+
+Example:
+ &i2c1 {
+ /* ... */
+
+ stk3310@48 {
+ compatible = "sensortek,STK3310";
+ reg = <0x48>;
+ interrupt-parent = <&gpio1>;
+ interrupts = <5 IRQ_TYPE_LEVEL_LOW>;
+ };
+
+ /* ... */
+ };
--
2.7.4
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH] iio: dt-bindings: add documentation for Light&Proximity sensor STK331x Andy Yan <andy.yan@rock-chips.com> - 2016-09-13 11:30 +0200
Re: [PATCH] iio: dt-bindings: add documentation for Light&Proximity sensor STK331x Heiko Stuebner <heiko@sntech.de> - 2016-09-13 12:00 +0200
Re: [PATCH] iio: dt-bindings: add documentation for Light&Proximity sensor STK331x Jonathan Cameron <jic23@kernel.org> - 2016-09-13 19:20 +0200
csiph-web