15def4c47SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 25def4c47SEmmanuel Vadot%YAML 1.2 35def4c47SEmmanuel Vadot--- 45def4c47SEmmanuel Vadot$id: http://devicetree.org/schemas/iio/gyroscope/bosch,bmg160.yaml# 55def4c47SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 65def4c47SEmmanuel Vadot 75def4c47SEmmanuel Vadottitle: Bosch BMG160 triaxial rotation sensor (gyroscope) 85def4c47SEmmanuel Vadot 95def4c47SEmmanuel Vadotmaintainers: 105def4c47SEmmanuel Vadot - H. Nikolaus Schaller <hns@goldelico.com> 115def4c47SEmmanuel Vadot 125def4c47SEmmanuel Vadotproperties: 135def4c47SEmmanuel Vadot compatible: 145def4c47SEmmanuel Vadot enum: 155def4c47SEmmanuel Vadot - bosch,bmg160 165def4c47SEmmanuel Vadot - bosch,bmi055_gyro 175def4c47SEmmanuel Vadot - bosch,bmi088_gyro 185def4c47SEmmanuel Vadot 195def4c47SEmmanuel Vadot reg: 205def4c47SEmmanuel Vadot maxItems: 1 215def4c47SEmmanuel Vadot 225def4c47SEmmanuel Vadot vdd-supply: true 235def4c47SEmmanuel Vadot vddio-supply: true 245def4c47SEmmanuel Vadot 255def4c47SEmmanuel Vadot interrupts: 265def4c47SEmmanuel Vadot minItems: 1 27*b97ee269SEmmanuel Vadot maxItems: 2 285def4c47SEmmanuel Vadot description: 295def4c47SEmmanuel Vadot Should be configured with type IRQ_TYPE_EDGE_RISING. 30*b97ee269SEmmanuel Vadot If two interrupts are provided, expected order is INT1 and INT2. 315def4c47SEmmanuel Vadot 325def4c47SEmmanuel Vadotrequired: 335def4c47SEmmanuel Vadot - compatible 345def4c47SEmmanuel Vadot - reg 355def4c47SEmmanuel Vadot 365def4c47SEmmanuel VadotadditionalProperties: false 375def4c47SEmmanuel Vadot 385def4c47SEmmanuel Vadotexamples: 395def4c47SEmmanuel Vadot - | 405def4c47SEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 415def4c47SEmmanuel Vadot i2c { 425def4c47SEmmanuel Vadot #address-cells = <1>; 435def4c47SEmmanuel Vadot #size-cells = <0>; 445def4c47SEmmanuel Vadot gyroscope@69 { 455def4c47SEmmanuel Vadot compatible = "bosch,bmg160"; 465def4c47SEmmanuel Vadot reg = <0x69>; 475def4c47SEmmanuel Vadot interrupt-parent = <&gpio6>; 485def4c47SEmmanuel Vadot interrupts = <18 IRQ_TYPE_EDGE_RISING>; 495def4c47SEmmanuel Vadot }; 505def4c47SEmmanuel Vadot }; 515def4c47SEmmanuel Vadot... 52