0012-ARM-dts-Add-ethernet-PHYs-to-the-a-bunch-of-Geminis.patch 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. From f0674df220f3da81c173025636a904b395cf8f8b Mon Sep 17 00:00:00 2001
  2. From: Linus Walleij <[email protected]>
  3. Date: Sun, 19 Nov 2017 10:46:16 +0100
  4. Subject: [PATCH 12/31] ARM: dts: Add ethernet PHYs to the a bunch of Geminis
  5. These Gemini boards have Ethernet PHY on GPIO bit-banged
  6. MDIO, clearly defined in the corresponding OpenWRT
  7. ethernet patches since ages. Add them in accordance with
  8. the OpenWRT patch so we can use them when we add ethernet
  9. support.
  10. Reviewed-by: Andrew Lunn <[email protected]>
  11. Signed-off-by: Linus Walleij <[email protected]>
  12. ---
  13. arch/arm/boot/dts/gemini-nas4220b.dts | 13 +++++++++++++
  14. arch/arm/boot/dts/gemini-wbd111.dts | 13 +++++++++++++
  15. arch/arm/boot/dts/gemini-wbd222.dts | 18 ++++++++++++++++++
  16. 4 files changed, 57 insertions(+)
  17. --- a/arch/arm/boot/dts/gemini-nas4220b.dts
  18. +++ b/arch/arm/boot/dts/gemini-nas4220b.dts
  19. @@ -64,6 +64,19 @@
  20. };
  21. };
  22. + mdio0: ethernet-phy {
  23. + compatible = "virtual,mdio-gpio";
  24. + gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>, /* MDC */
  25. + <&gpio0 21 GPIO_ACTIVE_HIGH>; /* MDIO */
  26. + #address-cells = <1>;
  27. + #size-cells = <0>;
  28. +
  29. + phy0: ethernet-phy@1 {
  30. + reg = <1>;
  31. + device_type = "ethernet-phy";
  32. + };
  33. + };
  34. +
  35. soc {
  36. flash@30000000 {
  37. status = "okay";
  38. --- a/arch/arm/boot/dts/gemini-wbd111.dts
  39. +++ b/arch/arm/boot/dts/gemini-wbd111.dts
  40. @@ -69,6 +69,19 @@
  41. };
  42. };
  43. + mdio0: ethernet-phy {
  44. + compatible = "virtual,mdio-gpio";
  45. + gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>, /* MDC */
  46. + <&gpio0 21 GPIO_ACTIVE_HIGH>; /* MDIO */
  47. + #address-cells = <1>;
  48. + #size-cells = <0>;
  49. +
  50. + phy0: ethernet-phy@1 {
  51. + reg = <1>;
  52. + device_type = "ethernet-phy";
  53. + };
  54. + };
  55. +
  56. soc {
  57. flash@30000000 {
  58. status = "okay";
  59. --- a/arch/arm/boot/dts/gemini-wbd222.dts
  60. +++ b/arch/arm/boot/dts/gemini-wbd222.dts
  61. @@ -69,6 +69,24 @@
  62. };
  63. };
  64. + mdio0: ethernet-phy {
  65. + compatible = "virtual,mdio-gpio";
  66. + gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>, /* MDC */
  67. + <&gpio0 21 GPIO_ACTIVE_HIGH>; /* MDIO */
  68. + #address-cells = <1>;
  69. + #size-cells = <0>;
  70. +
  71. + phy0: ethernet-phy@1 {
  72. + reg = <1>;
  73. + device_type = "ethernet-phy";
  74. + };
  75. +
  76. + phy1: ethernet-phy@3 {
  77. + reg = <3>;
  78. + device_type = "ethernet-phy";
  79. + };
  80. + };
  81. +
  82. soc {
  83. flash@30000000 {
  84. status = "okay";