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