Skip to content

Commit

Permalink
dt-bindings: iio: accel: Add docs for ADXL372
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stefan Popa authored and Jonathan Cameron committed Aug 19, 2018
1 parent 4097da4 commit ad6e1fb
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Documentation/devicetree/bindings/iio/accel/adxl372.txt
Original file line number Diff line number Diff line change
@@ -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>;
};
1 change: 1 addition & 0 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit ad6e1fb

Please sign in to comment.