[PATCH V3 0/6] the UART driver compatible with the Amlogic Meson

From: Yu Tu
Date: Thu Dec 30 2021 - 05:23:03 EST


1.Using the common Clock code to describe the UART baud rate clock makes it
easier for the UART driver to be compatible with the baud rate requirements
of the UART IP on different meson chips. Add Meson S4 SoC compatible.

2.Fix some omissions

3.An interrupt error occurs when the user opens (/dev/ttyAML0) twice
in a row

Yu Tu (6):
tty: serial: meson: Drop the legacy compatible strings and clock code
tty: serial: meson: Request the register region in meson_uart_probe()
dt-bindings: serial: meson: Support S4 SoC uart. Also Drop compatible
= amlogic,meson-gx-uart.
tty: serial: meson: The UART baud rate calculation is described using
the common clock code. Also added S4 chip uart Compatible.
tty: serial: meson: meson_uart_shutdown omit clear AML_UART_TX_EN bit
tty: serial: meson: Change request_irq to devm_request_irq and move
devm_request_irq to meson_uart_probe()

V1 -> V2: Use CCF to describe the UART baud rate clock.Make some changes as
discussed in the email
V2 -> V3: add compatible = "amlogic,meson-gx-uart". Because it must change
the DTS before it can be deleted

Link:https://lore.kernel.org/linux-amlogic/20211221071634.25980-2-yu.tu@xxxxxxxxxxx/

.../bindings/serial/amlogic,meson-uart.yaml | 10 +-
drivers/tty/serial/Kconfig | 1 +
drivers/tty/serial/meson_uart.c | 367 +++++++++++++-----
3 files changed, 273 insertions(+), 105 deletions(-)

--
2.33.1