arm64: dts: zii-ultra: only trigger IRQ on falling edge ucs1002 ALERT pin
authorLucas Stach <l.stach@pengutronix.de>
Mon, 25 Jan 2021 18:47:35 +0000 (19:47 +0100)
committerShawn Guo <shawnguo@kernel.org>
Sat, 30 Jan 2021 13:54:17 +0000 (21:54 +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/arm64/boot/dts/freescale/imx8mq-zii-ultra.dtsi

index edbde9ed4caf7f455a26e523841fb2fce42e56bb..4dc8383478ee270c9ae4c3282b289d5513b36eed 100644 (file)
                reg = <0x32>;
                interrupt-parent = <&gpio3>;
                interrupts = <17 IRQ_TYPE_EDGE_BOTH>,
-                            <18 IRQ_TYPE_EDGE_BOTH>;
+                            <18 IRQ_TYPE_EDGE_FALLING>;
                interrupt-names = "a_det", "alert";
        };