Path: blob/master/Documentation/devicetree/bindings/iio/gyroscope/bosch,bmg160.yaml
26309 views
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/iio/gyroscope/bosch,bmg160.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Bosch BMG160 triaxial rotation sensor (gyroscope)78maintainers:9- H. Nikolaus Schaller <hns@goldelico.com>1011properties:12compatible:13enum:14- bosch,bmg16015- bosch,bmi055_gyro16- bosch,bmi088_gyro1718reg:19maxItems: 12021vdd-supply: true22vddio-supply: true2324spi-max-frequency:25maximum: 100000002627interrupts:28minItems: 129maxItems: 230description:31Should be configured with type IRQ_TYPE_EDGE_RISING.32If two interrupts are provided, expected order is INT1 and INT2.3334required:35- compatible36- reg3738allOf:39- $ref: /schemas/spi/spi-peripheral-props.yaml#4041unevaluatedProperties: false4243examples:44- |45#include <dt-bindings/interrupt-controller/irq.h>46i2c {47#address-cells = <1>;48#size-cells = <0>;49gyroscope@69 {50compatible = "bosch,bmg160";51reg = <0x69>;52interrupt-parent = <&gpio6>;53interrupts = <18 IRQ_TYPE_EDGE_RISING>;54};55};56...575859