Re: [PATCH V5 1/2] dt-bindings: iio: magnetometer: add dt-bindings for freescale mag3110

2018-12-22 Thread Jonathan Cameron
On Mon, 17 Dec 2018 08:55:53 -0600
Rob Herring  wrote:

> On Sun, Dec 16, 2018 at 10:47 PM Anson Huang  wrote:
> >
> > Add Freescale MAG3110 dt-bindings and remove it from trivial-devices
> > dt-bingding doc.
> >
> > Signed-off-by: Anson Huang 
> > ---
> >  .../bindings/iio/magnetometer/mag3110.txt  | 27 
> > ++
> >  .../devicetree/bindings/trivial-devices.txt|  1 -
> >  2 files changed, 27 insertions(+), 1 deletion(-)
> >  create mode 100644 
> > Documentation/devicetree/bindings/iio/magnetometer/mag3110.txt  
> 
> trivial-devices.txt is gone now as it's converted to json-schema. I
> can take this patch thru my tree and fix it up.
> 
> Rob

That would be great. Thanks. I'll pick up patch 2.

Acked-by: Jonathan Cameron 


Re: [PATCH V5 1/2] dt-bindings: iio: magnetometer: add dt-bindings for freescale mag3110

2018-12-17 Thread Rob Herring
On Sun, Dec 16, 2018 at 10:47 PM Anson Huang  wrote:
>
> Add Freescale MAG3110 dt-bindings and remove it from trivial-devices
> dt-bingding doc.
>
> Signed-off-by: Anson Huang 
> ---
>  .../bindings/iio/magnetometer/mag3110.txt  | 27 
> ++
>  .../devicetree/bindings/trivial-devices.txt|  1 -
>  2 files changed, 27 insertions(+), 1 deletion(-)
>  create mode 100644 
> Documentation/devicetree/bindings/iio/magnetometer/mag3110.txt

trivial-devices.txt is gone now as it's converted to json-schema. I
can take this patch thru my tree and fix it up.

Rob


[PATCH V5 1/2] dt-bindings: iio: magnetometer: add dt-bindings for freescale mag3110

2018-12-16 Thread Anson Huang
Add Freescale MAG3110 dt-bindings and remove it from trivial-devices
dt-bingding doc.

Signed-off-by: Anson Huang 
---
 .../bindings/iio/magnetometer/mag3110.txt  | 27 ++
 .../devicetree/bindings/trivial-devices.txt|  1 -
 2 files changed, 27 insertions(+), 1 deletion(-)
 create mode 100644 
Documentation/devicetree/bindings/iio/magnetometer/mag3110.txt

diff --git a/Documentation/devicetree/bindings/iio/magnetometer/mag3110.txt 
b/Documentation/devicetree/bindings/iio/magnetometer/mag3110.txt
new file mode 100644
index 000..bdd40bc
--- /dev/null
+++ b/Documentation/devicetree/bindings/iio/magnetometer/mag3110.txt
@@ -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 = <_i2c3_mag3110_int>;
+   interrupt-parent = <>;
+   interrupts = <16 IRQ_TYPE_EDGE_RISING>;
+};
diff --git a/Documentation/devicetree/bindings/trivial-devices.txt 
b/Documentation/devicetree/bindings/trivial-devices.txt
index 6ab001f..5f086ac 100644
--- a/Documentation/devicetree/bindings/trivial-devices.txt
+++ b/Documentation/devicetree/bindings/trivial-devices.txt
@@ -43,7 +43,6 @@ domintech,dmard10 DMARD10: 3-axis Accelerometer
 epson,rx8010   I2C-BUS INTERFACE REAL TIME CLOCK MODULE
 epson,rx8581   I2C-BUS INTERFACE REAL TIME CLOCK MODULE
 emmicro,em3027 EM Microelectronic EM3027 Real-time Clock
-fsl,mag3110MAG3110: Xtrinsic High Accuracy, 3D Magnetometer
 fsl,mma7660MMA7660FC: 3-Axis Orientation/Motion Detection Sensor
 fsl,mma8450MMA8450Q: Xtrinsic Low-power, 3-axis Xtrinsic 
Accelerometer
 fsl,mpl3115MPL3115: Absolute Digital Pressure Sensor
-- 
2.7.4