summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authoryanhong.wang <yanhong.wang@starfivetech.com>2022-05-17 10:15:59 +0300
committerYanhong Wang <yanhong.wang@linux.starfivetech.com>2022-10-18 11:24:36 +0300
commit6bf1de16aa64caef1f8fab2876fa83a6f12f0917 (patch)
tree0c9aa63251912a6d5fe2c545975ed765f402e010 /arch
parent3b92ff69270562b86fba4e3e7f78f05ddc279ced (diff)
downloadu-boot-6bf1de16aa64caef1f8fab2876fa83a6f12f0917.tar.xz
riscv:dts:starfive-jh7110: add ethernet-phy delay_chain config
Add ethernet-phy delay_chain configuration for gmac1 on starfive EVB board. Signed-off-by: yanhong.wang <yanhong.wang@starfivetech.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/riscv/dts/jh7110.dtsi6
-rw-r--r--arch/riscv/dts/starfive_evb.dts15
2 files changed, 17 insertions, 4 deletions
diff --git a/arch/riscv/dts/jh7110.dtsi b/arch/riscv/dts/jh7110.dtsi
index 1b570148ef..c2c543cb71 100644
--- a/arch/riscv/dts/jh7110.dtsi
+++ b/arch/riscv/dts/jh7110.dtsi
@@ -826,12 +826,14 @@
"tx",
"ptp_ref",
"stmmaceth",
- "pclk";
+ "pclk",
+ "gtxc";
clocks = <&clkgen JH7110_GMAC1_GTXCLK>,
<&clkgen JH7110_GMAC5_CLK_TX>,
<&clkgen JH7110_GMAC5_CLK_PTP>,
<&clkgen JH7110_GMAC5_CLK_AHB>,
- <&clkgen JH7110_GMAC5_CLK_AXI>;
+ <&clkgen JH7110_GMAC5_CLK_AXI>,
+ <&clkgen JH7110_GMAC1_GTXC>;
resets = <&rstgen RSTN_U1_DW_GMAC5_AXI64_H_N>,
<&rstgen RSTN_U1_DW_GMAC5_AXI64_A_I>;
reset-names = "ahb", "stmmaceth";
diff --git a/arch/riscv/dts/starfive_evb.dts b/arch/riscv/dts/starfive_evb.dts
index 0a7c297fad..85969a1059 100644
--- a/arch/riscv/dts/starfive_evb.dts
+++ b/arch/riscv/dts/starfive_evb.dts
@@ -15,7 +15,8 @@
aliases {
spi0="/soc/spi@13010000";
gpio0="/soc/gpio@13040000";
- ethernet0="/soc/ethernet@16030000";
+ ethernet0=&gmac0;
+ ethernet1=&gmac1;
mmc0="/soc/sdio0@16010000";
mmc1="/soc/sdio1@16020000";
};
@@ -60,10 +61,20 @@
};
&gmac0 {
- phy-reset-gpios = <&gpio 13 0>;
status = "okay";
};
+&gmac1 {
+ status = "okay";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ phy0: ethernet-phy@0 {
+ rxc-skew-ps = <1060>;
+ txc-skew-ps = <1800>;
+ reg = <0>;
+ };
+};
+
&gpio {
compatible = "starfive,jh7110-gpio";
gpio-controller;