1# SPDX-License-Identifier: GPL-2.0
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/iio/imu/adi,adis16460.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Analog Devices ADIS16460 and similar IMUs
8
9maintainers:
10  - Dragos Bogdan <dragos.bogdan@analog.com>
11
12description: |
13  Analog Devices ADIS16460 and similar IMUs
14  https://www.analog.com/media/en/technical-documentation/data-sheets/ADIS16460.pdf
15
16properties:
17  compatible:
18    enum:
19      - adi,adis16460
20
21  reg:
22    maxItems: 1
23
24  spi-cpha: true
25
26  spi-cpol: true
27
28  interrupts:
29    maxItems: 1
30
31required:
32  - compatible
33  - reg
34  - interrupts
35
36examples:
37  - |
38    #include <dt-bindings/gpio/gpio.h>
39    #include <dt-bindings/interrupt-controller/irq.h>
40    spi0 {
41        #address-cells = <1>;
42        #size-cells = <0>;
43
44        imu@0 {
45            compatible = "adi,adis16460";
46            reg = <0>;
47            spi-max-frequency = <5000000>;
48            spi-cpol;
49            spi-cpha;
50            interrupt-parent = <&gpio0>;
51            interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
52        };
53    };
54