[PATCH v3 0/2] serial: 8250: Add AN7581 UART support
Christian Marangi <[email protected]> Sat, 8 Aug 2026 00:20:38 +0200
| Newsgroups | gmane.linux.kernel,gmane.linux.drivers.devicetree,gmane.linux.serial |
|---|---|
| Message-ID | <[email protected]> |
This is a new version of [1] to support UART driver for Airoha SoC. One additional function was needed serial8250_get_baud_rate() for the driver to work correctly for baud rate calculation. While at it also try to clarify a long standing issue with new UART driver when adding new ids for uart_config[]. [1] https://lore.kernel.org/all/[email protected]/ Changes v3: - Address review from ai bot - Add all missing kernel headers - Improve divisor calculation - Fix wrong uart config table - Simplify divisor table handling Changes v2: - Drop intermediate patch - Use .set_divisor OPs - Use div_u64 instead of / 40 for 32 bit overflow - Drop dedicated match table and use compatible for type Changes compared to [1]: - Fix all formal error - Use better compatible names - Drop unneeded header - Drop usage of irq (it's filled by the generic function) - General code cleanup and reorg - Split to patch and add the UAPI map patch Benjamin Larsson (1): dt-bindings: serial: 8250: Add Airoha compatibles Christian Marangi (1): serial: 8250: Add Airoha SoC UART and HSUART support .../devicetree/bindings/serial/8250.yaml | 5 + drivers/tty/serial/8250/8250.h | 6 + drivers/tty/serial/8250/8250_airoha.c | 186 ++++++++++++++++++ drivers/tty/serial/8250/8250_port.c | 16 ++ drivers/tty/serial/8250/Kconfig | 11 ++ drivers/tty/serial/8250/Makefile | 1 + 6 files changed, 225 insertions(+) create mode 100644 drivers/tty/serial/8250/8250_airoha.c -- 2.53.0