* [PATCH] devicetree: bindings: Extend the bma180 bindings with bma250 info
@ 2015-09-12 10:52 Hans de Goede
2015-09-14 15:44 ` Rob Herring
[not found] ` <1442055169-16966-1-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
0 siblings, 2 replies; 3+ messages in thread
From: Hans de Goede @ 2015-09-12 10:52 UTC (permalink / raw)
To: Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala,
Jonathan Cameron, Peter Meerwald
Cc: Maxime Ripard, plaes-q/aMd4JkU83YtjvyW6yDsg,
linux-iio-u79uwXL29TY76Z2rM5mHXA, devicetree, Hans de Goede
The bma180 / bma250 accelerometers share a driver (at least under Linux),
so it makes sense to also have their bindings info in a single .txt.
This commit extends the bma180 bindings with bma250 bindings, specifically
it specifies how the 2 seperate interrupts the bma250 has must be listed
in devicetree. The existing bma180 driver is already fully compatible
with the specified bindings.
Signed-off-by: Hans de Goede <hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
---
Documentation/devicetree/bindings/iio/accel/bma180.txt | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/iio/accel/bma180.txt b/Documentation/devicetree/bindings/iio/accel/bma180.txt
index c593357..4a3679d 100644
--- a/Documentation/devicetree/bindings/iio/accel/bma180.txt
+++ b/Documentation/devicetree/bindings/iio/accel/bma180.txt
@@ -1,10 +1,11 @@
-* Bosch BMA180 triaxial acceleration sensor
+* Bosch BMA180 / BMA250 triaxial acceleration sensor
http://omapworld.com/BMA180_111_1002839.pdf
+http://ae-bst.resource.bosch.com/media/products/dokumente/bma250/bst-bma250-ds002-05.pdf
Required properties:
- - compatible : should be "bosch,bma180"
+ - compatible : should be "bosch,bma180" or "bosch,bma250"
- reg : the I2C address of the sensor
Optional properties:
@@ -13,6 +14,9 @@ Optional properties:
- interrupts : interrupt mapping for GPIO IRQ, it should by configured with
flags IRQ_TYPE_LEVEL_HIGH | IRQ_TYPE_EDGE_RISING
+ For the bma250 the first interrupt listed must be the one
+ connected to the INT1 pin, the second (optional) interrupt
+ listed must be the one connected to the INT2 pin.
Example:
--
2.4.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] devicetree: bindings: Extend the bma180 bindings with bma250 info
2015-09-12 10:52 [PATCH] devicetree: bindings: Extend the bma180 bindings with bma250 info Hans de Goede
@ 2015-09-14 15:44 ` Rob Herring
[not found] ` <1442055169-16966-1-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
1 sibling, 0 replies; 3+ messages in thread
From: Rob Herring @ 2015-09-14 15:44 UTC (permalink / raw)
To: Hans de Goede
Cc: Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala,
Jonathan Cameron, Peter Meerwald, Maxime Ripard, plaes,
linux-iio@vger.kernel.org, devicetree
On Sat, Sep 12, 2015 at 5:52 AM, Hans de Goede <hdegoede@redhat.com> wrote:
> The bma180 / bma250 accelerometers share a driver (at least under Linux),
> so it makes sense to also have their bindings info in a single .txt.
>
> This commit extends the bma180 bindings with bma250 bindings, specifically
> it specifies how the 2 seperate interrupts the bma250 has must be listed
> in devicetree. The existing bma180 driver is already fully compatible
> with the specified bindings.
>
> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
> ---
> Documentation/devicetree/bindings/iio/accel/bma180.txt | 8 ++++++--
> 1 file changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/iio/accel/bma180.txt b/Documentation/devicetree/bindings/iio/accel/bma180.txt
> index c593357..4a3679d 100644
> --- a/Documentation/devicetree/bindings/iio/accel/bma180.txt
> +++ b/Documentation/devicetree/bindings/iio/accel/bma180.txt
> @@ -1,10 +1,11 @@
> -* Bosch BMA180 triaxial acceleration sensor
> +* Bosch BMA180 / BMA250 triaxial acceleration sensor
>
> http://omapworld.com/BMA180_111_1002839.pdf
> +http://ae-bst.resource.bosch.com/media/products/dokumente/bma250/bst-bma250-ds002-05.pdf
>
> Required properties:
>
> - - compatible : should be "bosch,bma180"
> + - compatible : should be "bosch,bma180" or "bosch,bma250"
> - reg : the I2C address of the sensor
>
> Optional properties:
> @@ -13,6 +14,9 @@ Optional properties:
>
> - interrupts : interrupt mapping for GPIO IRQ, it should by configured with
> flags IRQ_TYPE_LEVEL_HIGH | IRQ_TYPE_EDGE_RISING
> + For the bma250 the first interrupt listed must be the one
> + connected to the INT1 pin, the second (optional) interrupt
> + listed must be the one connected to the INT2 pin.
>
> Example:
>
> --
> 2.4.3
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] devicetree: bindings: Extend the bma180 bindings with bma250 info
[not found] ` <1442055169-16966-1-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2015-09-17 19:40 ` Rob Herring
0 siblings, 0 replies; 3+ messages in thread
From: Rob Herring @ 2015-09-17 19:40 UTC (permalink / raw)
To: Hans de Goede
Cc: Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala,
Jonathan Cameron, Peter Meerwald, Maxime Ripard,
plaes-q/aMd4JkU83YtjvyW6yDsg, linux-iio-u79uwXL29TY76Z2rM5mHXA,
devicetree
On 09/12/2015 05:52 AM, Hans de Goede wrote:
> The bma180 / bma250 accelerometers share a driver (at least under Linux),
> so it makes sense to also have their bindings info in a single .txt.
>
> This commit extends the bma180 bindings with bma250 bindings, specifically
> it specifies how the 2 seperate interrupts the bma250 has must be listed
> in devicetree. The existing bma180 driver is already fully compatible
> with the specified bindings.
>
> Signed-off-by: Hans de Goede <hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Applied, thanks.
Rob
> ---
> Documentation/devicetree/bindings/iio/accel/bma180.txt | 8 ++++++--
> 1 file changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/iio/accel/bma180.txt b/Documentation/devicetree/bindings/iio/accel/bma180.txt
> index c593357..4a3679d 100644
> --- a/Documentation/devicetree/bindings/iio/accel/bma180.txt
> +++ b/Documentation/devicetree/bindings/iio/accel/bma180.txt
> @@ -1,10 +1,11 @@
> -* Bosch BMA180 triaxial acceleration sensor
> +* Bosch BMA180 / BMA250 triaxial acceleration sensor
>
> http://omapworld.com/BMA180_111_1002839.pdf
> +http://ae-bst.resource.bosch.com/media/products/dokumente/bma250/bst-bma250-ds002-05.pdf
>
> Required properties:
>
> - - compatible : should be "bosch,bma180"
> + - compatible : should be "bosch,bma180" or "bosch,bma250"
> - reg : the I2C address of the sensor
>
> Optional properties:
> @@ -13,6 +14,9 @@ Optional properties:
>
> - interrupts : interrupt mapping for GPIO IRQ, it should by configured with
> flags IRQ_TYPE_LEVEL_HIGH | IRQ_TYPE_EDGE_RISING
> + For the bma250 the first interrupt listed must be the one
> + connected to the INT1 pin, the second (optional) interrupt
> + listed must be the one connected to the INT2 pin.
>
> Example:
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-09-17 19:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-12 10:52 [PATCH] devicetree: bindings: Extend the bma180 bindings with bma250 info Hans de Goede
2015-09-14 15:44 ` Rob Herring
[not found] ` <1442055169-16966-1-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-09-17 19:40 ` Rob Herring
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).