RK3566 Uart3 Noise or Meaningless Data Issue

Type: Self-Compiled Firmware
SDK Package Name: ROC-RK3566-PC_Rk356x_v1.3.2f_230724.img
Modification Content: &uart3 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&uart3m1_xfer>;
};
status set to "okay"
Log: test.zip

Hi, We have ROC-RK3566-PC-V1.2
We want to use uart3.
For this reason I applied the following steps.

Step 1: I compiled your ubuntu 18.04 sdk and booted on our device.
Step 2: I enabled uart3 in k356x_linux_release_v1.3.0b_20221213/kernel/arch/arm64/boot/dts/rockchip/rk3568-firefly-port.dtsi like following line

&uart3 {
status = “okay”;
pinctrl-names = “default”;
pinctrl-0 = <&uart3m1_xfer>;
};
I set status set to “okay”
Step 4: Recompile and update image on device
Step 5: Setup the serial settings with stty with command on the following line

  • stty -F /dev/ttyS3 ospeed 115200 ispeed 115200 cs8
  • stty -F /dev/ttyS3 raw

Now, I can see the /dev/ttyS3 serial point but I have some problems to communication with ttyS3

I am constantly getting data that looks like meaningless or noise.

This dataset looking like that: b2 b2 f6 f6 90 b2 b2 f6 f6 90 b2 b2 f6 f6 90 b2 b2 f6 f6 90
and this data repeating always

On the ROC-RK3566-PC Specification pdf the uart3 sharing pin with AUDIOPWM
May be it is our problem.

How can I fix this problem ?
Is our method of the enabling UART3 correct ?

tchip_askquestions
test.zip (154 Bytes)

I solve my problem.

The original dtsi file looking like this

&uart3 {
        status = "okay";
        pinctrl-names = "default";
        pinctrl-0 = <&uart3m1_xfer>;
};

I applied that

&uart3 {
        status = "okay";
};
(delete the pinctrl-0 and pinctrl-names)

Thank you for your article, it really opened my eyes! You can access Braindumps CWSP-208 torrent for free, filled with rich content to assist your learning.