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