summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/iio
diff options
context:
space:
mode:
authorStefan Popa <stefan.popa@analog.com>2018-09-04 17:13:14 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2018-09-08 15:59:04 +0100
commitc0f87b3335100108ce80cda3e09f11c3a82f081a (patch)
treeee3e7897bb6c60a559a37a50c0179463bcaf7875 /Documentation/devicetree/bindings/iio
parent94dbb46c7a8f0ee27394bc81f34b666dc4a14b71 (diff)
downloadblackbird-obmc-linux-c0f87b3335100108ce80cda3e09f11c3a82f081a.tar.gz
blackbird-obmc-linux-c0f87b3335100108ce80cda3e09f11c3a82f081a.zip
dt-bindings: adxl372: Document the adxl372 I2C bindings
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>
Diffstat (limited to 'Documentation/devicetree/bindings/iio')
-rw-r--r--Documentation/devicetree/bindings/iio/accel/adxl372.txt15
1 files changed, 13 insertions, 2 deletions
diff --git a/Documentation/devicetree/bindings/iio/accel/adxl372.txt b/Documentation/devicetree/bindings/iio/accel/adxl372.txt
index 9409984719e9..a289964756a7 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";
OpenPOWER on IntegriCloud