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