xref: /freebsd/sys/contrib/device-tree/Bindings/iio/gyroscope/invensense,mpu3050.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1Invensense MPU-3050 Gyroscope device tree bindings
2
3Required properties:
4  - compatible : should be "invensense,mpu3050"
5  - reg : the I2C address of the sensor
6
7Optional properties:
8  - interrupts : interrupt mapping for the trigger interrupt from the
9    internal oscillator. The following IRQ modes are supported:
10    IRQ_TYPE_EDGE_RISING, IRQ_TYPE_EDGE_FALLING, IRQ_TYPE_LEVEL_HIGH and
11    IRQ_TYPE_LEVEL_LOW. The driver should detect and configure the hardware
12    for the desired interrupt type.
13  - vdd-supply : supply regulator for the main power voltage.
14  - vlogic-supply : supply regulator for the signal voltage.
15  - mount-matrix : see iio/mount-matrix.txt
16
17Optional subnodes:
18  - The MPU-3050 will pass through and forward the I2C signals from the
19    incoming I2C bus, alternatively drive traffic to a slave device (usually
20    an accelerometer) on its own initiative. Therefore is supports a subnode
21    i2c gate node. For details see: i2c/i2c-gate.txt
22
23Example:
24
25mpu3050@68 {
26	compatible = "invensense,mpu3050";
27	reg = <0x68>;
28	interrupt-parent = <&foo>;
29	interrupts = <12 IRQ_TYPE_EDGE_FALLING>;
30	vdd-supply = <&bar>;
31	vlogic-supply = <&baz>;
32
33	/* External I2C interface */
34	i2c-gate {
35		#address-cells = <1>;
36		#size-cells = <0>;
37
38		fnord@18 {
39			compatible = "fnord";
40			reg = <0x18>;
41			interrupt-parent = <&foo>;
42			interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
43		};
44	};
45};
46