UPSTREAM: ARM: dts: rockchip: add GMAC nodes for RK322x SoCs
authorXing Zheng <zhengxing@rock-chips.com>
Wed, 22 Jun 2016 03:16:52 +0000 (11:16 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Wed, 29 Jun 2016 07:05:07 +0000 (15:05 +0800)
This patch add the GMAC dt nodes for rk322x SoCs.

Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
(cherry picked from git://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip.git
v4.8-armsoc/dts32 commit 5d3d7c72b920f9aa44f9b64cdd8a1c5bf5cbea07)

Change-Id: I85467b7253fda16c242d91bcdd207d0175ee0db3
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
arch/arm/boot/dts/rk322x.dtsi

index b96f76c8d3956f001486efce849e3b079ca6bcbf..3a97c25a9ca721911536f5d6aa6164d583daabaa 100644 (file)
                status = "disabled";
        };
 
+       gmac: ethernet@30200000 {
+               compatible = "rockchip,rk3228-gmac";
+               reg = <0x30200000 0x10000>;
+               interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
+               interrupt-names = "macirq";
+               clocks = <&cru SCLK_MAC>, <&cru SCLK_MAC_RX>,
+                       <&cru SCLK_MAC_TX>, <&cru SCLK_MAC_REF>,
+                       <&cru SCLK_MAC_REFOUT>, <&cru ACLK_GMAC>,
+                       <&cru PCLK_GMAC>;
+               clock-names = "stmmaceth", "mac_clk_rx",
+                       "mac_clk_tx", "clk_mac_ref",
+                       "clk_mac_refout", "aclk_mac",
+                       "pclk_mac";
+               resets = <&cru SRST_GMAC>;
+               reset-names = "stmmaceth";
+               rockchip,grf = <&grf>;
+               status = "disabled";
+       };
+
        gic: interrupt-controller@32010000 {
                compatible = "arm,gic-400";
                interrupt-controller;
                        bias-disable;
                };
 
+               pcfg_pull_none_drv_12ma: pcfg-pull-none-drv-12ma {
+                       drive-strength = <12>;
+               };
+
                emmc {
                        emmc_clk: emmc-clk {
                                rockchip,pins = <2 7 RK_FUNC_2 &pcfg_pull_none>;
                        };
                };
 
+               gmac {
+                       rgmii_pins: rgmii-pins {
+                               rockchip,pins = <2 14 RK_FUNC_1 &pcfg_pull_none>,
+                                               <2 12 RK_FUNC_1 &pcfg_pull_none>,
+                                               <2 25 RK_FUNC_1 &pcfg_pull_none>,
+                                               <2 19 RK_FUNC_1 &pcfg_pull_none_drv_12ma>,
+                                               <2 18 RK_FUNC_1 &pcfg_pull_none_drv_12ma>,
+                                               <2 22 RK_FUNC_1 &pcfg_pull_none_drv_12ma>,
+                                               <2 23 RK_FUNC_1 &pcfg_pull_none_drv_12ma>,
+                                               <2 9 RK_FUNC_1 &pcfg_pull_none_drv_12ma>,
+                                               <2 13 RK_FUNC_1 &pcfg_pull_none_drv_12ma>,
+                                               <2 17 RK_FUNC_1 &pcfg_pull_none>,
+                                               <2 16 RK_FUNC_1 &pcfg_pull_none>,
+                                               <2 21 RK_FUNC_2 &pcfg_pull_none>,
+                                               <2 20 RK_FUNC_2 &pcfg_pull_none>,
+                                               <2 11 RK_FUNC_1 &pcfg_pull_none>,
+                                               <2 8 RK_FUNC_1 &pcfg_pull_none>;
+                       };
+
+                       rmii_pins: rmii-pins {
+                               rockchip,pins = <2 14 RK_FUNC_1 &pcfg_pull_none>,
+                                               <2 12 RK_FUNC_1 &pcfg_pull_none>,
+                                               <2 25 RK_FUNC_1 &pcfg_pull_none>,
+                                               <2 19 RK_FUNC_1 &pcfg_pull_none_drv_12ma>,
+                                               <2 18 RK_FUNC_1 &pcfg_pull_none_drv_12ma>,
+                                               <2 13 RK_FUNC_1 &pcfg_pull_none_drv_12ma>,
+                                               <2 17 RK_FUNC_1 &pcfg_pull_none>,
+                                               <2 16 RK_FUNC_1 &pcfg_pull_none>,
+                                               <2 8 RK_FUNC_1 &pcfg_pull_none>,
+                                               <2 15 RK_FUNC_1 &pcfg_pull_none>;
+                       };
+
+                       phy_pins: phy-pins {
+                               rockchip,pins = <2 14 RK_FUNC_2 &pcfg_pull_none>,
+                                               <2 8 RK_FUNC_2 &pcfg_pull_none>;
+                       };
+               };
+
                i2c0 {
                        i2c0_xfer: i2c0-xfer {
                                rockchip,pins = <0 0 RK_FUNC_1 &pcfg_pull_none>,