aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips
diff options
context:
space:
mode:
authorDENG Qingfang <dqfext@gmail.com>2022-02-10 13:59:46 +0800
committerDaniel Golle <daniel@makrotopia.org>2022-02-10 13:44:06 +0000
commitf9cfe7af1f1f16082eb1fdda89f0331948517f22 (patch)
tree8877d004179e2b3b163757167c56145dfb11303c /target/linux/ramips
parent8d8d26ba428d6f45c456b25622397e6ff75b1d47 (diff)
downloadupstream-f9cfe7af1f1f16082eb1fdda89f0331948517f22.tar.gz
upstream-f9cfe7af1f1f16082eb1fdda89f0331948517f22.tar.bz2
upstream-f9cfe7af1f1f16082eb1fdda89f0331948517f22.zip
kernel: backport MT7530 IRQ support
Support MT7530 PHY link change interrupts, and enable for MT7621. For external MT7530, a GPIO IRQ line is required, which is board-specific, so it should be added to each DTS. In case the interrupt-controller property is missing, it will fall back to polling mode. Signed-off-by: DENG Qingfang <dqfext@gmail.com>
Diffstat (limited to 'target/linux/ramips')
-rw-r--r--target/linux/ramips/dts/mt7621.dtsi3
1 files changed, 3 insertions, 0 deletions
diff --git a/target/linux/ramips/dts/mt7621.dtsi b/target/linux/ramips/dts/mt7621.dtsi
index 4a3327a364..b784a9d60c 100644
--- a/target/linux/ramips/dts/mt7621.dtsi
+++ b/target/linux/ramips/dts/mt7621.dtsi
@@ -487,6 +487,9 @@
mediatek,mcm;
resets = <&rstctrl 2>;
reset-names = "mcm";
+ interrupt-controller;
+ #interrupt-cells = <1>;
+ interrupts = <GIC_SHARED 23 IRQ_TYPE_LEVEL_HIGH>;
ports {
#address-cells = <1>;