packages: enable AP mode on r8188eu
[openwrt/staging/yousong.git] / target / linux / sunxi / patches-3.13 / 152-3-dt-sun7i-enable-gmac-a20-micro.patch
1 From e401b86036245d2d62d825f0e3e12286c111b281 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 diff --git a/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts b/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
16 index ead3013..b02a796 100644
17 --- a/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
18 +++ b/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
19 @@ -19,21 +19,6 @@
20 compatible = "olimex,a20-olinuxino-micro", "allwinner,sun7i-a20";
21
22 soc@01c00000 {
23 - emac: ethernet@01c0b000 {
24 - pinctrl-names = "default";
25 - pinctrl-0 = <&emac_pins_a>;
26 - phy = <&phy1>;
27 - status = "okay";
28 - };
29 -
30 - mdio@01c0b080 {
31 - status = "okay";
32 -
33 - phy1: ethernet-phy@1 {
34 - reg = <1>;
35 - };
36 - };
37 -
38 pinctrl@01c20800 {
39 led_pins_olinuxino: led_pins@0 {
40 allwinner,pins = "PH2";
41 @@ -78,6 +63,18 @@
42 pinctrl-0 = <&i2c2_pins_a>;
43 status = "okay";
44 };
45 +
46 + gmac: ethernet@01c50000 {
47 + pinctrl-names = "default";
48 + pinctrl-0 = <&gmac_pins_mii_a>;
49 + phy = <&phy1>;
50 + phy-mode = "mii";
51 + status = "okay";
52 +
53 + phy1: ethernet-phy@1 {
54 + reg = <1>;
55 + };
56 + };
57 };
58
59 leds {
60 --
61 1.8.5.5
62