sunxi: backport late clock fixes from 3.15
[openwrt/openwrt.git] / target / linux / sunxi / patches-3.14 / 125-dt-sun7i-olinuxinom-enable-gmac.patch
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
7 GMAC has better performance and fewer hardware issues.
8 Use the GMAC in MII mode for ethernet instead of the EMAC.
9
10 Signed-off-by: Chen-Yu Tsai <wens@csie.org>
11 ---
12 arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts | 27 +++++++++++--------------
13 1 file changed, 12 insertions(+), 15 deletions(-)
14
15 --- a/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
16 +++ b/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
17 @@ -19,21 +19,6 @@
18 compatible = "olimex,a20-olinuxino-micro", "allwinner,sun7i-a20";
19
20 soc@01c00000 {
21 - emac: ethernet@01c0b000 {
22 - pinctrl-names = "default";
23 - pinctrl-0 = <&emac_pins_a>;
24 - phy = <&phy1>;
25 - status = "okay";
26 - };
27 -
28 - mdio@01c0b080 {
29 - status = "okay";
30 -
31 - phy1: ethernet-phy@1 {
32 - reg = <1>;
33 - };
34 - };
35 -
36 pinctrl@01c20800 {
37 led_pins_olinuxino: led_pins@0 {
38 allwinner,pins = "PH2";
39 @@ -78,6 +63,18 @@
40 pinctrl-0 = <&i2c2_pins_a>;
41 status = "okay";
42 };
43 +
44 + gmac: ethernet@01c50000 {
45 + pinctrl-names = "default";
46 + pinctrl-0 = <&gmac_pins_mii_a>;
47 + phy = <&phy1>;
48 + phy-mode = "mii";
49 + status = "okay";
50 +
51 + phy1: ethernet-phy@1 {
52 + reg = <1>;
53 + };
54 + };
55 };
56
57 leds {