xref: /freebsd/sys/contrib/device-tree/Bindings/iio/accel/adi,adis16240.yaml (revision cb7aa33ac6cd46a5434798e50363136e64f3ae98)
1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2c66ec88fSEmmanuel Vadot%YAML 1.2
3c66ec88fSEmmanuel Vadot---
4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/iio/accel/adi,adis16240.yaml#
5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6c66ec88fSEmmanuel Vadot
7c66ec88fSEmmanuel Vadottitle: ADIS16240 Programmable Impact Sensor and Recorder driver
8c66ec88fSEmmanuel Vadot
9c66ec88fSEmmanuel Vadotmaintainers:
10b97ee269SEmmanuel Vadot  - Alexandru Tachici <alexandru.tachici@analog.com>
11c66ec88fSEmmanuel Vadot
12c66ec88fSEmmanuel Vadotdescription: |
13c66ec88fSEmmanuel Vadot  ADIS16240 Programmable Impact Sensor and Recorder driver that supports
14c66ec88fSEmmanuel Vadot  SPI interface.
15c66ec88fSEmmanuel Vadot    https://www.analog.com/en/products/adis16240.html
16c66ec88fSEmmanuel Vadot
17c66ec88fSEmmanuel Vadotproperties:
18c66ec88fSEmmanuel Vadot  compatible:
19c66ec88fSEmmanuel Vadot    enum:
20c66ec88fSEmmanuel Vadot      - adi,adis16240
21c66ec88fSEmmanuel Vadot
22c66ec88fSEmmanuel Vadot  reg:
23c66ec88fSEmmanuel Vadot    maxItems: 1
24c66ec88fSEmmanuel Vadot
25c66ec88fSEmmanuel Vadot  interrupts:
26c66ec88fSEmmanuel Vadot    maxItems: 1
27c66ec88fSEmmanuel Vadot
28c66ec88fSEmmanuel Vadotrequired:
29c66ec88fSEmmanuel Vadot  - compatible
30c66ec88fSEmmanuel Vadot  - reg
31c66ec88fSEmmanuel Vadot  - interrupts
32c66ec88fSEmmanuel Vadot
337ef62cebSEmmanuel VadotallOf:
347ef62cebSEmmanuel Vadot  - $ref: /schemas/spi/spi-peripheral-props.yaml#
357ef62cebSEmmanuel Vadot
367ef62cebSEmmanuel VadotunevaluatedProperties: false
376be33864SEmmanuel Vadot
38c66ec88fSEmmanuel Vadotexamples:
39c66ec88fSEmmanuel Vadot  - |
40c66ec88fSEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
41c66ec88fSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
42*cb7aa33aSEmmanuel Vadot    spi {
43c66ec88fSEmmanuel Vadot        #address-cells = <1>;
44c66ec88fSEmmanuel Vadot        #size-cells = <0>;
45c66ec88fSEmmanuel Vadot
46c66ec88fSEmmanuel Vadot        /* Example for a SPI device node */
47c66ec88fSEmmanuel Vadot        accelerometer@0 {
48c66ec88fSEmmanuel Vadot            compatible = "adi,adis16240";
49c66ec88fSEmmanuel Vadot            reg = <0>;
50c66ec88fSEmmanuel Vadot            spi-max-frequency = <2500000>;
51c66ec88fSEmmanuel Vadot            interrupt-parent = <&gpio0>;
52c66ec88fSEmmanuel Vadot            interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
53c66ec88fSEmmanuel Vadot        };
54c66ec88fSEmmanuel Vadot    };
55