diff mbox series

[2/2] dt-bindings: iio: add Bosch BMG160 gyroscope sensor

Message ID 1664da2e7a9cb687eece1f27501d275219bcc4ed.1552922054.git.hns@goldelico.com (mailing list archive)
State New, archived
Headers show
Series iio: gyro: bmg160 add device tree support | expand

Commit Message

H. Nikolaus Schaller March 18, 2019, 3:14 p.m. UTC
Define bindings for "bosch,bmg160" and "bosch,bmi055_gyro".

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
---
 .../bindings/iio/gyroscope/bmg160.txt         | 20 +++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/iio/gyroscope/bmg160.txt

Comments

Jonathan Cameron March 24, 2019, 6:06 p.m. UTC | #1
On Mon, 18 Mar 2019 16:14:15 +0100
"H. Nikolaus Schaller" <hns@goldelico.com> wrote:

> Define bindings for "bosch,bmg160" and "bosch,bmi055_gyro".
> 
> Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Simple binding so applied to the togreg branch of iio.git and pushed out as
testing. Still time for a devicetree ack (or to pull it ;) if anyone has
time to look.

Thanks,

Jonathan

> ---
>  .../bindings/iio/gyroscope/bmg160.txt         | 20 +++++++++++++++++++
>  1 file changed, 20 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/iio/gyroscope/bmg160.txt
> 
> diff --git a/Documentation/devicetree/bindings/iio/gyroscope/bmg160.txt b/Documentation/devicetree/bindings/iio/gyroscope/bmg160.txt
> new file mode 100644
> index 000000000000..78e18a1e9c1d
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/iio/gyroscope/bmg160.txt
> @@ -0,0 +1,20 @@
> +* Bosch BMG160 triaxial rotation sensor (gyroscope)
> +
> +Required properties:
> +
> +  - compatible : should be "bosch,bmg160" or "bosch,bmi055_gyro"
> +  - reg : the I2C address of the sensor (0x69)
> +
> +Optional properties:
> +
> +  - interrupts : interrupt mapping for GPIO IRQ, it should by configured with
> +		flags IRQ_TYPE_EDGE_RISING
> +
> +Example:
> +
> +bmg160@69 {
> +	compatible = "bosch,bmg160";
> +	reg = <0x69>;
> +	interrupt-parent = <&gpio6>;
> +	interrupts = <18 (IRQ_TYPE_EDGE_RISING)>;
> +};
H. Nikolaus Schaller March 28, 2019, 4:29 p.m. UTC | #2
> Am 24.03.2019 um 19:06 schrieb Jonathan Cameron <jic23@kernel.org>:
> 
> On Mon, 18 Mar 2019 16:14:15 +0100
> "H. Nikolaus Schaller" <hns@goldelico.com> wrote:
> 
>> Define bindings for "bosch,bmg160" and "bosch,bmi055_gyro".
>> 
>> Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
> Simple binding so applied to the togreg branch of iio.git and pushed out as
> testing. Still time for a devicetree ack (or to pull it ;) if anyone has
> time to look.

It is more or less an adapation of the bma180 bindings.

> 
> Thanks,
> 
> Jonathan
> 
>> ---
>> .../bindings/iio/gyroscope/bmg160.txt         | 20 +++++++++++++++++++
>> 1 file changed, 20 insertions(+)
>> create mode 100644 Documentation/devicetree/bindings/iio/gyroscope/bmg160.txt
>> 
>> diff --git a/Documentation/devicetree/bindings/iio/gyroscope/bmg160.txt b/Documentation/devicetree/bindings/iio/gyroscope/bmg160.txt
>> new file mode 100644
>> index 000000000000..78e18a1e9c1d
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/iio/gyroscope/bmg160.txt
>> @@ -0,0 +1,20 @@
>> +* Bosch BMG160 triaxial rotation sensor (gyroscope)
>> +
>> +Required properties:
>> +
>> +  - compatible : should be "bosch,bmg160" or "bosch,bmi055_gyro"
>> +  - reg : the I2C address of the sensor (0x69)
>> +
>> +Optional properties:
>> +
>> +  - interrupts : interrupt mapping for GPIO IRQ, it should by configured with
>> +		flags IRQ_TYPE_EDGE_RISING
>> +
>> +Example:
>> +
>> +bmg160@69 {
>> +	compatible = "bosch,bmg160";
>> +	reg = <0x69>;
>> +	interrupt-parent = <&gpio6>;
>> +	interrupts = <18 (IRQ_TYPE_EDGE_RISING)>;
>> +};
>
Rob Herring March 31, 2019, 6:40 a.m. UTC | #3
On Mon, 18 Mar 2019 16:14:15 +0100, "H. Nikolaus Schaller" wrote:
> Define bindings for "bosch,bmg160" and "bosch,bmi055_gyro".
> 
> Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
> ---
>  .../bindings/iio/gyroscope/bmg160.txt         | 20 +++++++++++++++++++
>  1 file changed, 20 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/iio/gyroscope/bmg160.txt
> 

Reviewed-by: Rob Herring <robh@kernel.org>
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/iio/gyroscope/bmg160.txt b/Documentation/devicetree/bindings/iio/gyroscope/bmg160.txt
new file mode 100644
index 000000000000..78e18a1e9c1d
--- /dev/null
+++ b/Documentation/devicetree/bindings/iio/gyroscope/bmg160.txt
@@ -0,0 +1,20 @@ 
+* Bosch BMG160 triaxial rotation sensor (gyroscope)
+
+Required properties:
+
+  - compatible : should be "bosch,bmg160" or "bosch,bmi055_gyro"
+  - reg : the I2C address of the sensor (0x69)
+
+Optional properties:
+
+  - interrupts : interrupt mapping for GPIO IRQ, it should by configured with
+		flags IRQ_TYPE_EDGE_RISING
+
+Example:
+
+bmg160@69 {
+	compatible = "bosch,bmg160";
+	reg = <0x69>;
+	interrupt-parent = <&gpio6>;
+	interrupts = <18 (IRQ_TYPE_EDGE_RISING)>;
+};