124-dt-sun7i-cubieboard2-enable-gmac.patch 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. From 856cae07bff4d7e7a111affd4f15803142d29880 Mon Sep 17 00:00:00 2001
  2. From: Chen-Yu Tsai <wens@csie.org>
  3. Date: Mon, 10 Feb 2014 18:35:52 +0800
  4. Subject: [PATCH] ARM: dts: sun7i: cubieboard2: 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 <wens@csie.org>
  8. ---
  9. arch/arm/boot/dts/sun7i-a20-cubieboard2.dts | 27 ++++++++++++---------------
  10. 1 file changed, 12 insertions(+), 15 deletions(-)
  11. --- a/arch/arm/boot/dts/sun7i-a20-cubieboard2.dts
  12. +++ b/arch/arm/boot/dts/sun7i-a20-cubieboard2.dts
  13. @@ -19,21 +19,6 @@
  14. compatible = "cubietech,cubieboard2", "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. pinctrl@01c20800 {
  32. led_pins_cubieboard2: led_pins@0 {
  33. allwinner,pins = "PH20", "PH21";
  34. @@ -60,6 +45,18 @@
  35. pinctrl-0 = <&i2c1_pins_a>;
  36. status = "okay";
  37. };
  38. +
  39. + gmac: ethernet@01c50000 {
  40. + pinctrl-names = "default";
  41. + pinctrl-0 = <&gmac_pins_mii_a>;
  42. + phy = <&phy1>;
  43. + phy-mode = "mii";
  44. + status = "okay";
  45. +
  46. + phy1: ethernet-phy@1 {
  47. + reg = <1>;
  48. + };
  49. + };
  50. };
  51. leds {