180-v6.5-arm64-dts-mt7622-handle-interrupts-from-MT7531-switc.patch 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. From 983f37ee08acb60435744f1b1e2afea2d2a09c48 Mon Sep 17 00:00:00 2001
  2. From: Daniel Golle <[email protected]>
  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. Since commit ba751e28d442 ("net: dsa: mt7530: add interrupt support")
  7. the mt7530 driver can act as an interrupt controller. Wire up irq line
  8. of the MT7531 switch on the BananaPi BPi-R64 board, so the status of
  9. the PHYs of the five 1000Base-T ports doesn't need to be polled any
  10. more.
  11. Signed-off-by: Daniel Golle <[email protected]>
  12. Link: https://lore.kernel.org/r/[email protected]
  13. Signed-off-by: Matthias Brugger <[email protected]>
  14. ---
  15. arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts | 4 ++++
  16. 1 file changed, 4 insertions(+)
  17. --- a/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
  18. +++ b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
  19. @@ -154,6 +154,10 @@
  20. switch@0 {
  21. compatible = "mediatek,mt7531";
  22. reg = <0>;
  23. + interrupt-controller;
  24. + #interrupt-cells = <1>;
  25. + interrupt-parent = <&pio>;
  26. + interrupts = <53 IRQ_TYPE_LEVEL_HIGH>;
  27. reset-gpios = <&pio 54 0>;
  28. ports {