Commit c0f87b33 authored by Stefan Popa's avatar Stefan Popa Committed by Jonathan Cameron

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: default avatarStefan Popa <stefan.popa@analog.com>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 94dbb46c
...@@ -4,14 +4,25 @@ http://www.analog.com/media/en/technical-documentation/data-sheets/adxl372.pdf ...@@ -4,14 +4,25 @@ http://www.analog.com/media/en/technical-documentation/data-sheets/adxl372.pdf
Required properties: Required properties:
- compatible : should be "adi,adxl372" - 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 - spi-max-frequency: Max SPI frequency to use
Optional properties: Optional properties:
- interrupts: interrupt mapping for IRQ as documented in - interrupts: interrupt mapping for IRQ as documented in
Documentation/devicetree/bindings/interrupt-controller/interrupts.txt 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 { accelerometer@0 {
compatible = "adi,adxl372"; compatible = "adi,adxl372";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment