d396d38f203c6b70761aafe50c798646c989362c
[openwrt/staging/pepe2k.git] /
1 From 983f37ee08acb60435744f1b1e2afea2d2a09c48 Mon Sep 17 00:00:00 2001
2 From: Daniel Golle <daniel@makrotopia.org>
3 Date: Wed, 19 Apr 2023 20:16:29 +0100
4 Subject: [PATCH] arm64: dts: mt7622: handle interrupts from MT7531 switch on
5 BPI-R64
6
7 Since commit ba751e28d442 ("net: dsa: mt7530: add interrupt support")
8 the mt7530 driver can act as an interrupt controller. Wire up irq line
9 of the MT7531 switch on the BananaPi BPi-R64 board, so the status of
10 the PHYs of the five 1000Base-T ports doesn't need to be polled any
11 more.
12
13 Signed-off-by: Daniel Golle <daniel@makrotopia.org>
14 Link: https://lore.kernel.org/r/ZEA-DV_OsmFg5egL@makrotopia.org
15 Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
16 ---
17 arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts | 4 ++++
18 1 file changed, 4 insertions(+)
19
20 --- a/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
21 +++ b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
22 @@ -155,6 +155,10 @@
23 switch@0 {
24 compatible = "mediatek,mt7531";
25 reg = <0>;
26 + interrupt-controller;
27 + #interrupt-cells = <1>;
28 + interrupt-parent = <&pio>;
29 + interrupts = <53 IRQ_TYPE_LEVEL_HIGH>;
30 reset-gpios = <&pio 54 0>;
31
32 ports {