123-dt-sun7i-cubietruck-enable-gmac.patch 815 B

123456789101112131415161718192021222324252627282930313233
  1. From d09483e1cfcc00be70450c469c3c23496a063d98 Mon Sep 17 00:00:00 2001
  2. From: Chen-Yu Tsai <wens@csie.org>
  3. Date: Mon, 10 Feb 2014 18:35:51 +0800
  4. Subject: [PATCH] ARM: dts: sun7i: cubietruck: Enable the GMAC
  5. The CubieTruck uses the GMAC with an RGMII phy.
  6. Signed-off-by: Chen-Yu Tsai <wens@csie.org>
  7. ---
  8. arch/arm/boot/dts/sun7i-a20-cubietruck.dts | 12 ++++++++++++
  9. 1 file changed, 12 insertions(+)
  10. --- a/arch/arm/boot/dts/sun7i-a20-cubietruck.dts
  11. +++ b/arch/arm/boot/dts/sun7i-a20-cubietruck.dts
  12. @@ -65,6 +65,18 @@
  13. pinctrl-0 = <&i2c2_pins_a>;
  14. status = "okay";
  15. };
  16. +
  17. + gmac: ethernet@01c50000 {
  18. + pinctrl-names = "default";
  19. + pinctrl-0 = <&gmac_pins_rgmii_a>;
  20. + phy = <&phy1>;
  21. + phy-mode = "rgmii";
  22. + status = "okay";
  23. +
  24. + phy1: ethernet-phy@1 {
  25. + reg = <1>;
  26. + };
  27. + };
  28. };
  29. leds {