1 Analog Devices ADXL345 3-Axis, +/-(2g/4g/8g/16g) Digital Accelerometer
3 http://www.analog.com/en/products/mems/accelerometers/adxl345.html
6 - compatible : should be "adi,adxl345"
7 - reg : the I2C address or SPI chip select number of the sensor
9 Required properties for SPI bus usage:
10 - spi-max-frequency : set maximum clock frequency, must be 5000000
11 - spi-cpol and spi-cpha : must be defined for adxl345 to enable SPI mode 3
14 - interrupts: interrupt mapping for IRQ as documented in
15 Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
17 Example for a I2C device node:
20 compatible = "adi,adxl345";
22 interrupt-parent = <&gpio1>;
23 interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
26 Example for a SPI device node:
29 compatible = "adi,adxl345";
31 spi-max-frequency = <5000000>;
34 interrupt-parent = <&gpio1>;
35 interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;