LX2160a linux : UART Configuration /dev/ttyAMA1

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LX2160a linux : UART Configuration /dev/ttyAMA1

2,076 Views
SebastienV
Contributor I

We are using the LX2160a on our VPX SBC VX6124 ( https://www.kontron.com/en/products/vx6124/p159844), we are facing an issue when the try to change the baudrate on the /dev/ttyAMA1 UART, we get the stty error : stty: /dev/ttyAMA1: cannot perform all requested operations

It is similar with the issue below, but in our case it is not on the console port.

https://community.nxp.com/t5/Layerscape/LX2160a-linux-UART-configuration/m-p/1522691#M11161

We do not understand why we cannot be changed by user space software, because the /dev/ttyAMA1 UART is not our console port. Could you explain why the 2 UARTs port are impacted by this limitation?

It is with amba pl011 uart driver using LSDK 21.08.

Sincerely,

 

0 Kudos
Reply
3 Replies

1,975 Views
SebastienV
Contributor I

knowing this information, what is the right way to configure this speed? is it possible to configure something in the device tree?  or is it too late in the boot process?

Cordialement,

0 Kudos
Reply

1,949 Views
Oswalag
NXP TechSupport
NXP TechSupport

The configuration is not placed in the dts, Changes must be done in firmware for changing baud rate in plat_def.h, 

In atf source code plat/nxp/soc-lx2160a/lx2160ardb/plat_def.h

Oswalag_0-1688155266335.png

Please try it and let me know if it works for you.

 

 

0 Kudos
Reply

2,033 Views
Oswalag
NXP TechSupport
NXP TechSupport

Hello,

Modify the baud rate from userspace is not possible.

As the similar case shared by you explain it, the SBSA UART has a fixed baud rate and flow control setting which cannot be changed by user space software, even if it is your console port or not.

 

0 Kudos
Reply