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    description:
28      Should be configured with type IRQ_TYPE_EDGE_RISING.
29
30required:
31  - compatible
32  - reg
33
34additionalProperties: false
35
36examples:
37  - |
38    #include <dt-bindings/interrupt-controller/irq.h>
39    i2c {
40        #address-cells = <1>;
41        #size-cells = <0>;
42        gyroscope@69 {
43            compatible = "bosch,bmg160";
44            reg = <0x69>;
45            interrupt-parent = <&gpio6>;
46            interrupts = <18 IRQ_TYPE_EDGE_RISING>;
47        };
48    };
49...
50