* [PATCH 2/2] arm64: dts: mt7622: handle interrupts from MT7531 switch on BPI-R64
@ 2023-04-19 19:16 Daniel Golle
2023-05-29 14:25 ` Matthias Brugger
0 siblings, 1 reply; 2+ messages in thread
From: Daniel Golle @ 2023-04-19 19:16 UTC (permalink / raw)
To: devicetree, linux-mediatek, linux-arm-kernel, linux-kernel,
Rob Herring, Krzysztof Kozlowski, Matthias Brugger,
AngeloGioacchino Del Regno
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.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
---
arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
index d583e816684cf..aabd104b12acf 100644
--- a/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
+++ b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
@@ -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 {
--
2.40.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 2/2] arm64: dts: mt7622: handle interrupts from MT7531 switch on BPI-R64
2023-04-19 19:16 [PATCH 2/2] arm64: dts: mt7622: handle interrupts from MT7531 switch on BPI-R64 Daniel Golle
@ 2023-05-29 14:25 ` Matthias Brugger
0 siblings, 0 replies; 2+ messages in thread
From: Matthias Brugger @ 2023-05-29 14:25 UTC (permalink / raw)
To: Daniel Golle, devicetree, linux-mediatek, linux-arm-kernel,
linux-kernel, Rob Herring, Krzysztof Kozlowski,
AngeloGioacchino Del Regno
On 19/04/2023 21:16, Daniel Golle wrote:
> 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.
>
> Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Applied, thanks
> ---
> arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
> index d583e816684cf..aabd104b12acf 100644
> --- a/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
> +++ b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
> @@ -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 {
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-05-29 14:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-19 19:16 [PATCH 2/2] arm64: dts: mt7622: handle interrupts from MT7531 switch on BPI-R64 Daniel Golle
2023-05-29 14:25 ` Matthias Brugger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®