196-3-dt-sun7i-enable-gmac-a20-micro.patch 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. From e39d51b2236ab17628fe5d110296cd33a9c4427e Mon Sep 17 00:00:00 2001
  2. From: Chen-Yu Tsai <[email protected]>
  3. Date: Sat, 7 Dec 2013 01:29:42 +0800
  4. Subject: [PATCH] ARM: dts: sun7i: olinuxino-micro: Enable GMAC instead of EMAC
  5. GMAC has better performance and fewer hardware issues.
  6. Use the GMAC in MII mode for ethernet instead of the EMAC.
  7. Signed-off-by: Chen-Yu Tsai <[email protected]>
  8. ---
  9. arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts | 23 ++++++++---------------
  10. 1 file changed, 8 insertions(+), 15 deletions(-)
  11. --- a/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
  12. +++ b/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
  13. @@ -19,21 +19,6 @@
  14. compatible = "olimex,a20-olinuxino-micro", "allwinner,sun7i-a20";
  15. soc@01c00000 {
  16. - emac: ethernet@01c0b000 {
  17. - pinctrl-names = "default";
  18. - pinctrl-0 = <&emac_pins_a>;
  19. - phy = <&phy1>;
  20. - status = "okay";
  21. - };
  22. -
  23. - mdio@01c0b080 {
  24. - status = "okay";
  25. -
  26. - phy1: ethernet-phy@1 {
  27. - reg = <1>;
  28. - };
  29. - };
  30. -
  31. mmc0: mmc@01c0f000 {
  32. pinctrl-names = "default";
  33. pinctrl-0 = <&mmc0_pins_a>;
  34. @@ -146,6 +131,14 @@
  35. vbus-supply = <&reg_usb2_vbus>;
  36. status = "okay";
  37. };
  38. +
  39. + gmac: ethernet@01c50000 {
  40. + pinctrl-names = "default";
  41. + pinctrl-0 = <&gmac_pins_mii>;
  42. + snps,phy-addr = <1>;
  43. + phy-mode = "mii";
  44. + status = "okay";
  45. + };
  46. };
  47. leds {