-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iio: gyro: Add MPU-3050 device tree bindings
This adds device tree bindings for the MPU-3050 gyroscope. Since it is the first set of bindings for a gyroscope, the folder for it is also created. Cc: devicetree@vger.kernel.org Cc: Peter Rosin <peda@axentia.se> Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
- Loading branch information
Linus Walleij
authored and
Jonathan Cameron
committed
Oct 25, 2016
1 parent
49b9137
commit e0549df
Showing
1 changed file
with
46 additions
and
0 deletions.
There are no files selected for viewing
46 changes: 46 additions & 0 deletions
46
Documentation/devicetree/bindings/iio/gyroscope/invensense,mpu3050.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
Invensense MPU-3050 Gyroscope device tree bindings | ||
|
||
Required properties: | ||
- compatible : should be "invensense,mpu3050" | ||
- reg : the I2C address of the sensor | ||
|
||
Optional properties: | ||
- interrupt-parent : should be the phandle for the interrupt controller | ||
- interrupts : interrupt mapping for the trigger interrupt from the | ||
internal oscillator. The following IRQ modes are supported: | ||
IRQ_TYPE_EDGE_RISING, IRQ_TYPE_EDGE_FALLING, IRQ_TYPE_LEVEL_HIGH and | ||
IRQ_TYPE_LEVEL_LOW. The driver should detect and configure the hardware | ||
for the desired interrupt type. | ||
- vdd-supply : supply regulator for the main power voltage. | ||
- vlogic-supply : supply regulator for the signal voltage. | ||
- mount-matrix : see iio/mount-matrix.txt | ||
|
||
Optional subnodes: | ||
- The MPU-3050 will pass through and forward the I2C signals from the | ||
incoming I2C bus, alternatively drive traffic to a slave device (usually | ||
an accelerometer) on its own initiative. Therefore is supports a subnode | ||
i2c gate node. For details see: i2c/i2c-gate.txt | ||
|
||
Example: | ||
|
||
mpu3050@68 { | ||
compatible = "invensense,mpu3050"; | ||
reg = <0x68>; | ||
interrupt-parent = <&foo>; | ||
interrupts = <12 IRQ_TYPE_EDGE_FALLING>; | ||
vdd-supply = <&bar>; | ||
vlogic-supply = <&baz>; | ||
|
||
/* External I2C interface */ | ||
i2c-gate { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
fnord@18 { | ||
compatible = "fnord"; | ||
reg = <0x18>; | ||
interrupt-parent = <&foo>; | ||
interrupts = <13 IRQ_TYPE_EDGE_FALLING>; | ||
}; | ||
}; | ||
}; |