dt-bindings: iio: accel: Add docs for ADXL372
authorStefan Popa <stefan.popa@analog.com>
Fri, 10 Aug 2018 08:46:19 +0000 (11:46 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 19 Aug 2018 17:02:34 +0000 (18:02 +0100)
Add the device tree binding documentation for the ADXL372 3-axis digital
accelerometer.

Signed-off-by: Stefan Popa <stefan.popa@analog.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Documentation/devicetree/bindings/iio/accel/adxl372.txt [new file with mode: 0644]
MAINTAINERS

diff --git a/Documentation/devicetree/bindings/iio/accel/adxl372.txt b/Documentation/devicetree/bindings/iio/accel/adxl372.txt
new file mode 100644 (file)
index 0000000..9409984
--- /dev/null
@@ -0,0 +1,22 @@
+Analog Devices ADXL372 3-Axis, +/-(200g) Digital Accelerometer
+
+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
+ - 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:
+
+       accelerometer@0 {
+               compatible = "adi,adxl372";
+               reg = <0>;
+               spi-max-frequency = <1000000>;
+               interrupt-parent = <&gpio>;
+               interrupts = <25 IRQ_TYPE_EDGE_FALLING>;
+       };
index fe23f8b6671243b3c7e50d5b1d4163c6809fb085..2605b733f603ffb244164f15cf41f4670b876658 100644 (file)
@@ -548,6 +548,7 @@ M:  Stefan Popa <stefan.popa@analog.com>
 W:     http://ez.analog.com/community/linux-device-drivers
 S:     Supported
 F:     drivers/iio/accel/adxl372.c
+F:     Documentation/devicetree/bindings/iio/accel/adxl372.txt
 
 AF9013 MEDIA DRIVER
 M:     Antti Palosaari <crope@iki.fi>