xref: /freebsd/sys/contrib/device-tree/Bindings/iio/imu/adi,adis16460.yaml (revision 397e83df75e0fcd0d3fcb95ae4d794cb7600fc89)
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  spi-cs-inactive-delay-ns:
29    minimum: 16000
30    default: 16000
31
32  interrupts:
33    maxItems: 1
34
35required:
36  - compatible
37  - reg
38  - interrupts
39
40allOf:
41  - $ref: /schemas/spi/spi-peripheral-props.yaml#
42
43unevaluatedProperties: false
44
45examples:
46  - |
47    #include <dt-bindings/gpio/gpio.h>
48    #include <dt-bindings/interrupt-controller/irq.h>
49    spi {
50        #address-cells = <1>;
51        #size-cells = <0>;
52
53        imu@0 {
54            compatible = "adi,adis16460";
55            reg = <0>;
56            spi-max-frequency = <5000000>;
57            spi-cpol;
58            spi-cpha;
59            interrupt-parent = <&gpio0>;
60            interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
61        };
62    };
63