Skip to content

serial: amba-pl011: Add Tegra264 UART support

Kartik Rajput linux-serial lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4serial: amba-pl011: Introduce skip_ibrd_fbrd vendor flagdrivers/tty/serial/amba-pl011.c+31 -220 replies
2/4serial: amba-pl011: Introduce set_uartclk_rate vendor flagdrivers/tty/serial/amba-pl011.c+27 -20 replies
3/4serial: amba-pl011: Add Tegra264 UART supportdrivers/tty/serial/amba-pl011.c+27 -00 replies
4/4serial: amba-pl011: Respect DMA controller's copy_align requirementdrivers/tty/serial/amba-pl011.c+9 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] serial: amba-pl011: Add Tegra264 UART support

This series adds support for the NVIDIA Tegra264 UART controller, which is derived from the AMBA PL011.

On Tegra264, the fractional baud rate divisor (FBRD) register is broken. Configuring the baud rate using IBRD and FBRD may result in the baud rate falling outside the required tolerance. Instead, the baud rate is derived by setting the UART clock.

The following vendor flags are introduced:
- skip_ibrd_fbrd: to skip IBRD/FBRD programming
- set_uartclk_rate: to configure the baud rate by setting the UART clock rate

Additionally, some DMA controllers (e.g. Tegra GPCDMA) require transfer lengths to satisfy the controller's copy_align constraint. The PL011 driver does not currently enforce this, which can result in rejected transfers. The DMA alignment change aligns the TX DMA length down to the required boundary, with any remaining bytes handled via the existing PIO fallback.

Kartik Rajput (4):
serial: amba-pl011: Introduce skip_ibrd_fbrd vendor flag
serial: amba-pl011: Introduce set_uartclk_rate vendor flag
serial: amba-pl011: Add Tegra264 UART support
serial: amba-pl011: Respect DMA controller's copy_align requirement

 drivers/tty/serial/amba-pl011.c | 118 +++++++++++++++++++++++++-------
 1 file changed, 94 insertions(+), 24 deletions(-)
Signature · 1 line
2.43.0