sunxi: initial 3.13 support
[openwrt.git] / target / linux / sunxi / patches-3.13 / 194-dt-sun7i-add-gmac-ctrler.patch
1 From a07eeb627d300da0dee8cb39b59173332be8e4bb Mon Sep 17 00:00:00 2001
2 From: Chen-Yu Tsai <wens@csie.org>
3 Date: Sat, 7 Dec 2013 01:29:38 +0800
4 Subject: [PATCH] ARM: dts: sun7i: Add GMAC controller node to sun7i DTSI
5
6 Signed-off-by: Chen-Yu Tsai <wens@csie.org>
7 ---
8  arch/arm/boot/dts/sun7i-a20.dtsi | 14 ++++++++++++++
9  1 file changed, 14 insertions(+)
10
11 diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi b/arch/arm/boot/dts/sun7i-a20.dtsi
12 index 0c1d363..82be552 100644
13 --- a/arch/arm/boot/dts/sun7i-a20.dtsi
14 +++ b/arch/arm/boot/dts/sun7i-a20.dtsi
15 @@ -571,6 +571,20 @@
16                         status = "disabled";
17                 };
18  
19 +               gmac: ethernet@01c50000 {
20 +                       compatible = "allwinner,sun7i-gmac", "snps,dwmac";
21 +                       reg = <0x01c50000 0x10000>,
22 +                             <0x01c20164 0x4>;
23 +                       interrupts = <0 85 1>;
24 +                       interrupt-names = "macirq";
25 +                       clocks = <&ahb_gates 49>;
26 +                       clock-names = "stmmaceth";
27 +                       snps,pbl = <2>;
28 +                       snps,fixed-burst;
29 +                       snps,force_sf_dma_mode;
30 +                       status = "disabled";
31 +               };
32 +
33                 hstimer@01c60000 {
34                         compatible = "allwinner,sun7i-a20-hstimer";
35                         reg = <0x01c60000 0x1000>;
36 -- 
37 1.8.5.1
38