1 # SPDX-License-Identifier: GPL-2.0
4 $id: http://devicetree.org/schemas/iio/accel/adi,adxl345.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Analog Devices ADXL345/ADXL375 3-Axis Digital Accelerometers
10 - Michael Hennerich <michael.hennerich@analog.com>
13 Analog Devices ADXL345/ADXL375 3-Axis Digital Accelerometers that supports
14 both I2C & SPI interfaces.
15 http://www.analog.com/en/products/mems/accelerometers/adxl345.html
16 http://www.analog.com/en/products/sensors-mems/accelerometers/adxl375.html
41 #include <dt-bindings/gpio/gpio.h>
42 #include <dt-bindings/interrupt-controller/irq.h>
47 /* Example for a I2C device node */
49 compatible = "adi,adxl345";
51 interrupt-parent = <&gpio0>;
52 interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
56 #include <dt-bindings/gpio/gpio.h>
57 #include <dt-bindings/interrupt-controller/irq.h>
62 /* Example for a SPI device node */
64 compatible = "adi,adxl345";
66 spi-max-frequency = <5000000>;
69 interrupt-parent = <&gpio0>;
70 interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;