dt-bindings: iio: magnetometer: add dt-bindings for freescale mag3110
authorAnson Huang <anson.huang@nxp.com>
Mon, 17 Dec 2018 04:47:40 +0000 (04:47 +0000)
committerRob Herring <robh@kernel.org>
Mon, 17 Dec 2018 21:38:28 +0000 (15:38 -0600)
Add Freescale MAG3110 dt-bindings and remove it from trivial-devices
dt-bingding doc.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
[robh: fixup trivial-devices.txt change for trivial-devices.yaml]
Signed-off-by: Rob Herring <robh@kernel.org>
Documentation/devicetree/bindings/iio/magnetometer/mag3110.txt [new file with mode: 0644]
Documentation/devicetree/bindings/trivial-devices.yaml

diff --git a/Documentation/devicetree/bindings/iio/magnetometer/mag3110.txt b/Documentation/devicetree/bindings/iio/magnetometer/mag3110.txt
new file mode 100644 (file)
index 0000000..bdd40bc
--- /dev/null
@@ -0,0 +1,27 @@
+* FREESCALE MAG3110 magnetometer sensor
+
+Required properties:
+
+  - compatible : should be "fsl,mag3110"
+  - reg : the I2C address of the magnetometer
+
+Optional properties:
+
+  - interrupts: the sole interrupt generated by the device
+
+  Refer to interrupt-controller/interrupts.txt for generic interrupt client
+  node bindings.
+
+  - vdd-supply: phandle to the regulator that provides power to the sensor.
+  - vddio-supply: phandle to the regulator that provides power to the sensor's IO.
+
+Example:
+
+magnetometer@e {
+       compatible = "fsl,mag3110";
+       reg = <0x0e>;
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_i2c3_mag3110_int>;
+       interrupt-parent = <&gpio3>;
+       interrupts = <16 IRQ_TYPE_EDGE_RISING>;
+};
index 0f4632e05e16870a27815bc9e8a56507d6183011..cc64ec63a6ad45a19dd73ca50096b6652d49ab59 100644 (file)
@@ -80,8 +80,6 @@ properties:
           - domintech,dmard09
             # DMARD10: 3-axis Accelerometer
           - domintech,dmard10
-            # MAG3110: Xtrinsic High Accuracy, 3D Magnetometer
-          - fsl,mag3110
             # MMA7660FC: 3-Axis Orientation/Motion Detection Sensor
           - fsl,mma7660
             # MMA8450Q: Xtrinsic Low-power, 3-axis Xtrinsic Accelerometer