Skip to content

Commit 5652d6f

Browse files
authored
arm64: dts: rockchip: add gmac for ROCK 4C+ (#17)
Signed-off-by: FUKAUMI Naoki <[email protected]> Signed-off-by: FUKAUMI Naoki <[email protected]>
1 parent 322a44f commit 5652d6f

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4c-plus.dts

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,26 @@
2424
stdout-path = "serial2:1500000n8";
2525
};
2626

27+
clkin_gmac: external-gmac-clock {
28+
compatible = "fixed-clock";
29+
clock-frequency = <125000000>;
30+
clock-output-names = "clkin_gmac";
31+
#clock-cells = <0>;
32+
};
33+
34+
vcc_lan: vcc3v3-phy-regulator {
35+
compatible = "regulator-fixed";
36+
regulator-name = "vcc_lan";
37+
regulator-always-on;
38+
regulator-boot-on;
39+
regulator-min-microvolt = <3300000>;
40+
regulator-max-microvolt = <3300000>;
41+
42+
regulator-state-mem {
43+
regulator-off-in-suspend;
44+
};
45+
};
46+
2747
vcc5v0_sys: vcc-sys {
2848
compatible = "regulator-fixed";
2949
regulator-name = "vcc5v0_sys";
@@ -101,6 +121,22 @@
101121
cpu-supply = <&vdd_cpu_b>;
102122
};
103123

124+
&gmac {
125+
assigned-clocks = <&cru SCLK_RMII_SRC>;
126+
assigned-clock-parents = <&clkin_gmac>;
127+
clock_in_out = "input";
128+
phy-supply = <&vcc_lan>;
129+
phy-mode = "rgmii";
130+
pinctrl-names = "default";
131+
pinctrl-0 = <&rgmii_pins>;
132+
snps,reset-gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>;
133+
snps,reset-active-low;
134+
snps,reset-delays-us = <0 10000 50000>;
135+
tx_delay = <0x28>;
136+
rx_delay = <0x11>;
137+
status = "okay";
138+
};
139+
104140
&i2c0 {
105141
status = "okay";
106142
i2c-scl-falling-time-ns = <30>;

0 commit comments

Comments
 (0)