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/invensense,mpu3050.yaml#
55def4c47SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
65def4c47SEmmanuel Vadot
75def4c47SEmmanuel Vadottitle: Invensense MPU-3050 Gyroscope
85def4c47SEmmanuel Vadot
95def4c47SEmmanuel Vadotmaintainers:
105def4c47SEmmanuel Vadot  - Linus Walleij <linus.walleij@linaro.org>
115def4c47SEmmanuel Vadot
125def4c47SEmmanuel Vadotproperties:
135def4c47SEmmanuel Vadot  compatible:
145def4c47SEmmanuel Vadot    const: invensense,mpu3050
155def4c47SEmmanuel Vadot
165def4c47SEmmanuel Vadot  reg:
175def4c47SEmmanuel Vadot    maxItems: 1
185def4c47SEmmanuel Vadot
195def4c47SEmmanuel Vadot  vdd-supply: true
205def4c47SEmmanuel Vadot
215def4c47SEmmanuel Vadot  vlogic-supply: true
225def4c47SEmmanuel Vadot
235def4c47SEmmanuel Vadot  interrupts:
245def4c47SEmmanuel Vadot    minItems: 1
255def4c47SEmmanuel Vadot    description:
265def4c47SEmmanuel Vadot      Interrupt mapping for the trigger interrupt from the internal oscillator.
275def4c47SEmmanuel Vadot
285def4c47SEmmanuel Vadot  mount-matrix: true
295def4c47SEmmanuel Vadot
305def4c47SEmmanuel Vadot  i2c-gate:
315def4c47SEmmanuel Vadot    $ref: /schemas/i2c/i2c-controller.yaml
325def4c47SEmmanuel Vadot    unevaluatedProperties: false
335def4c47SEmmanuel Vadot    description: |
345def4c47SEmmanuel Vadot      The MPU-3050 will pass through and forward the I2C signals from the
355def4c47SEmmanuel Vadot      incoming I2C bus, alternatively drive traffic to a slave device (usually
365def4c47SEmmanuel Vadot      an accelerometer) on its own initiative. Therefore is supports an
375def4c47SEmmanuel Vadot      i2c-gate subnode.
385def4c47SEmmanuel Vadot
395def4c47SEmmanuel Vadotrequired:
405def4c47SEmmanuel Vadot  - compatible
415def4c47SEmmanuel Vadot  - reg
425def4c47SEmmanuel Vadot
435def4c47SEmmanuel VadotadditionalProperties: false
445def4c47SEmmanuel Vadot
455def4c47SEmmanuel Vadotexamples:
465def4c47SEmmanuel Vadot  - |
475def4c47SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
485def4c47SEmmanuel Vadot    i2c {
495def4c47SEmmanuel Vadot        #address-cells = <1>;
505def4c47SEmmanuel Vadot        #size-cells = <0>;
515def4c47SEmmanuel Vadot        gyroscope@68 {
525def4c47SEmmanuel Vadot            compatible = "invensense,mpu3050";
535def4c47SEmmanuel Vadot            reg = <0x68>;
545def4c47SEmmanuel Vadot            interrupt-parent = <&foo>;
555def4c47SEmmanuel Vadot            interrupts = <12 IRQ_TYPE_EDGE_FALLING>;
565def4c47SEmmanuel Vadot            vdd-supply = <&bar>;
575def4c47SEmmanuel Vadot            vlogic-supply = <&baz>;
585def4c47SEmmanuel Vadot
595def4c47SEmmanuel Vadot            i2c-gate {
605def4c47SEmmanuel Vadot                #address-cells = <1>;
615def4c47SEmmanuel Vadot                #size-cells = <0>;
625def4c47SEmmanuel Vadot
635def4c47SEmmanuel Vadot                magnetometer@c {
64*e67e8565SEmmanuel Vadot                    compatible = "asahi-kasei,ak8975";
655def4c47SEmmanuel Vadot                    reg = <0x0c>;
665def4c47SEmmanuel Vadot                };
675def4c47SEmmanuel Vadot            };
685def4c47SEmmanuel Vadot        };
695def4c47SEmmanuel Vadot    };
705def4c47SEmmanuel Vadot...
71