aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorRoger Chen <roger.chen@rock-chips.com>2014-12-29 04:44:25 -0500
committerDavid S. Miller <davem@davemloft.net>2014-12-31 19:14:18 -0500
commite35e47ac521b69bc9c5c0654463278161ec92d72 (patch)
treeb734dcf35a981712acc0c570ac61a42b7bafe58c /arch
parent3d3fb74afc9b511013966ec0b1f8fd60d55b886b (diff)
ARM: dts: rockchip: enable gmac on RK3288 evb board
enable gmac in rk3288-evb-rk808.dts changes since v2: 1. add fixed regulator for PHY 2. remove power-gpio, reset-gpio, phyirq-gpio, pmu_regulator setting 3. add "snps,reset-gpio", "snps,reset-active-low;" "snps,reset-delays-us" Signed-off-by: Roger Chen <roger.chen@rock-chips.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/boot/dts/rk3288-evb-rk808.dts23
-rw-r--r--arch/arm/boot/dts/rk3288-evb.dtsi17
2 files changed, 40 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/rk3288-evb-rk808.dts b/arch/arm/boot/dts/rk3288-evb-rk808.dts
index d8c775e6d5fe..831a7aa85136 100644
--- a/arch/arm/boot/dts/rk3288-evb-rk808.dts
+++ b/arch/arm/boot/dts/rk3288-evb-rk808.dts
@@ -15,6 +15,13 @@
15 15
16/ { 16/ {
17 compatible = "rockchip,rk3288-evb-rk808", "rockchip,rk3288"; 17 compatible = "rockchip,rk3288-evb-rk808", "rockchip,rk3288";
18
19 ext_gmac: external-gmac-clock {
20 compatible = "fixed-clock";
21 clock-frequency = <125000000>;
22 clock-output-names = "ext_gmac";
23 #clock-cells = <0>;
24 };
18}; 25};
19 26
20&cpu0 { 27&cpu0 {
@@ -152,3 +159,19 @@
152 }; 159 };
153 }; 160 };
154}; 161};
162
163&gmac {
164 phy_regulator = "vcc_phy";
165 phy-mode = "rgmii";
166 clock_in_out = "input";
167 snps,reset-gpio = <&gpio4 7 0>;
168 snps,reset-active-low;
169 snps,reset-delays-us = <0 10000 1000000>;
170 assigned-clocks = <&cru SCLK_MAC>;
171 assigned-clock-parents = <&ext_gmac>;
172 pinctrl-names = "default";
173 pinctrl-0 = <&rgmii_pins>;
174 tx_delay = <0x30>;
175 rx_delay = <0x10>;
176 status = "ok";
177};
diff --git a/arch/arm/boot/dts/rk3288-evb.dtsi b/arch/arm/boot/dts/rk3288-evb.dtsi
index 3e067dd65d0c..048cb170c884 100644
--- a/arch/arm/boot/dts/rk3288-evb.dtsi
+++ b/arch/arm/boot/dts/rk3288-evb.dtsi
@@ -90,6 +90,17 @@
90 regulator-always-on; 90 regulator-always-on;
91 regulator-boot-on; 91 regulator-boot-on;
92 }; 92 };
93
94 vcc_phy: vcc-phy-regulator {
95 compatible = "regulator-fixed";
96 enable-active-high;
97 gpio = <&gpio0 6 GPIO_ACTIVE_HIGH>;
98 pinctrl-names = "default";
99 pinctrl-0 = <&eth_phy_pwr>;
100 regulator-name = "vcc_phy";
101 regulator-always-on;
102 regulator-boot-on;
103 };
93}; 104};
94 105
95&emmc { 106&emmc {
@@ -178,6 +189,12 @@
178 rockchip,pins = <0 14 RK_FUNC_GPIO &pcfg_pull_none>; 189 rockchip,pins = <0 14 RK_FUNC_GPIO &pcfg_pull_none>;
179 }; 190 };
180 }; 191 };
192
193 eth_phy {
194 eth_phy_pwr: eth-phy-pwr {
195 rockchip,pins = <0 6 RK_FUNC_GPIO &pcfg_pull_none>;
196 };
197 };
181}; 198};
182 199
183&usb_host0_ehci { 200&usb_host0_ehci {