Commit f3476e8f authored by Martin Kelly's avatar Martin Kelly Committed by Jonathan Cameron

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: default avatarMartin Kelly <mkelly@xevo.com>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Acked-by: default avatarJean-Baptiste Maneyrol <jmaneyrol@invensense.com>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 5ec6486d
...@@ -12,7 +12,12 @@ Required properties: ...@@ -12,7 +12,12 @@ Required properties:
"invensense,icm20608" "invensense,icm20608"
- reg : the I2C address of the sensor - reg : the I2C address of the sensor
- interrupt-parent : should be the phandle for the interrupt controller - interrupt-parent : should be the phandle for the interrupt controller
- interrupts : interrupt mapping for GPIO IRQ - interrupts: interrupt mapping for IRQ. It should be configured with flags
IRQ_TYPE_LEVEL_HIGH, IRQ_TYPE_EDGE_RISING, IRQ_TYPE_LEVEL_LOW or
IRQ_TYPE_EDGE_FALLING.
Refer to interrupt-controller/interrupts.txt for generic interrupt client node
bindings.
Optional properties: Optional properties:
- mount-matrix: an optional 3x3 mounting rotation matrix - mount-matrix: an optional 3x3 mounting rotation matrix
...@@ -25,7 +30,7 @@ Example: ...@@ -25,7 +30,7 @@ Example:
compatible = "invensense,mpu6050"; compatible = "invensense,mpu6050";
reg = <0x68>; reg = <0x68>;
interrupt-parent = <&gpio1>; interrupt-parent = <&gpio1>;
interrupts = <18 1>; interrupts = <18 IRQ_TYPE_EDGE_RISING>;
mount-matrix = "-0.984807753012208", /* x0 */ mount-matrix = "-0.984807753012208", /* x0 */
"0", /* y0 */ "0", /* y0 */
"-0.173648177666930", /* z0 */ "-0.173648177666930", /* z0 */
...@@ -42,7 +47,7 @@ Example: ...@@ -42,7 +47,7 @@ Example:
compatible = "invensense,mpu9250"; compatible = "invensense,mpu9250";
reg = <0x68>; reg = <0x68>;
interrupt-parent = <&gpio3>; interrupt-parent = <&gpio3>;
interrupts = <21 1>; interrupts = <21 IRQ_TYPE_LEVEL_HIGH>;
i2c-gate { i2c-gate {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment