Skip to content

Commit 10b9ef4

Browse files
Kwiboommind
authored andcommitted
arm64: dts: rockchip: Enable Ethernet controller on Radxa E20C
The Radxa E20C has two GbE ports, LAN and WAN. The LAN port is provided using a GMAC controller and a YT8531C PHY and the WAN port is provided by an RTL8111H PCIe Ethernet controller. Enable support for the LAN port on Radxa E20C. Signed-off-by: Jonas Karlman <[email protected]> Tested-by: Yao Zi <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Heiko Stuebner <[email protected]>
1 parent 5eb28f4 commit 10b9ef4

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

arch/arm64/boot/dts/rockchip/rk3528-radxa-e20c.dts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
compatible = "radxa,e20c", "rockchip,rk3528";
1818

1919
aliases {
20+
ethernet0 = &gmac1;
2021
mmc0 = &sdhci;
2122
mmc1 = &sdmmc;
2223
};
@@ -184,6 +185,17 @@
184185
cpu-supply = <&vdd_arm>;
185186
};
186187

188+
&gmac1 {
189+
clock_in_out = "output";
190+
phy-handle = <&rgmii_phy>;
191+
phy-mode = "rgmii-id";
192+
phy-supply = <&vcc_3v3>;
193+
pinctrl-names = "default";
194+
pinctrl-0 = <&rgmii_miim>, <&rgmii_tx_bus2>, <&rgmii_rx_bus2>,
195+
<&rgmii_rgmii_clk>, <&rgmii_rgmii_bus>;
196+
status = "okay";
197+
};
198+
187199
&i2c1 {
188200
pinctrl-names = "default";
189201
pinctrl-0 = <&i2c1m0_xfer>;
@@ -198,7 +210,25 @@
198210
};
199211
};
200212

213+
&mdio1 {
214+
rgmii_phy: ethernet-phy@1 {
215+
compatible = "ethernet-phy-ieee802.3-c22";
216+
reg = <0x1>;
217+
pinctrl-names = "default";
218+
pinctrl-0 = <&gmac1_rstn_l>;
219+
reset-assert-us = <20000>;
220+
reset-deassert-us = <100000>;
221+
reset-gpios = <&gpio4 RK_PC2 GPIO_ACTIVE_LOW>;
222+
};
223+
};
224+
201225
&pinctrl {
226+
ethernet {
227+
gmac1_rstn_l: gmac1-rstn-l {
228+
rockchip,pins = <4 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>;
229+
};
230+
};
231+
202232
gpio-keys {
203233
user_key: user-key {
204234
rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up>;

0 commit comments

Comments
 (0)