RK3588 RTL8125BG调试

RTL8125B是一款PCIE转RJ45的网卡控制器芯片,在底层调试时只需配置PCIE即可

diff --git a/arch/arm64/boot/dts/rockchip/rk3588-nvr-demo.dtsi b/arch/arm64/boot/dts/rockchip/rk3588-nvr-demo.dtsi
index 798359eaf061..d8a7a43cdfa0 100755
--- a/arch/arm64/boot/dts/rockchip/rk3588-nvr-demo.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3588-nvr-demo.dtsi
@@ -193,21 +193,44 @@
        pinctrl-0 = <&pwm11m2_pins>;
        status = "okay";
 };
- 
+
+&pcie2x1l0 {
+       phys = <&combphy1_ps PHY_TYPE_PCIE>;
+       reset-gpios = <&gpio4 RK_PB3 GPIO_ACTIVE_HIGH>;
+       rockchip,init-delay-ms = <100>;
+       vpcie3v3-supply = <&vcc3v3_pcie30>;
+       status = "okay";
+};
+
+&pcie2x1l1 {
+       phys = <&combphy2_psu PHY_TYPE_PCIE>;
+       reset-gpios = <&gpio1 RK_PA7 GPIO_ACTIVE_LOW>;
+       vpcie3v3-supply = <&vcc3v3_pcie30>;
+       rockchip,init-delay-ms = <100>;
+       status = "disabled";
+};
+
+&pcie2x1l2 {
+       //reset-gpios = <&gpio4 RK_PC1 GPIO_ACTIVE_HIGH>;
+       vpcie3v3-supply = <&vcc3v3_pcie30>;
+       rockchip,init-delay-ms = <100>;
+       status = "disabled";
+};
+
 &combphy0_ps {
        pinctrl-names = "default";
-       pinctrl-0 = <&sata0_pm_reset>;
+       //pinctrl-0 = <&sata0_pm_reset>;
        status = "disabled";
 };
 
 &combphy1_ps {
        pinctrl-names = "default";
-       pinctrl-0 = <&sata1_pm_reset>;
-       status = "disabled";
+       //pinctrl-0 = <&sata1_pm_reset>;
+       status = "okay";
 };
 
 &combphy2_psu {
-       status = "okay";
+       status = "disabled";
 };
 
 &dp0 {
@@ -475,6 +498,7 @@
 };
 
 &pcie30phy {
+       rockchip,pcie30-phymode = <PHY_MODE_PCIE_AGGREGATION>;
        status = "okay";
 };
 
diff --git a/arch/arm64/configs/rockchip_linux_defconfig b/arch/arm64/configs/rockchip_linux_defconfig
index 54d2d56a68eb..db5fdc8f6d1a 100644
--- a/arch/arm64/configs/rockchip_linux_defconfig
+++ b/arch/arm64/configs/rockchip_linux_defconfig
@@ -1,3 +1,4 @@
+CONFIG_R8169=y
 CONFIG_VIDEO_ROCKCHIP_HDMIRX=y
 CONFIG_DEFAULT_HOSTNAME="localhost"
 CONFIG_SYSVIPC=y

查看pcie设备的pid和vid:

cat /sys/bus/pci/devices/0002\:21\:00.0/uevent 
DRIVER=r8169
PCI_CLASS=20000
PCI_ID=10EC:8125
PCI_SUBSYS_ID=10EC:8125
PCI_SLOT_NAME=0002:21:00.0
MODALIAS=pci:v000010ECd00008125sv000010ECsd00008125bc02sc00i00
相关推荐
AGI学习社15 分钟前
2024中国排名前十AI大模型进展、应用案例与发展趋势
linux·服务器·人工智能·华为·llama
H.2035 分钟前
centos7执行yum操作时报错Could not retrieve mirrorlist http://mirrorlist.centos.org解决
linux·centos
9毫米的幻想1 小时前
【Linux系统】—— 编译器 gcc/g++ 的使用
linux·运维·服务器·c语言·c++
helloliyh1 小时前
Windows和Linux系统安装东方通
linux·运维·windows
van叶~3 小时前
Linux探秘坊-------4.进度条小程序
linux·运维·小程序
秋风&萧瑟3 小时前
【数据结构】顺序队列与链式队列
linux·数据结构·windows
我科绝伦(Huanhuan Zhou)4 小时前
Linux 系统服务开机自启动指导手册
java·linux·服务器
hunter2062065 小时前
ubuntu终端当一段时间内没有程序运行时,自动关闭终端。
linux·chrome·ubuntu
代码讲故事7 小时前
从Windows通过XRDP远程访问和控制银河麒麟ukey v10服务器,以及多次连接后黑屏的问题
linux·运维·服务器·windows·远程连接·远程桌面·xrdp
qq_243050799 小时前
irpas:互联网路由协议攻击套件!全参数详细教程!Kali Linux入门教程!黑客渗透测试!
linux·网络·web安全·网络安全·黑客·渗透测试·系统安全