18c2ecf20Sopenharmony_ciInvensense MPU-3050 Gyroscope device tree bindings 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ciRequired properties: 48c2ecf20Sopenharmony_ci - compatible : should be "invensense,mpu3050" 58c2ecf20Sopenharmony_ci - reg : the I2C address of the sensor 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ciOptional properties: 88c2ecf20Sopenharmony_ci - interrupts : interrupt mapping for the trigger interrupt from the 98c2ecf20Sopenharmony_ci internal oscillator. The following IRQ modes are supported: 108c2ecf20Sopenharmony_ci IRQ_TYPE_EDGE_RISING, IRQ_TYPE_EDGE_FALLING, IRQ_TYPE_LEVEL_HIGH and 118c2ecf20Sopenharmony_ci IRQ_TYPE_LEVEL_LOW. The driver should detect and configure the hardware 128c2ecf20Sopenharmony_ci for the desired interrupt type. 138c2ecf20Sopenharmony_ci - vdd-supply : supply regulator for the main power voltage. 148c2ecf20Sopenharmony_ci - vlogic-supply : supply regulator for the signal voltage. 158c2ecf20Sopenharmony_ci - mount-matrix : see iio/mount-matrix.txt 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ciOptional subnodes: 188c2ecf20Sopenharmony_ci - The MPU-3050 will pass through and forward the I2C signals from the 198c2ecf20Sopenharmony_ci incoming I2C bus, alternatively drive traffic to a slave device (usually 208c2ecf20Sopenharmony_ci an accelerometer) on its own initiative. Therefore is supports a subnode 218c2ecf20Sopenharmony_ci i2c gate node. For details see: i2c/i2c-gate.txt 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ciExample: 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_cimpu3050@68 { 268c2ecf20Sopenharmony_ci compatible = "invensense,mpu3050"; 278c2ecf20Sopenharmony_ci reg = <0x68>; 288c2ecf20Sopenharmony_ci interrupt-parent = <&foo>; 298c2ecf20Sopenharmony_ci interrupts = <12 IRQ_TYPE_EDGE_FALLING>; 308c2ecf20Sopenharmony_ci vdd-supply = <&bar>; 318c2ecf20Sopenharmony_ci vlogic-supply = <&baz>; 328c2ecf20Sopenharmony_ci 338c2ecf20Sopenharmony_ci /* External I2C interface */ 348c2ecf20Sopenharmony_ci i2c-gate { 358c2ecf20Sopenharmony_ci #address-cells = <1>; 368c2ecf20Sopenharmony_ci #size-cells = <0>; 378c2ecf20Sopenharmony_ci 388c2ecf20Sopenharmony_ci fnord@18 { 398c2ecf20Sopenharmony_ci compatible = "fnord"; 408c2ecf20Sopenharmony_ci reg = <0x18>; 418c2ecf20Sopenharmony_ci interrupt-parent = <&foo>; 428c2ecf20Sopenharmony_ci interrupts = <13 IRQ_TYPE_EDGE_FALLING>; 438c2ecf20Sopenharmony_ci }; 448c2ecf20Sopenharmony_ci }; 458c2ecf20Sopenharmony_ci}; 46