在我们默认的wiki
SDK的源码中,使用的是复用功能i2c7
;
用户可以选择关闭i2c7
以使用uart9
;
找到文件:kernel/arch/arm64/boot/dts/rockchip/rk3588s-evb4-lp4x-yyt.dtsi;
修改如下:
diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-evb4-lp4x-yyt.dtsi b/arch/arm64/boot/dts/rockchip/rk3588s-evb4-lp4x-yyt.dtsi
index deb8641dd..c6e9a7866 100644
--- a/arch/arm64/boot/dts/rockchip/rk3588s-evb4-lp4x-yyt.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3588s-evb4-lp4x-yyt.dtsi
@@ -632,7 +632,8 @@ dp_altmode_mux: endpoint {
};
&i2c7 {
- status = "okay";
+ // status = "okay";
+ status = "disalbed";
pinctrl-names = "default";
pinctrl-0 = <&i2c7m0_xfer>;
@@ -1071,7 +1072,7 @@ &u2phy3_host {
};
&uart9 {//
- status = "disabled";
+ status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&uart9m2_xfer>;
};
修改完成,编译烧录之后,可以看到在/dev/目录下面多了串口9的文件节点
root@R1:/# cd /dev/ttyS
ttyS5 ttyS7 ttyS9