xref: /freebsd/sys/contrib/device-tree/Bindings/iio/imu/adi,adis16460.yaml (revision 8d13bc63c0e1d50bc9e47ac1f26329c999bfecf0)
1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0
2c66ec88fSEmmanuel Vadot%YAML 1.2
3c66ec88fSEmmanuel Vadot---
4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/iio/imu/adi,adis16460.yaml#
5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6c66ec88fSEmmanuel Vadot
7c66ec88fSEmmanuel Vadottitle: Analog Devices ADIS16460 and similar IMUs
8c66ec88fSEmmanuel Vadot
9c66ec88fSEmmanuel Vadotmaintainers:
10c66ec88fSEmmanuel Vadot  - Dragos Bogdan <dragos.bogdan@analog.com>
11c66ec88fSEmmanuel Vadot
12c66ec88fSEmmanuel Vadotdescription: |
13c66ec88fSEmmanuel Vadot  Analog Devices ADIS16460 and similar IMUs
14c66ec88fSEmmanuel Vadot  https://www.analog.com/media/en/technical-documentation/data-sheets/ADIS16460.pdf
15c66ec88fSEmmanuel Vadot
16c66ec88fSEmmanuel Vadotproperties:
17c66ec88fSEmmanuel Vadot  compatible:
18c66ec88fSEmmanuel Vadot    enum:
19c66ec88fSEmmanuel Vadot      - adi,adis16460
20c66ec88fSEmmanuel Vadot
21c66ec88fSEmmanuel Vadot  reg:
22c66ec88fSEmmanuel Vadot    maxItems: 1
23c66ec88fSEmmanuel Vadot
24c66ec88fSEmmanuel Vadot  spi-cpha: true
25c66ec88fSEmmanuel Vadot
26c66ec88fSEmmanuel Vadot  spi-cpol: true
27c66ec88fSEmmanuel Vadot
28*8d13bc63SEmmanuel Vadot  spi-cs-inactive-delay-ns:
29*8d13bc63SEmmanuel Vadot    minimum: 16000
30*8d13bc63SEmmanuel Vadot    default: 16000
31*8d13bc63SEmmanuel Vadot
32c66ec88fSEmmanuel Vadot  interrupts:
33c66ec88fSEmmanuel Vadot    maxItems: 1
34c66ec88fSEmmanuel Vadot
35c66ec88fSEmmanuel Vadotrequired:
36c66ec88fSEmmanuel Vadot  - compatible
37c66ec88fSEmmanuel Vadot  - reg
38c66ec88fSEmmanuel Vadot  - interrupts
39c66ec88fSEmmanuel Vadot
407ef62cebSEmmanuel VadotallOf:
417ef62cebSEmmanuel Vadot  - $ref: /schemas/spi/spi-peripheral-props.yaml#
427ef62cebSEmmanuel Vadot
437ef62cebSEmmanuel VadotunevaluatedProperties: false
446be33864SEmmanuel Vadot
45c66ec88fSEmmanuel Vadotexamples:
46c66ec88fSEmmanuel Vadot  - |
47c66ec88fSEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
48c66ec88fSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
49cb7aa33aSEmmanuel Vadot    spi {
50c66ec88fSEmmanuel Vadot        #address-cells = <1>;
51c66ec88fSEmmanuel Vadot        #size-cells = <0>;
52c66ec88fSEmmanuel Vadot
53c66ec88fSEmmanuel Vadot        imu@0 {
54c66ec88fSEmmanuel Vadot            compatible = "adi,adis16460";
55c66ec88fSEmmanuel Vadot            reg = <0>;
56c66ec88fSEmmanuel Vadot            spi-max-frequency = <5000000>;
57c66ec88fSEmmanuel Vadot            spi-cpol;
58c66ec88fSEmmanuel Vadot            spi-cpha;
59c66ec88fSEmmanuel Vadot            interrupt-parent = <&gpio0>;
60c66ec88fSEmmanuel Vadot            interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
61c66ec88fSEmmanuel Vadot        };
62c66ec88fSEmmanuel Vadot    };
63