1# SPDX-License-Identifier: GPL-2.0
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/iio/accel/adi,adxl372.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Analog Devices ADXL372 3-Axis, +/-(200g) Digital Accelerometer
8
9maintainers:
10  - Stefan Popa <stefan.popa@analog.com>
11
12description: |
13  Analog Devices ADXL372 3-Axis, +/-(200g) Digital Accelerometer that supports
14  both I2C & SPI interfaces
15    https://www.analog.com/en/products/adxl372.html
16
17properties:
18  compatible:
19    enum:
20      - adi,adxl372
21
22  reg:
23    maxItems: 1
24
25  interrupts:
26    maxItems: 1
27
28required:
29  - compatible
30  - reg
31  - interrupts
32
33examples:
34  - |
35        #include <dt-bindings/gpio/gpio.h>
36        #include <dt-bindings/interrupt-controller/irq.h>
37        i2c0 {
38                #address-cells = <1>;
39                #size-cells = <0>;
40
41                /* Example for a I2C device node */
42                accelerometer@53 {
43                        compatible = "adi,adxl372";
44                        reg = <0x53>;
45                        interrupt-parent = <&gpio>;
46                        interrupts = <25 IRQ_TYPE_EDGE_FALLING>;
47                };
48        };
49  - |
50        #include <dt-bindings/gpio/gpio.h>
51        #include <dt-bindings/interrupt-controller/irq.h>
52        spi0 {
53                #address-cells = <1>;
54                #size-cells = <0>;
55
56                accelerometer@0 {
57                        compatible = "adi,adxl372";
58                        reg = <0>;
59                        spi-max-frequency = <1000000>;
60                        interrupt-parent = <&gpio>;
61                        interrupts = <25 IRQ_TYPE_EDGE_FALLING>;
62                };
63        };
64