e781d0f8fce0fe8b6b52b51bd29ff1b8b02c2ee3
[openwrt.git] / target / linux / sunxi / patches-3.13 / 196-1-dt-sun7i-enable-gmac-cubietruck.patch
1 From a94741174cdc6bd29c56c5aa1a225ac6e7f4ebde Mon Sep 17 00:00:00 2001
2 From: Chen-Yu Tsai <wens@csie.org>
3 Date: Sat, 7 Dec 2013 01:29:40 +0800
4 Subject: [PATCH] ARM: dts: sun7i: cubietruck: Enable the GMAC
5
6 The CubieTruck uses the GMAC with an RGMII phy.
7
8 Signed-off-by: Chen-Yu Tsai <wens@csie.org>
9 ---
10  arch/arm/boot/dts/sun7i-a20-cubietruck.dts | 8 ++++++++
11  1 file changed, 8 insertions(+)
12
13 --- a/arch/arm/boot/dts/sun7i-a20-cubietruck.dts
14 +++ b/arch/arm/boot/dts/sun7i-a20-cubietruck.dts
15 @@ -121,6 +121,14 @@
16                         pinctrl-0 = <&uart0_pins_a>;
17                         status = "okay";
18                 };
19 +
20 +               gmac: ethernet@01c50000 {
21 +                       pinctrl-names = "default";
22 +                       pinctrl-0 = <&gmac_pins_rgmii>;
23 +                       snps,phy-addr = <1>;
24 +                       phy-mode = "rgmii";
25 +                       status = "okay";
26 +               };
27         };
28  
29         leds {