Path: blob/main/sys/contrib/device-tree/Bindings/iio/gyroscope/invensense,mpu3050.txt
48525 views
Invensense MPU-3050 Gyroscope device tree bindings12Required properties:3- compatible : should be "invensense,mpu3050"4- reg : the I2C address of the sensor56Optional properties:7- interrupts : interrupt mapping for the trigger interrupt from the8internal oscillator. The following IRQ modes are supported:9IRQ_TYPE_EDGE_RISING, IRQ_TYPE_EDGE_FALLING, IRQ_TYPE_LEVEL_HIGH and10IRQ_TYPE_LEVEL_LOW. The driver should detect and configure the hardware11for the desired interrupt type.12- vdd-supply : supply regulator for the main power voltage.13- vlogic-supply : supply regulator for the signal voltage.14- mount-matrix : see iio/mount-matrix.txt1516Optional subnodes:17- The MPU-3050 will pass through and forward the I2C signals from the18incoming I2C bus, alternatively drive traffic to a slave device (usually19an accelerometer) on its own initiative. Therefore is supports a subnode20i2c gate node. For details see: i2c/i2c-gate.txt2122Example:2324mpu3050@68 {25compatible = "invensense,mpu3050";26reg = <0x68>;27interrupt-parent = <&foo>;28interrupts = <12 IRQ_TYPE_EDGE_FALLING>;29vdd-supply = <&bar>;30vlogic-supply = <&baz>;3132/* External I2C interface */33i2c-gate {34#address-cells = <1>;35#size-cells = <0>;3637fnord@18 {38compatible = "fnord";39reg = <0x18>;40interrupt-parent = <&foo>;41interrupts = <13 IRQ_TYPE_EDGE_FALLING>;42};43};44};454647