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
35 spi-max-frequency: true
45 additionalProperties: false
49 #include <dt-bindings/gpio/gpio.h>
50 #include <dt-bindings/interrupt-controller/irq.h>
55 /* Example for a I2C device node */
57 compatible = "adi,adxl345";
59 interrupt-parent = <&gpio0>;
60 interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
64 #include <dt-bindings/gpio/gpio.h>
65 #include <dt-bindings/interrupt-controller/irq.h>
70 /* Example for a SPI device node */
72 compatible = "adi,adxl345";
74 spi-max-frequency = <5000000>;
77 interrupt-parent = <&gpio0>;
78 interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;