kernel: refresh patches
[openwrt/svn-archive/archive.git] / target / linux / sunxi / patches-3.14 / 123-dt-sun7i-cubietruck-enable-gmac.patch
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
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 | 12 ++++++++++++
11 1 file changed, 12 insertions(+)
12
13 --- a/arch/arm/boot/dts/sun7i-a20-cubietruck.dts
14 +++ b/arch/arm/boot/dts/sun7i-a20-cubietruck.dts
15 @@ -65,6 +65,18 @@
16 pinctrl-0 = <&i2c2_pins_a>;
17 status = "okay";
18 };
19 +
20 + gmac: ethernet@01c50000 {
21 + pinctrl-names = "default";
22 + pinctrl-0 = <&gmac_pins_rgmii_a>;
23 + phy = <&phy1>;
24 + phy-mode = "rgmii";
25 + status = "okay";
26 +
27 + phy1: ethernet-phy@1 {
28 + reg = <1>;
29 + };
30 + };
31 };
32
33 leds {