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>
This commit is contained in:
DENG Qingfang
2022-02-10 13:59:46 +08:00
committed by Daniel Golle
parent 8d8d26ba42
commit f9cfe7af1f
2 changed files with 428 additions and 0 deletions

View File

@@ -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>;