-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
Stefan Popa
authored and
Jonathan Cameron
committed
Aug 19, 2018
1 parent
4097da4
commit ad6e1fb
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters