* [PATCH 3/3] dt-bindings: adxl372: Document the adxl372 I2C bindings
@ 2018-09-04 14:13 Stefan Popa
2018-09-08 14:30 ` Jonathan Cameron
0 siblings, 1 reply; 2+ messages in thread
From: Stefan Popa @ 2018-09-04 14:13 UTC (permalink / raw)
To: jic23, robh+dt
Cc: knaack.h, lars, Michael.Hennerich, pmeerw, mark.rutland,
linux-iio, devicetree, linux-kernel, stefan.popa
The adxl372 is designed to communicate in either SPI or I2C protocol.
This patch adds the documentation of device tree bindings for adxl372
I2C.
Signed-off-by: Stefan Popa <stefan.popa@analog.com>
---
Documentation/devicetree/bindings/iio/accel/adxl372.txt | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/iio/accel/adxl372.txt b/Documentation/devicetree/bindings/iio/accel/adxl372.txt
index 9409984..a289964 100644
--- a/Documentation/devicetree/bindings/iio/accel/adxl372.txt
+++ b/Documentation/devicetree/bindings/iio/accel/adxl372.txt
@@ -4,14 +4,25 @@ http://www.analog.com/media/en/technical-documentation/data-sheets/adxl372.pdf
Required properties:
- compatible : should be "adi,adxl372"
- - reg: SPI chip select number for the device
+ - reg: the I2C address or SPI chip select number for the device
+
+Required properties for SPI bus usage:
- spi-max-frequency: Max SPI frequency to use
Optional properties:
- interrupts: interrupt mapping for IRQ as documented in
Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
-Example:
+Example for a I2C device node:
+
+ accelerometer@53 {
+ compatible = "adi,adxl372";
+ reg = <0x53>;
+ interrupt-parent = <&gpio>;
+ interrupts = <25 IRQ_TYPE_EDGE_FALLING>;
+ };
+
+Example for a SPI device node:
accelerometer@0 {
compatible = "adi,adxl372";
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 3/3] dt-bindings: adxl372: Document the adxl372 I2C bindings
2018-09-04 14:13 [PATCH 3/3] dt-bindings: adxl372: Document the adxl372 I2C bindings Stefan Popa
@ 2018-09-08 14:30 ` Jonathan Cameron
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Cameron @ 2018-09-08 14:30 UTC (permalink / raw)
To: Stefan Popa
Cc: robh+dt, knaack.h, lars, Michael.Hennerich, pmeerw, mark.rutland,
linux-iio, devicetree, linux-kernel
On Tue, 4 Sep 2018 17:13:14 +0300
Stefan Popa <stefan.popa@analog.com> wrote:
> The adxl372 is designed to communicate in either SPI or I2C protocol.
> This patch adds the documentation of device tree bindings for adxl372
> I2C.
>
> Signed-off-by: Stefan Popa <stefan.popa@analog.com>
Applied.
Thanks,
Jonathan
> ---
> Documentation/devicetree/bindings/iio/accel/adxl372.txt | 15 +++++++++++++--
> 1 file changed, 13 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/iio/accel/adxl372.txt b/Documentation/devicetree/bindings/iio/accel/adxl372.txt
> index 9409984..a289964 100644
> --- a/Documentation/devicetree/bindings/iio/accel/adxl372.txt
> +++ b/Documentation/devicetree/bindings/iio/accel/adxl372.txt
> @@ -4,14 +4,25 @@ http://www.analog.com/media/en/technical-documentation/data-sheets/adxl372.pdf
>
> Required properties:
> - compatible : should be "adi,adxl372"
> - - reg: SPI chip select number for the device
> + - reg: the I2C address or SPI chip select number for the device
> +
> +Required properties for SPI bus usage:
> - spi-max-frequency: Max SPI frequency to use
>
> Optional properties:
> - interrupts: interrupt mapping for IRQ as documented in
> Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
>
> -Example:
> +Example for a I2C device node:
> +
> + accelerometer@53 {
> + compatible = "adi,adxl372";
> + reg = <0x53>;
> + interrupt-parent = <&gpio>;
> + interrupts = <25 IRQ_TYPE_EDGE_FALLING>;
> + };
> +
> +Example for a SPI device node:
>
> accelerometer@0 {
> compatible = "adi,adxl372";
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-09-08 14:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-04 14:13 [PATCH 3/3] dt-bindings: adxl372: Document the adxl372 I2C bindings Stefan Popa
2018-09-08 14:30 ` Jonathan Cameron
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).