summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/iio/accel
diff options
context:
space:
mode:
authorStefan Popa <stefan.popa@analog.com>2018-08-10 11:46:19 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2018-08-19 18:02:34 +0100
commitad6e1fb0312c5a4b4fc70e17b73ca1cdfc68c429 (patch)
treed3fa02f0a7c64d17e9637b82e4d58d17b93bbc0e /Documentation/devicetree/bindings/iio/accel
parent4097da40f9264ab75f256ec7f097cfff2710cc0a (diff)
dt-bindings: iio: accel: Add docs for ADXL372
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>
Diffstat (limited to 'Documentation/devicetree/bindings/iio/accel')
-rw-r--r--Documentation/devicetree/bindings/iio/accel/adxl372.txt22
1 files changed, 22 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/iio/accel/adxl372.txt b/Documentation/devicetree/bindings/iio/accel/adxl372.txt
new file mode 100644
index 000000000000..9409984719e9
--- /dev/null
+++ b/Documentation/devicetree/bindings/iio/accel/adxl372.txt
@@ -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>;
+ };