Skip to content

Commit 3e00738

Browse files
SuperDavidWurkhuangtao
authored andcommitted
arm64: dts: rockchip: add gmac support for rk3328-evb
Change-Id: I05e4eb2d904809a310b12f0de8ae274b90dd583a Signed-off-by: david.wu <david.wu@rock-chips.com>
1 parent f3c53dd commit 3e00738

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

arch/arm64/boot/dts/rockchip/rk3328-evb.dts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,20 @@
6161
rockchip,baudrate = <1500000>; /* Only 115200 and 1500000 */
6262
status = "okay";
6363
};
64+
65+
gmac_clkin: external-gmac-clock {
66+
compatible = "fixed-clock";
67+
clock-frequency = <125000000>;
68+
clock-output-names = "gmac_clkin";
69+
#clock-cells = <0>;
70+
};
71+
72+
vcc_phy: vcc-phy-regulator {
73+
compatible = "regulator-fixed";
74+
regulator-name = "vcc_phy";
75+
regulator-always-on;
76+
regulator-boot-on;
77+
};
6478
};
6579

6680
&emmc {
@@ -75,6 +89,22 @@
7589
status = "okay";
7690
};
7791

92+
&gmac2io {
93+
phy-supply = <&vcc_phy>;
94+
phy-mode = "rgmii";
95+
clock_in_out = "input";
96+
snps,reset-gpio = <&gpio1 18 GPIO_ACTIVE_LOW>;
97+
snps,reset-active-low;
98+
snps,reset-delays-us = <0 10000 50000>;
99+
assigned-clocks = <&cru SCLK_MAC2IO>, <&cru SCLK_MAC2IO_EXT>;
100+
assigned-clock-parents = <&gmac_clkin>, <&gmac_clkin>;
101+
pinctrl-names = "default";
102+
pinctrl-0 = <&rgmiim1_pins>;
103+
tx_delay = <0x26>;
104+
rx_delay = <0x11>;
105+
status = "okay";
106+
};
107+
78108
&io_domains {
79109
status = "okay";
80110

0 commit comments

Comments
 (0)