summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRui Miguel Silva <rui.silva@linaro.org>2017-09-20 22:23:31 +0100
committerRui Miguel Silva <rui.silva@linaro.org>2018-08-12 16:49:35 +0100
commit14d42b2453250bc826e3562f12a7b2dbdcaeb8e3 (patch)
tree160169654449ac6f8352d848a382ed247bea9d8e
parent183be51794743c7681568c5fae2d1344504e986f (diff)
iio: accel: add DT bindings for fxos8700
This patch adds the necessary bindings to the imx7s-warp.dts related with the fxos8700 accelerometer/magnetometer combo. Also add the correspondent documentation for the new entries. Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
-rw-r--r--Documentation/devicetree/bindings/iio/accel/fxos8700.txt12
-rw-r--r--arch/arm/boot/dts/imx7s-warp.dts6
2 files changed, 18 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/iio/accel/fxos8700.txt b/Documentation/devicetree/bindings/iio/accel/fxos8700.txt
new file mode 100644
index 000000000000..817a26494650
--- /dev/null
+++ b/Documentation/devicetree/bindings/iio/accel/fxos8700.txt
@@ -0,0 +1,12 @@
+* NXP FXOS8700 Accelerometer / Magnetometer device tree bindings
+
+Required properties:
+ - compatible : should be "nxp, fxos8700"
+ - reg : the I2C address of the sensor
+
+Example:
+
+fxos8700@1e {
+ compatible = "nxp, fxos8700"
+ reg = <0x1e>;
+};
diff --git a/arch/arm/boot/dts/imx7s-warp.dts b/arch/arm/boot/dts/imx7s-warp.dts
index ae3f54f49859..e3cc8a5ffa5e 100644
--- a/arch/arm/boot/dts/imx7s-warp.dts
+++ b/arch/arm/boot/dts/imx7s-warp.dts
@@ -247,6 +247,12 @@
compatible = "nxp,fxas2100x";
reg = <0x20>;
};
+
+ fxos8700@1e {
+ compatible = "nxp,fxos8700";
+ reg = <0x1e>;
+ };
+
};
&sai1 {