125-dt-sun7i-olinuxinom-enable-gmac.patch 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. From f5b426a2eb246e91eb2de0cd215565d38d1d5ce7 Mon Sep 17 00:00:00 2001
  2. From: Chen-Yu Tsai <wens@csie.org>
  3. Date: Mon, 10 Feb 2014 18:35:53 +0800
  4. Subject: [PATCH] ARM: dts: sun7i: a20-olinuxino-micro: Enable GMAC instead of
  5. EMAC
  6. GMAC has better performance and fewer hardware issues.
  7. Use the GMAC in MII mode for ethernet instead of the EMAC.
  8. Signed-off-by: Chen-Yu Tsai <wens@csie.org>
  9. ---
  10. arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts | 27 +++++++++++--------------
  11. 1 file changed, 12 insertions(+), 15 deletions(-)
  12. --- a/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
  13. +++ b/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
  14. @@ -19,21 +19,6 @@
  15. compatible = "olimex,a20-olinuxino-micro", "allwinner,sun7i-a20";
  16. soc@01c00000 {
  17. - emac: ethernet@01c0b000 {
  18. - pinctrl-names = "default";
  19. - pinctrl-0 = <&emac_pins_a>;
  20. - phy = <&phy1>;
  21. - status = "okay";
  22. - };
  23. -
  24. - mdio@01c0b080 {
  25. - status = "okay";
  26. -
  27. - phy1: ethernet-phy@1 {
  28. - reg = <1>;
  29. - };
  30. - };
  31. -
  32. pinctrl@01c20800 {
  33. led_pins_olinuxino: led_pins@0 {
  34. allwinner,pins = "PH2";
  35. @@ -78,6 +63,18 @@
  36. pinctrl-0 = <&i2c2_pins_a>;
  37. status = "okay";
  38. };
  39. +
  40. + gmac: ethernet@01c50000 {
  41. + pinctrl-names = "default";
  42. + pinctrl-0 = <&gmac_pins_mii_a>;
  43. + phy = <&phy1>;
  44. + phy-mode = "mii";
  45. + status = "okay";
  46. +
  47. + phy1: ethernet-phy@1 {
  48. + reg = <1>;
  49. + };
  50. + };
  51. };
  52. leds {