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
相关推荐
CSND74035 分钟前
Ubuntu vi(vim)编辑器配置一键补全main函数
linux·c语言·ubuntu·编辑器·vim
シ風箏4 小时前
Neo4j【环境部署 02】图形数据库Neo4j在Linux系统ARM架构下的安装使用
linux·数据库·arm·neo4j
Cachel wood6 小时前
Vue.js前端框架教程8:Vue消息提示ElMessage和ElMessageBox
linux·前端·javascript·vue.js·前端框架·ecmascript
小屁不止是运维8 小时前
麒麟操作系统服务架构保姆级教程(二)ssh远程连接
linux·运维·服务器·学习·架构·ssh
黑客K-ing10 小时前
网络安全防范
linux·服务器·web安全
王三三11 小时前
群晖利用acme.sh自动申请证书并且自动重载证书的问题解决
linux·自动化·证书·群晖·acme·acme.sh·lets encrypt
路飞雪吖~11 小时前
【Linux】进程控制
linux·运维·服务器
wy02_11 小时前
Linux基本命令
linux·运维
qq_4592384911 小时前
Linux之压缩解压相关命令
linux
慕羽★11 小时前
详细介绍如何使用rapidjson读取json文件
linux·c++·windows·json·file·param·rapidjson