Platform: ROCKCHIP
Chip: RK3399
OS: Android7.1.2
Kernel: 4.4.126*
设备需验证串口功能的完整性,硬件引出的串口只有调试串口以及RS232口,查看原理图 两串口分别为uart2c以及uart4
查看电路图
- # uart4电路图如下:
2. # uart2c调试串口电路图如下
dts文件修改
uart2与uart4的dtsi描述:./arch/arm64/boot/dts/rockchip/rk3399.dtsi
uart2: serial@ff1a0000 {
compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart";
reg = <0x0 0xff1a0000 0x0 0x100>;
clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>