707-arm-dts-ipq4019-add-switch-node.patch 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. From 19c507c3fe4a6fc60317dcae2c55de452aecb7d5 Mon Sep 17 00:00:00 2001
  2. From: Robert Marko <[email protected]>
  3. Date: Mon, 1 Nov 2021 18:15:04 +0100
  4. Subject: [PATCH] arm: dts: ipq4019: add switch node
  5. Since the built-in IPQ40xx switch now has a driver, add the required node
  6. for it to work.
  7. Signed-off-by: Robert Marko <[email protected]>
  8. ---
  9. arch/arm/boot/dts/qcom/qcom-ipq4019.dtsi | 76 +++++++++++++++++++++++++++++
  10. 1 file changed, 76 insertions(+)
  11. --- a/arch/arm/boot/dts/qcom/qcom-ipq4019.dtsi
  12. +++ b/arch/arm/boot/dts/qcom/qcom-ipq4019.dtsi
  13. @@ -596,6 +596,82 @@
  14. status = "disabled";
  15. };
  16. + switch: switch@c000000 {
  17. + compatible = "qca,ipq4019-qca8337n";
  18. + reg = <0xc000000 0x80000>, <0x98000 0x800>;
  19. + reg-names = "base", "psgmii_phy";
  20. + resets = <&gcc ESS_PSGMII_ARES>;
  21. + reset-names = "psgmii_rst";
  22. + mdio = <&mdio>;
  23. + psgmii-ethphy = <&psgmiiphy>;
  24. +
  25. + status = "disabled";
  26. +
  27. + ports {
  28. + #address-cells = <1>;
  29. + #size-cells = <0>;
  30. +
  31. + port@0 { /* MAC0 */
  32. + reg = <0>;
  33. + label = "cpu";
  34. + ethernet = <&gmac>;
  35. + phy-mode = "internal";
  36. +
  37. + fixed-link {
  38. + speed = <1000>;
  39. + full-duplex;
  40. + pause;
  41. + asym-pause;
  42. + };
  43. + };
  44. +
  45. + swport1: port@1 { /* MAC1 */
  46. + reg = <1>;
  47. + label = "lan1";
  48. + phy-handle = <&ethphy0>;
  49. + phy-mode = "psgmii";
  50. +
  51. + status = "disabled";
  52. + };
  53. +
  54. + swport2: port@2 { /* MAC2 */
  55. + reg = <2>;
  56. + label = "lan2";
  57. + phy-handle = <&ethphy1>;
  58. + phy-mode = "psgmii";
  59. +
  60. + status = "disabled";
  61. + };
  62. +
  63. + swport3: port@3 { /* MAC3 */
  64. + reg = <3>;
  65. + label = "lan3";
  66. + phy-handle = <&ethphy2>;
  67. + phy-mode = "psgmii";
  68. +
  69. + status = "disabled";
  70. + };
  71. +
  72. + swport4: port@4 { /* MAC4 */
  73. + reg = <4>;
  74. + label = "lan4";
  75. + phy-handle = <&ethphy3>;
  76. + phy-mode = "psgmii";
  77. +
  78. + status = "disabled";
  79. + };
  80. +
  81. + swport5: port@5 { /* MAC5 */
  82. + reg = <5>;
  83. + label = "wan";
  84. + phy-handle = <&ethphy4>;
  85. + phy-mode = "psgmii";
  86. +
  87. + status = "disabled";
  88. + };
  89. + };
  90. + };
  91. +
  92. gmac: ethernet@c080000 {
  93. compatible = "qcom,ipq4019-ess-edma";
  94. reg = <0xc080000 0x8000>;