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 https://www.analog.com/en/products/mems/accelerometers/adxl345.html
16 https://www.analog.com/en/products/sensors-mems/accelerometers/adxl375.html
45 #include <dt-bindings/gpio/gpio.h>
46 #include <dt-bindings/interrupt-controller/irq.h>
51 /* Example for a I2C device node */
53 compatible = "adi,adxl345";
55 interrupt-parent = <&gpio0>;
56 interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
60 #include <dt-bindings/gpio/gpio.h>
61 #include <dt-bindings/interrupt-controller/irq.h>
66 /* Example for a SPI device node */
68 compatible = "adi,adxl345";
70 spi-max-frequency = <5000000>;
73 interrupt-parent = <&gpio0>;
74 interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;