1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
4 $id: http://devicetree.org/schemas/iio/accel/adi,adxl313.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Analog Devices ADXL312, ADXL313, and ADXL314 3-Axis Digital Accelerometers
10 - Lucas Stankus <lucas.p.stankus@gmail.com>
13 Analog Devices ADXL312, ADXL313, and ADXL314 3-Axis Digital Accelerometer that
14 support both I2C & SPI interfaces.
15 https://www.analog.com/en/products/adxl312.html
16 https://www.analog.com/en/products/adxl313.html
17 https://www.analog.com/en/products/adxl314.html
32 description: Regulator that supplies power to the accelerometer
35 description: Regulator that supplies the digital interface supply voltage
54 - $ref: /schemas/spi/spi-peripheral-props.yaml#
56 unevaluatedProperties: false
60 #include <dt-bindings/gpio/gpio.h>
61 #include <dt-bindings/interrupt-controller/irq.h>
66 /* Example for a I2C device node */
68 compatible = "adi,adxl313";
70 interrupt-parent = <&gpio0>;
71 interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
72 interrupt-names = "INT1";
76 #include <dt-bindings/gpio/gpio.h>
77 #include <dt-bindings/interrupt-controller/irq.h>
82 /* Example for a SPI device node */
84 compatible = "adi,adxl313";
86 spi-max-frequency = <5000000>;
87 interrupt-parent = <&gpio0>;
88 interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
89 interrupt-names = "INT1";