In dts file, the serail port /dev/ttyTHS3 is configured as flow:
uartd: serial@3130000 {
compatible = “nvidia,tegra186-hsuart”;
#stream-id-cells = <1>;
reg = <0x0 0x03130000 0x0 0x40>;
reg-shift = <2>;
interrupts = <0 TEGRA186_IRQ_UARTD 0x04>;
nvidia,memory-clients = <14>;
dmas = <&gpcdma 19>, <&gpcdma 19>;
dma-names = “rx”, “tx”;
clocks = <&tegra_car TEGRA186_CLK_UARTD>,
<&tegra_car TEGRA186_CLK_PLLP_OUT0>;
clock-names = “serial”, “parent”;
resets = <&tegra_car TEGRA186_RESET_UARTD>;
reset-names = “serial”;
status = “disabled”;
nvidia,adjust-baud-rates = <115200 115200 100>;
};
when I use picocom to read from the port, there is one error message from dmesg:
[26046.949265] serial-tegra 3130000.serial: configured rate out of supported range by -0.29 %
and the data read is also wrong
the command used to read is : picocom -b 460800 /dev/ttyTHS3
after reading kenel source, this may be caused by this config nvidia,adjust-baud-rates = <115200 115200 100>
Does anyone know how to ajust the configuration, so 460800 and higher baudrate can be used?