0005-02-v5.8-02-ARM-dts-qcom-ipq4019-add-MDIO-node.patch 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. From 9c8c0f70ec6fdac2398632c723c48277be09b7c0 Mon Sep 17 00:00:00 2001
  2. From: Robert Marko <[email protected]>
  3. Date: Thu, 30 Apr 2020 11:07:07 +0200
  4. Subject: [PATCH] ARM: dts: qcom: ipq4019: add MDIO node
  5. This patch adds the necessary MDIO interface node
  6. to the Qualcomm IPQ4019 DTSI.
  7. Built-in QCA8337N switch is managed using it,
  8. and since we have a driver for it lets add it.
  9. Signed-off-by: Christian Lamparter <[email protected]>
  10. Signed-off-by: Robert Marko <[email protected]>
  11. Reviewed-by: Andrew Lunn <[email protected]>
  12. Reviewed-by: Florian Fainelli <[email protected]>
  13. Cc: Luka Perkov <[email protected]>
  14. Signed-off-by: David S. Miller <[email protected]>
  15. ---
  16. arch/arm/boot/dts/qcom-ipq4019.dtsi | 28 ++++++++++++++++++++++++++++
  17. 1 file changed, 28 insertions(+)
  18. --- a/arch/arm/boot/dts/qcom-ipq4019.dtsi
  19. +++ b/arch/arm/boot/dts/qcom-ipq4019.dtsi
  20. @@ -577,5 +577,33 @@
  21. "legacy";
  22. status = "disabled";
  23. };
  24. +
  25. + mdio: mdio@90000 {
  26. + #address-cells = <1>;
  27. + #size-cells = <0>;
  28. + compatible = "qcom,ipq4019-mdio";
  29. + reg = <0x90000 0x64>;
  30. + status = "disabled";
  31. +
  32. + ethphy0: ethernet-phy@0 {
  33. + reg = <0>;
  34. + };
  35. +
  36. + ethphy1: ethernet-phy@1 {
  37. + reg = <1>;
  38. + };
  39. +
  40. + ethphy2: ethernet-phy@2 {
  41. + reg = <2>;
  42. + };
  43. +
  44. + ethphy3: ethernet-phy@3 {
  45. + reg = <3>;
  46. + };
  47. +
  48. + ethphy4: ethernet-phy@4 {
  49. + reg = <4>;
  50. + };
  51. + };
  52. };
  53. };