ARM: dts: rockchip: correct interrupt flags on rk3188 boards
authorKrzysztof Kozlowski <krzk@kernel.org>
Thu, 17 Sep 2020 18:52:10 +0000 (20:52 +0200)
committerHeiko Stuebner <heiko@sntech.de>
Mon, 4 Apr 2022 07:56:31 +0000 (09:56 +0200)
GPIO_ACTIVE_x flags are not correct in the context of interrupt flags.
These are simple defines so they could be used in DTS but they will not
have the same meaning:
1. GPIO_ACTIVE_HIGH = 0 = IRQ_TYPE_NONE
2. GPIO_ACTIVE_LOW  = 1 = IRQ_TYPE_EDGE_RISING

Correct the interrupt flags without affecting the code:
  ACTIVE_HIGH => IRQ_TYPE_NONE

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Link: https://lore.kernel.org/r/20200917185211.5483-1-krzk@kernel.org
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm/boot/dts/rk3188-bqedison2qc.dts

index 85d3fce0142f6e24d2c50e6bd7ea60559e8af23b..35b7a5798eeeeb88721ac56924e980e688a2b0fb 100644 (file)
@@ -7,6 +7,7 @@
 /dts-v1/;
 #include <dt-bindings/i2c/i2c.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/interrupt-controller/irq.h>
 #include "rk3188.dtsi"
 
 / {
                reg = <1>;
                compatible = "brcm,bcm4329-fmac";
                interrupt-parent = <&gpio3>;
-               interrupts = <RK_PD2 GPIO_ACTIVE_HIGH>;
+               interrupts = <RK_PD2 IRQ_TYPE_NONE>;
                interrupt-names = "host-wake";
                brcm,drive-strength = <5>;
                pinctrl-names = "default";