xref: /freebsd/sys/contrib/device-tree/Bindings/iio/accel/adi,adis16201.yaml (revision 59c8e88e72633afbc47a4ace0d2170d00d51f7dc)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/iio/accel/adi,adis16201.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: ADIS16201 Dual Axis Inclinometer and similar
8
9maintainers:
10  - Jonathan Cameron <Jonathan.Cameron@huawei.com>
11
12description: |
13  Two similar parts from external interface point of view.
14  SPI interface.
15    https://www.analog.com/en/products/adis16201.html
16    https://www.analog.com/en/products/adis16209.html
17
18properties:
19  compatible:
20    enum:
21      - adi,adis16201
22      - adi,adis16209
23
24  reg:
25    maxItems: 1
26
27  interrupts:
28    maxItems: 1
29
30  vdd-supply: true
31
32required:
33  - compatible
34  - reg
35
36allOf:
37  - $ref: /schemas/spi/spi-peripheral-props.yaml#
38
39unevaluatedProperties: false
40
41examples:
42  - |
43    #include <dt-bindings/interrupt-controller/irq.h>
44    spi {
45        #address-cells = <1>;
46        #size-cells = <0>;
47
48        accelerometer@0 {
49            compatible = "adi,adis16201";
50            reg = <0>;
51            spi-max-frequency = <2500000>;
52            interrupt-parent = <&gpio0>;
53            interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
54        };
55    };
56...
57