Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
[linux-2.6-microblaze.git] / Documentation / devicetree / bindings / iio / accel / adi,adis16201.yaml
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
7 title: ADIS16201 Dual Axis Inclinometer and similar
8
9 maintainers:
10   - Jonathan Cameron <Jonathan.Cameron@huawei.com>
11
12 description: |
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
18 properties:
19   compatible:
20     enum:
21       - adi,adis16201
22       - adi,adis16209
23
24   reg:
25     maxItems: 1
26
27   interrupts:
28     maxItems: 1
29
30   spi-max-frequency: true
31
32   vdd-supply: true
33
34 required:
35   - compatible
36   - reg
37
38 additionalProperties: false
39
40 examples:
41   - |
42     #include <dt-bindings/interrupt-controller/irq.h>
43     spi0 {
44         #address-cells = <1>;
45         #size-cells = <0>;
46
47         accelerometer@0 {
48             compatible = "adi,adis16201";
49             reg = <0>;
50             spi-max-frequency = <2500000>;
51             interrupt-parent = <&gpio0>;
52             interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
53         };
54     };
55 ...