Skip to contentSkip to conversation

arm64: dts: mt7622: handle interrupts from MT7531 switch on BPI-R64

PATCH Applied Daniel Golle 2 participants 2 messages Apr 19, 2023 – May 29, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/2 arm64: dts: mt7622: handle interrupts from MT7531 switch on BPI-R64

Since commit ba751e28d442 ("net: dsa: mt7530: add interrupt support") the mt7530 driver can act as an interrupt controller. Wire up irq line of the MT7531 switch on the BananaPi BPi-R64 board, so the status of the PHYs of the five 1000Base-T ports doesn't need to be polled any more.

---
 arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts +4 -0
index d583e816684cf..aabd104b12acf 100644
@@ -150,6 +150,10 @@ mdio: mdio-bus {
 		switch@0 {
 			compatible = "mediatek,mt7531";
 			reg = <0>;
+			interrupt-controller;
+			#interrupt-cells = <1>;
+			interrupt-parent = <&pio>;
+			interrupts = <53 IRQ_TYPE_LEVEL_HIGH>;
 			reset-gpios = <&pio 54 0>;
 
 			ports {
Signature · 1 line
2.40.0
maintainer Applied
#1 lore raw
Quoted 7 lines · Daniel Golle

Since commit ba751e28d442 ("net: dsa: mt7530: add interrupt support") the mt7530 driver can act as an interrupt controller. Wire up irq line of the MT7531 switch on the BananaPi BPi-R64 board, so the status of the PHYs of the five 1000Base-T ports doesn't need to be polled any more.

Applied, thanks

Quoted 19 lines
---
  arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts | 4 ++++
  1 file changed, 4 insertions(+)
arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts +4 -0
index d583e816684cf..aabd104b12acf 100644
@@ -150,6 +150,10 @@ mdio: mdio-bus {
  		switch@0 {
  			compatible = "mediatek,mt7531";
  			reg = <0>;
+			interrupt-controller;
+			#interrupt-cells = <1>;
+			interrupt-parent = <&pio>;
+			interrupts = <53 IRQ_TYPE_LEVEL_HIGH>;
  			reset-gpios = <&pio 54 0>;
 
  			ports {