mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 00:24:41 -04:00
dt-bindings: iio: add Bosch BMG160 gyroscope sensor
Define bindings for "bosch,bmg160" and "bosch,bmi055_gyro". Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com> Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
parent
94bceb3cf5
commit
e8379e05e8
1 changed files with 20 additions and 0 deletions
20
Documentation/devicetree/bindings/iio/gyroscope/bmg160.txt
Normal file
20
Documentation/devicetree/bindings/iio/gyroscope/bmg160.txt
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
* Bosch BMG160 triaxial rotation sensor (gyroscope)
|
||||
|
||||
Required properties:
|
||||
|
||||
- compatible : should be "bosch,bmg160" or "bosch,bmi055_gyro"
|
||||
- reg : the I2C address of the sensor (0x69)
|
||||
|
||||
Optional properties:
|
||||
|
||||
- interrupts : interrupt mapping for GPIO IRQ, it should by configured with
|
||||
flags IRQ_TYPE_EDGE_RISING
|
||||
|
||||
Example:
|
||||
|
||||
bmg160@69 {
|
||||
compatible = "bosch,bmg160";
|
||||
reg = <0x69>;
|
||||
interrupt-parent = <&gpio6>;
|
||||
interrupts = <18 (IRQ_TYPE_EDGE_RISING)>;
|
||||
};
|
||||
Loading…
Reference in a new issue