ARM: dts: imx6: RDU2: only trigger IRQ on falling edge ucs1002 ALERT pin
authorLucas Stach <l.stach@pengutronix.de>
Mon, 25 Jan 2021 18:47:30 +0000 (19:47 +0100)
committerShawn Guo <shawnguo@kernel.org>
Sat, 30 Jan 2021 13:52:28 +0000 (21:52 +0800)
The ALERT signaling happens on the falling edge of the signal, as rising
edge doesn't really have any notion, as it may happen much later (due to
shared IRQ line) or too early if the chip resolves the fault itself. So
only trigger the IRQ on the edge we are actually interested in.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6qdl-zii-rdu2.dtsi

index ba26e1b..dcc97a8 100644 (file)
                pinctrl-0 = <&pinctrl_ucs1002_pins>;
                reg = <0x32>;
                interrupts-extended = <&gpio5 2 IRQ_TYPE_EDGE_BOTH>,
-                                     <&gpio3 21 IRQ_TYPE_EDGE_BOTH>;
+                                     <&gpio3 21 IRQ_TYPE_EDGE_FALLING>;
                interrupt-names = "a_det", "alert";
        };