summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/iio/st_lsm6ds3.txt
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/devicetree/bindings/iio/st_lsm6ds3.txt')
-rw-r--r--Documentation/devicetree/bindings/iio/st_lsm6ds3.txt19
1 files changed, 19 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/iio/st_lsm6ds3.txt b/Documentation/devicetree/bindings/iio/st_lsm6ds3.txt
new file mode 100644
index 00000000000..bef52f2e290
--- /dev/null
+++ b/Documentation/devicetree/bindings/iio/st_lsm6ds3.txt
@@ -0,0 +1,19 @@
+/* STMicroelectronics lsm6ds3 sensor */
+
+Required properties:
+ - compatible : should be "st,lsm6ds3"
+ - reg : the I2C address of the sensor
+
+Optional properties:
+ - interrupt-parent : should be the phandle for the interrupt controller
+ - interrupts : interrupt mapping for GPIO IRQ, it should by configured with
+ flags IRQ_TYPE_EDGE_RISING
+
+Example:
+
+lsm6ds3@6b {
+ compatible = "st,lsm6ds3";
+ reg = <0x6b>;
+ interrupt-parent = <&gpio>;
+ interrupts = <1 IRQ_TYPE_EDGE_RISING>;
+}; \ No newline at end of file