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