]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
dt-bindings: adxl372: Document the adxl372 I2C bindings
authorStefan Popa <stefan.popa@analog.com>
Tue, 4 Sep 2018 14:13:14 +0000 (17:13 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 8 Sep 2018 14:59:04 +0000 (15:59 +0100)
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>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Documentation/devicetree/bindings/iio/accel/adxl372.txt

index 9409984719e9781528aa0d9e790e85f12cc844b0..a289964756a77e3be8c3f25d8c1e4194c812e3b2 100644 (file)
@@ -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";