xref: /freebsd/sys/contrib/device-tree/Bindings/iio/gyroscope/bosch,bmg160.yaml (revision 7fdf597e96a02165cfe22ff357b857d5fa15ed8a)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/iio/gyroscope/bosch,bmg160.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Bosch BMG160 triaxial rotation sensor (gyroscope)
8
9maintainers:
10  - H. Nikolaus Schaller <hns@goldelico.com>
11
12properties:
13  compatible:
14    enum:
15      - bosch,bmg160
16      - bosch,bmi055_gyro
17      - bosch,bmi088_gyro
18
19  reg:
20    maxItems: 1
21
22  vdd-supply: true
23  vddio-supply: true
24
25  interrupts:
26    minItems: 1
27    maxItems: 2
28    description:
29      Should be configured with type IRQ_TYPE_EDGE_RISING.
30      If two interrupts are provided, expected order is INT1 and INT2.
31
32required:
33  - compatible
34  - reg
35
36additionalProperties: false
37
38examples:
39  - |
40    #include <dt-bindings/interrupt-controller/irq.h>
41    i2c {
42        #address-cells = <1>;
43        #size-cells = <0>;
44        gyroscope@69 {
45            compatible = "bosch,bmg160";
46            reg = <0x69>;
47            interrupt-parent = <&gpio6>;
48            interrupts = <18 IRQ_TYPE_EDGE_RISING>;
49        };
50    };
51...
52