AGX Orin Jetpack6.2 uarti 修改默认波特率失败

DRIVE OS Version: Jetpack 6.2
Issue Description: AGX Orin uarti 配置10M 波特率。
您好:
我司使用10M波特率的串口,使用uarti端口并已配置pinmux,所使用的驱动是arm,sbsa-uart,使用端口ttyAMA0, 编写应用层测试程序可以进行数据收发,但发现无法进行有效的波特率更改,若要更改波特率需修改文件/sys/kernel/debug/bpmp/debug/clk/uarti/rate,才可进行不同波特率的交互;
应用程序使用的是termios机制中的BOTHER 和 TCSETS2方式进行波特率设置的。
对于这个端口应用程序若要使用并配置不同的波特率,需要通过那种方式进行访问和配置?是否使用驱动nvidia,tegra194-hsuart可以进行这种方式的访问?但配置成nvidia,tegra194-hsuart时,做以下配置后
aliases {*
serial8 = “/bus@0/serial@31d0000”;*
};
&uarti {
compatible = “nvidia,tegra194-hsuart”;
clocks = <&bpmp TEGRA234_CLK_UARTI>;
resets = <&bpmp TEGRA234_RESET_UARTI>;
iommus = <&smmu_niso0 TEGRA234_SID_GPCDMA>;
reset-names = “serial”;
// dmas = <&gpcdma 20>, <&gpcdma 20>;
// dma-names = “rx”, “tx”;
status = “okay”;
};
系统起来后报错
[ 1.893706] serial-tegra 31d0000.serial: Adding to iommu group 1
[ 1.893729] serial-tegra 31d0000.serial: RX in PIO mode
[ 1.893732] serial-tegra 31d0000.serial: TX in PIO mode
[ 1.893778] serial-tegra 31d0000.serial: Failed to add uart port, err -22
[ 1.893781] serial-tegra: probe of 31d0000.serial failed with error -22
若要想用户层可修改波特率,需要使用那种驱动呢,sbsa还是tegra194-hsuart,需要如何调整。
烦请解答下,谢谢。

Hi 670680537,

Are you using the devkit or custom board for AGX Orin?

Please use sbsa-uart for uarti. On AGX Orin, uarti is the SBSA UART and shows up as ttyAMA0, so it is not recommended to switch this node to nvidia,tegra194-hsuart for normal baud-rate control.
If your goal is to let user space change baud rate, please keep sbsa-uart on uarti and verify the clock setting.
Also, if the actual problem is related to DMA, please try removing the DMA-related properties from the device tree and test with PIO mode first.