OSDN Git Service

iio: magnetometer: Add DT support for PNI RM3100
authorSong Qiang <songqiang1304521@gmail.com>
Thu, 8 Nov 2018 09:27:48 +0000 (17:27 +0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Fri, 16 Nov 2018 18:32:30 +0000 (18:32 +0000)
Signed-off-by: Song Qiang <songqiang1304521@gmail.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Documentation/devicetree/bindings/iio/magnetometer/pni,rm3100.txt [new file with mode: 0644]

diff --git a/Documentation/devicetree/bindings/iio/magnetometer/pni,rm3100.txt b/Documentation/devicetree/bindings/iio/magnetometer/pni,rm3100.txt
new file mode 100644 (file)
index 0000000..497c932
--- /dev/null
@@ -0,0 +1,20 @@
+* PNI RM3100 3-axis magnetometer sensor
+
+Required properties:
+
+- compatible : should be "pni,rm3100"
+- reg : the I2C address or SPI chip select number of the sensor.
+
+Optional properties:
+
+- interrupts: data ready (DRDY) from the chip.
+  The interrupts can be triggered on level high.
+
+Example:
+
+rm3100: rm3100@20 {
+       compatible = "pni,rm3100";
+       reg = <0x20>;
+       interrupt-parent = <&gpio0>;
+       interrupts = <4 IRQ_TYPE_LEVEL_HIGH>;
+};