0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/iio/gyroscope/invensense,mpu3050.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Invensense MPU-3050 Gyroscope
0008
0009 maintainers:
0010 - Linus Walleij <linus.walleij@linaro.org>
0011
0012 properties:
0013 compatible:
0014 const: invensense,mpu3050
0015
0016 reg:
0017 maxItems: 1
0018
0019 vdd-supply: true
0020
0021 vlogic-supply: true
0022
0023 interrupts:
0024 minItems: 1
0025 description:
0026 Interrupt mapping for the trigger interrupt from the internal oscillator.
0027
0028 mount-matrix: true
0029
0030 i2c-gate:
0031 $ref: /schemas/i2c/i2c-controller.yaml
0032 unevaluatedProperties: false
0033 description: |
0034 The MPU-3050 will pass through and forward the I2C signals from the
0035 incoming I2C bus, alternatively drive traffic to a slave device (usually
0036 an accelerometer) on its own initiative. Therefore is supports an
0037 i2c-gate subnode.
0038
0039 required:
0040 - compatible
0041 - reg
0042
0043 additionalProperties: false
0044
0045 examples:
0046 - |
0047 #include <dt-bindings/interrupt-controller/irq.h>
0048 i2c {
0049 #address-cells = <1>;
0050 #size-cells = <0>;
0051 gyroscope@68 {
0052 compatible = "invensense,mpu3050";
0053 reg = <0x68>;
0054 interrupt-parent = <&foo>;
0055 interrupts = <12 IRQ_TYPE_EDGE_FALLING>;
0056 vdd-supply = <&bar>;
0057 vlogic-supply = <&baz>;
0058
0059 i2c-gate {
0060 #address-cells = <1>;
0061 #size-cells = <0>;
0062
0063 magnetometer@c {
0064 compatible = "asahi-kasei,ak8975";
0065 reg = <0x0c>;
0066 };
0067 };
0068 };
0069 };
0070 ...