Skip to content

Commit f3476e8

Browse files
Martin Kellyjic23
authored andcommitted
dt-bindings: iio:imu:mpu6050: support more interrupt types
Document that the hardware supports falling edge, rising edge, level low, and level high interrupt types, rather than just rising edge. The language used is the same as that in st_lsm6dsx.txt. Signed-off-by: Martin Kelly <[email protected]> Reviewed-by: Rob Herring <[email protected]> Acked-by: Jean-Baptiste Maneyrol <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
1 parent 5ec6486 commit f3476e8

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Documentation/devicetree/bindings/iio/imu/inv_mpu6050.txt

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@ Required properties:
1212
"invensense,icm20608"
1313
- reg : the I2C address of the sensor
1414
- interrupt-parent : should be the phandle for the interrupt controller
15-
- interrupts : interrupt mapping for GPIO IRQ
15+
- interrupts: interrupt mapping for IRQ. It should be configured with flags
16+
IRQ_TYPE_LEVEL_HIGH, IRQ_TYPE_EDGE_RISING, IRQ_TYPE_LEVEL_LOW or
17+
IRQ_TYPE_EDGE_FALLING.
18+
19+
Refer to interrupt-controller/interrupts.txt for generic interrupt client node
20+
bindings.
1621

1722
Optional properties:
1823
- mount-matrix: an optional 3x3 mounting rotation matrix
@@ -25,7 +30,7 @@ Example:
2530
compatible = "invensense,mpu6050";
2631
reg = <0x68>;
2732
interrupt-parent = <&gpio1>;
28-
interrupts = <18 1>;
33+
interrupts = <18 IRQ_TYPE_EDGE_RISING>;
2934
mount-matrix = "-0.984807753012208", /* x0 */
3035
"0", /* y0 */
3136
"-0.173648177666930", /* z0 */
@@ -42,7 +47,7 @@ Example:
4247
compatible = "invensense,mpu9250";
4348
reg = <0x68>;
4449
interrupt-parent = <&gpio3>;
45-
interrupts = <21 1>;
50+
interrupts = <21 IRQ_TYPE_LEVEL_HIGH>;
4651
i2c-gate {
4752
#address-cells = <1>;
4853
#size-cells = <0>;

0 commit comments

Comments
 (0)