summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRui Miguel Silva <rui.silva@linaro.org>2017-09-20 22:23:31 +0100
committerBryan O'Donoghue <bryan.odonoghue@linaro.org>2019-05-01 11:51:18 +0100
commitaaf4d009d793e33e522e28f2942860bf5cd0606e (patch)
treedd0d6826e89477512af9a496719962f7e7a87963
parent35281ecdf5e55fd44482916fba008a8610289fcf (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 {