summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGenevieve Chan <genevieve.chan@starfivetech.com>2023-01-19 18:35:10 +0300
committerLey Foon Tan <leyfoon.tan@starfivetech.com>2023-12-04 06:00:13 +0300
commit34b68de8432e86b26f0295c145935c3c12e0ab02 (patch)
tree961ea53cfe036d13dcc0be4e62410bc25e805899
parent871b37486bed4ca412bcef4dce710ab7a65b7945 (diff)
downloadlinux-34b68de8432e86b26f0295c145935c3c12e0ab02.tar.xz
riscv: dts: dubhe: Set ip in boot args and enable gmac
Set ip at kernel bootargs with the following parameters: * Client IP Address: autoconfg using DHCP * Server IP Address: not defined * Gateway IP Address: 192.168.152.1 * Netmask: 255.255.255.0 * Network device to use: eth0 * Autoconfiguration: dhcp Enable gmac driver. Signed-off-by: Genevieve Chan <genevieve.chan@starfivetech.com>
-rw-r--r--arch/riscv/boot/dts/starfive/dubhe_fpga.dts3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/riscv/boot/dts/starfive/dubhe_fpga.dts b/arch/riscv/boot/dts/starfive/dubhe_fpga.dts
index e8f9ccd89cfd..3e0e0c1c79a2 100644
--- a/arch/riscv/boot/dts/starfive/dubhe_fpga.dts
+++ b/arch/riscv/boot/dts/starfive/dubhe_fpga.dts
@@ -12,7 +12,7 @@
};
chosen {
- bootargs = "console=ttySIF0,115200 earlycon=sbi";
+ bootargs = "console=ttySIF0,115200 earlycon=sbi ip=::192.168.152.1:255.255.255.0::eth0:dhcp";
};
cpus {
@@ -42,6 +42,7 @@
};
&gmac0 {
+ status = "okay";
phy-mode = "rgmii-id";
phy-handle = <&ethernet_phy0>;
clocks = <&fpga_2p5mhz_clk>,