032-v6.6-0009-ARM-dts-BCM53573-Fix-Ethernet-info-for-Luxul-devices.patch 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. From 44ad8207806973f4e4f7d870fff36cc01f494250 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <[email protected]>
  3. Date: Thu, 13 Jul 2023 13:11:45 +0200
  4. Subject: [PATCH] ARM: dts: BCM53573: Fix Ethernet info for Luxul devices
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. Both Luxul's XAP devices (XAP-810 and XAP-1440) are access points that
  9. use a non-default design. They don't include switch but have a single
  10. Ethernet port and BCM54210E PHY connected to the Ethernet controller's
  11. MDIO bus.
  12. Support for those devices regressed due to two changes:
  13. 1. Describing MDIO bus with switch
  14. After commit 9fb90ae6cae7 ("ARM: dts: BCM53573: Describe on-SoC BCM53125
  15. rev 4 switch") Linux stopped probing for MDIO devices.
  16. 2. Dropping hardcoded BCM54210E delays
  17. In commit fea7fda7f50a ("net: phy: broadcom: Fix RGMII delays
  18. configuration for BCM54210E") support for other PHY modes was added but
  19. that requires a proper "phy-mode" value in DT.
  20. Both above changes are correct (they don't need to be reverted or
  21. anything) but they need this fix for DT data to be correct and for Linux
  22. to work properly.
  23. Fixes: 9fb90ae6cae7 ("ARM: dts: BCM53573: Describe on-SoC BCM53125 rev 4 switch")
  24. Signed-off-by: Rafał Miłecki <[email protected]>
  25. Link: https://lore.kernel.org/r/[email protected]
  26. Signed-off-by: Florian Fainelli <[email protected]>
  27. ---
  28. .../boot/dts/broadcom/bcm47189-luxul-xap-1440.dts | 13 +++++++++++++
  29. .../boot/dts/broadcom/bcm47189-luxul-xap-810.dts | 13 +++++++++++++
  30. 2 files changed, 26 insertions(+)
  31. --- a/arch/arm/boot/dts/bcm47189-luxul-xap-1440.dts
  32. +++ b/arch/arm/boot/dts/bcm47189-luxul-xap-1440.dts
  33. @@ -58,3 +58,16 @@
  34. };
  35. };
  36. };
  37. +
  38. +&gmac0 {
  39. + phy-mode = "rgmii";
  40. + phy-handle = <&bcm54210e>;
  41. +
  42. + mdio {
  43. + /delete-node/ switch@1e;
  44. +
  45. + bcm54210e: ethernet-phy@0 {
  46. + reg = <0>;
  47. + };
  48. + };
  49. +};
  50. --- a/arch/arm/boot/dts/bcm47189-luxul-xap-810.dts
  51. +++ b/arch/arm/boot/dts/bcm47189-luxul-xap-810.dts
  52. @@ -94,3 +94,16 @@
  53. };
  54. };
  55. };
  56. +
  57. +&gmac0 {
  58. + phy-mode = "rgmii";
  59. + phy-handle = <&bcm54210e>;
  60. +
  61. + mdio {
  62. + /delete-node/ switch@1e;
  63. +
  64. + bcm54210e: ethernet-phy@0 {
  65. + reg = <0>;
  66. + };
  67. + };
  68. +};