2021-04-07 18:23:06

by Qingfang Deng

[permalink] [raw]
Subject: [RFC v2 net-next 0/4] MT7530 interrupt support

Add support for MT7530 interrupt controller.

DENG Qingfang (4):
net: phy: add MediaTek PHY driver
net: dsa: mt7530: add interrupt support
dt-bindings: net: dsa: add MT7530 interrupt controller binding
staging: mt7621-dts: enable MT7530 interrupt controller

.../devicetree/bindings/net/dsa/mt7530.txt | 5 +
drivers/net/dsa/mt7530.c | 203 ++++++++++++++++--
drivers/net/dsa/mt7530.h | 18 +-
drivers/net/phy/Kconfig | 5 +
drivers/net/phy/Makefile | 1 +
drivers/net/phy/mediatek.c | 109 ++++++++++
drivers/staging/mt7621-dts/mt7621.dtsi | 3 +
7 files changed, 323 insertions(+), 21 deletions(-)
create mode 100644 drivers/net/phy/mediatek.c

--
2.25.1


2021-04-07 18:24:20

by Qingfang Deng

[permalink] [raw]
Subject: [RFC v2 net-next 4/4] staging: mt7621-dts: enable MT7530 interrupt controller

Enable MT7530 interrupt controller in the MT7621 SoC.

Signed-off-by: DENG Qingfang <[email protected]>
---
RFC v1 -> RFC v2:
- No changes.

drivers/staging/mt7621-dts/mt7621.dtsi | 3 +++
1 file changed, 3 insertions(+)

diff --git a/drivers/staging/mt7621-dts/mt7621.dtsi b/drivers/staging/mt7621-dts/mt7621.dtsi
index 16fc94f65486..ebf8b0633e88 100644
--- a/drivers/staging/mt7621-dts/mt7621.dtsi
+++ b/drivers/staging/mt7621-dts/mt7621.dtsi
@@ -447,6 +447,9 @@ switch0: switch0@0 {
mediatek,mcm;
resets = <&rstctrl 2>;
reset-names = "mcm";
+ interrupt-controller;
+ interrupt-parent = <&gic>;
+ interrupts = <GIC_SHARED 23 IRQ_TYPE_LEVEL_HIGH>;

ports {
#address-cells = <1>;
--
2.25.1

2021-04-07 23:26:07

by Andrew Lunn

[permalink] [raw]
Subject: Re: [RFC v2 net-next 4/4] staging: mt7621-dts: enable MT7530 interrupt controller

On Wed, Apr 07, 2021 at 12:50:38PM +0800, DENG Qingfang wrote:
> Enable MT7530 interrupt controller in the MT7621 SoC.
>
> Signed-off-by: DENG Qingfang <[email protected]>

Reviewed-by: Andrew Lunn <[email protected]>

Andrew