]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Documentation: dt: iio: add st_lsm6dsx sensor device binding
authorLorenzo Bianconi <lorenzo.bianconi83@gmail.com>
Tue, 10 Jan 2017 21:55:19 +0000 (22:55 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 14 Jan 2017 12:41:41 +0000 (12:41 +0000)
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@st.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Documentation/devicetree/bindings/iio/imu/st_lsm6dsx.txt [new file with mode: 0644]

diff --git a/Documentation/devicetree/bindings/iio/imu/st_lsm6dsx.txt b/Documentation/devicetree/bindings/iio/imu/st_lsm6dsx.txt
new file mode 100644 (file)
index 0000000..ed3cdac
--- /dev/null
@@ -0,0 +1,24 @@
+* ST_LSM6DSx driver for STM 6-axis (acc + gyro) imu Mems sensors
+
+Required properties:
+- compatible: must be one of:
+  "st,lsm6ds3"
+  "st,lsm6dsm"
+- reg: i2c address of the sensor / spi cs line
+
+Optional properties:
+- interrupt-parent: should be the phandle for the interrupt controller
+- interrupts: interrupt mapping for IRQ. It should be configured with
+  flags IRQ_TYPE_LEVEL_HIGH or IRQ_TYPE_EDGE_RISING.
+
+  Refer to interrupt-controller/interrupts.txt for generic interrupt
+  client node bindings.
+
+Example:
+
+lsm6dsm@6b {
+       compatible = "st,lsm6dsm";
+       reg = <0x6b>;
+       interrupt-parent = <&gpio0>;
+       interrupts = <0 IRQ_TYPE_EDGE_RISING>;
+};