032-v6.6-0014-ARM-dts-BCM53573-Add-Ethernet-interfaces-links.patch 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. From e0ae343a2c1b782a346d9b844ea65e1d49c428b2 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <[email protected]>
  3. Date: Mon, 24 Jul 2023 12:12:27 +0200
  4. Subject: [PATCH] ARM: dts: BCM53573: Add Ethernet interfaces links
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. BCM53573 has 2 Ethernet interfaces each connected to one of switch ports
  9. in the default design. They both use fixed links.
  10. An exception are Luxul XAP devices that have switch replaced by a single
  11. PHY.
  12. Signed-off-by: Rafał Miłecki <[email protected]>
  13. Link: https://lore.kernel.org/r/[email protected]
  14. Signed-off-by: Florian Fainelli <[email protected]>
  15. ---
  16. .../boot/dts/broadcom/bcm47189-luxul-xap-1440.dts | 2 ++
  17. .../arm/boot/dts/broadcom/bcm47189-luxul-xap-810.dts | 2 ++
  18. arch/arm/boot/dts/broadcom/bcm53573.dtsi | 12 ++++++++++++
  19. 3 files changed, 16 insertions(+)
  20. --- a/arch/arm/boot/dts/bcm47189-luxul-xap-1440.dts
  21. +++ b/arch/arm/boot/dts/bcm47189-luxul-xap-1440.dts
  22. @@ -50,6 +50,8 @@
  23. phy-mode = "rgmii";
  24. phy-handle = <&bcm54210e>;
  25. + /delete-node/ fixed-link;
  26. +
  27. mdio {
  28. /delete-node/ switch@1e;
  29. --- a/arch/arm/boot/dts/bcm47189-luxul-xap-810.dts
  30. +++ b/arch/arm/boot/dts/bcm47189-luxul-xap-810.dts
  31. @@ -86,6 +86,8 @@
  32. phy-mode = "rgmii";
  33. phy-handle = <&bcm54210e>;
  34. + /delete-node/ fixed-link;
  35. +
  36. mdio {
  37. /delete-node/ switch@1e;
  38. --- a/arch/arm/boot/dts/bcm53573.dtsi
  39. +++ b/arch/arm/boot/dts/bcm53573.dtsi
  40. @@ -181,6 +181,12 @@
  41. gmac0: ethernet@5000 {
  42. reg = <0x5000 0x1000>;
  43. + phy-mode = "internal";
  44. +
  45. + fixed-link {
  46. + speed = <1000>;
  47. + full-duplex;
  48. + };
  49. mdio {
  50. #address-cells = <1>;
  51. @@ -237,6 +243,12 @@
  52. gmac1: ethernet@b000 {
  53. reg = <0xb000 0x1000>;
  54. + phy-mode = "internal";
  55. +
  56. + fixed-link {
  57. + speed = <1000>;
  58. + full-duplex;
  59. + };
  60. };
  61. pmu@12000 {