71 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/iio/gyroscope/invensense,mpu3050.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Invensense MPU-3050 Gyroscope8 9maintainers:10 - Linus Walleij <linus.walleij@linaro.org>11 12properties:13 compatible:14 const: invensense,mpu305015 16 reg:17 maxItems: 118 19 vdd-supply: true20 21 vlogic-supply: true22 23 interrupts:24 minItems: 125 description:26 Interrupt mapping for the trigger interrupt from the internal oscillator.27 28 mount-matrix: true29 30 i2c-gate:31 $ref: /schemas/i2c/i2c-controller.yaml32 unevaluatedProperties: false33 description: |34 The MPU-3050 will pass through and forward the I2C signals from the35 incoming I2C bus, alternatively drive traffic to a slave device (usually36 an accelerometer) on its own initiative. Therefore is supports an37 i2c-gate subnode.38 39required:40 - compatible41 - reg42 43additionalProperties: false44 45examples:46 - |47 #include <dt-bindings/interrupt-controller/irq.h>48 i2c {49 #address-cells = <1>;50 #size-cells = <0>;51 gyroscope@68 {52 compatible = "invensense,mpu3050";53 reg = <0x68>;54 interrupt-parent = <&foo>;55 interrupts = <12 IRQ_TYPE_EDGE_FALLING>;56 vdd-supply = <&bar>;57 vlogic-supply = <&baz>;58 59 i2c-gate {60 #address-cells = <1>;61 #size-cells = <0>;62 63 magnetometer@c {64 compatible = "asahi-kasei,ak8975";65 reg = <0x0c>;66 };67 };68 };69 };70...71