hkkok
March 5, 2025, 3:11am
1
Hi! Recently I’ve enable uart2_m0 /dev/ttyS2 on ROCK 5C RK3588S2 but i found out the base baud rate is 1500000. Is it possible to change the setting to 152000 that can compatible with my ttl serial modem. Thanks
Nasca
March 5, 2025, 12:49pm
2
You can try to change the baud rate of this serial port in dts, set current-speed under the uart2 node
#include "rk3588-disable-fiq-debugger.dts"
/ {
metadata {
title = "Enable UART2-M0";
compatible = "radxa,rock-5a", "radxa,rock-5b", "radxa,rock-5b-plus", "radxa,rock-5c", "radxa,rock-5d", "radxa,rock-5t", "radxa,nx5-io", "radxa,cm5-io", "radxa,cm5-rpi-cm4-io";
category = "misc";
exclusive = "GPIO0_B5", "GPIO0_B6", "fiq_debugger";
description = "Enable UART2-M0.
On Radxa ROCK 5A this is TX pin 8 & RX pin 10.
On Radxa ROCK 5B this is TX pin 8 & RX pin 10.
On Radxa ROCK 5B+ this is TX pin 8 & RX pin 10.
On Radxa ROCK 5C this is TX pin 8 & RX pin 10.
On Radxa ROCK 5D this is TX pin 8 & RX pin 10.
On Radxa ROCK 5T this is TX pin 8 & RX pin 10.
On Radxa NX5 IO this is TX pin 8 & RX pin 10.
On Radxa CM5 IO this is TX pin 8 & RX pin 10.
On Radxa CM5 RPI CM4 IO this is TX pin 8 & RX pin 10.
";
};
This file has been truncated. show original
hkkok
March 6, 2025, 2:26am
3
Hi! Nasca, i’ve tried to change the /usr/src/radxa-overlays-0.1.12/arch/arm64/boot/dts/rockchip/overlays/rk3588-uart2-m0.dts but the base_baud still 150000. Please find the attachment for your reference.
Nasca
March 7, 2025, 1:57am
4
Have you reloaded this overlay?
hkkok
March 7, 2025, 2:21am
5
Yes, I’m using this command u-boot-update.
hkkok
March 10, 2025, 7:52am
6
Hi! Nasca, how to reload overlay?
Nasca
March 11, 2025, 2:42am
7
I just repdoduce it just now, let me see how to resolve it.
Nasca
March 11, 2025, 2:44am
8
stty -F /dev/ttyS2 speed 115200 cs8 -parenb -cstopb -echo