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