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
44 - $ref: /schemas/spi/spi-peripheral-props.yaml#
46 unevaluatedProperties: false
50 #include <dt-bindings/gpio/gpio.h>
51 #include <dt-bindings/interrupt-controller/irq.h>
56 /* Example for a I2C device node */
58 compatible = "adi,adxl345";
60 interrupt-parent = <&gpio0>;
61 interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
65 #include <dt-bindings/gpio/gpio.h>
66 #include <dt-bindings/interrupt-controller/irq.h>
71 /* Example for a SPI device node */
73 compatible = "adi,adxl345";
75 spi-max-frequency = <5000000>;
78 interrupt-parent = <&gpio0>;
79 interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;