From: Christian Marangi <ansuelsmth@gmail.com>
To: "Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
"Jiri Slaby" <jirislaby@kernel.org>,
"Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Andy Shevchenko" <andriy.shevchenko@linux.intel.com>,
"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
"Benjamin Larsson" <benjamin.larsson@genexis.eu>,
"Christian Marangi" <ansuelsmth@gmail.com>,
"John Ogness" <john.ogness@linutronix.de>,
"Jacques Nilo" <jnilo@free.fr>,
"Randy Dunlap" <rdunlap@infradead.org>,
"Rong Zhang" <rongrong@oss.cipunited.com>,
"Jiaxun Yang" <jiaxun.yang@flygoat.com>,
"Gerhard Engleder" <eg@keba.com>,
"Binbin Zhou" <zhoubinbin@loongson.cn>,
"Huacai Chen" <chenhuacai@kernel.org>,
"Haowei Zheng" <zhenghaowei@loongson.cn>,
"Lubomir Rintel" <lkundrak@v3.sk>,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-serial@vger.kernel.org
Subject: [PATCH v5 0/3] serial: 8250: Add AN7581 UART support
Date: Mon, 10 Aug 2026 17:26:32 +0200 [thread overview]
Message-ID: <20260810152636.658955-1-ansuelsmth@gmail.com> (raw)
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/20250209210241.2622309-1-benjamin.larsson@genexis.eu/
Changes v5:
- Improve 8250 YAML schema with enum
- Keep alphabetical order for YAML schema
Changes v4:
- Add Review tag
- Add errno and types header
- Drop redundant () from comment
- Use define for get_divisor
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 (2):
dt-bindings: serial: 8250: Reorganize compatible to single enum
serial: 8250: Add Airoha SoC UART and HSUART support
.../devicetree/bindings/serial/8250.yaml | 32 +--
drivers/tty/serial/8250/8250.h | 6 +
drivers/tty/serial/8250/8250_airoha.c | 187 ++++++++++++++++++
drivers/tty/serial/8250/8250_port.c | 16 ++
drivers/tty/serial/8250/Kconfig | 11 ++
drivers/tty/serial/8250/Makefile | 1 +
6 files changed, 240 insertions(+), 13 deletions(-)
create mode 100644 drivers/tty/serial/8250/8250_airoha.c
--
2.53.0
next reply other threads:[~2026-08-10 15:26 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-10 15:26 Christian Marangi [this message]
2026-08-10 15:26 ` [PATCH v5 1/3] dt-bindings: serial: 8250: Reorganize compatible to single enum Christian Marangi
2026-08-11 7:21 ` Krzysztof Kozlowski
2026-08-10 15:26 ` [PATCH v5 2/3] dt-bindings: serial: 8250: Add Airoha compatibles Christian Marangi
2026-08-11 7:22 ` Krzysztof Kozlowski
2026-08-10 15:26 ` [PATCH v5 3/3] serial: 8250: Add Airoha SoC UART and HSUART support Christian Marangi
2026-08-10 15:52 ` sashiko-bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260810152636.658955-1-ansuelsmth@gmail.com \
--to=ansuelsmth@gmail.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=benjamin.larsson@genexis.eu \
--cc=chenhuacai@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=eg@keba.com \
--cc=gregkh@linuxfoundation.org \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=jiaxun.yang@flygoat.com \
--cc=jirislaby@kernel.org \
--cc=jnilo@free.fr \
--cc=john.ogness@linutronix.de \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=lkundrak@v3.sk \
--cc=rdunlap@infradead.org \
--cc=robh@kernel.org \
--cc=rongrong@oss.cipunited.com \
--cc=zhenghaowei@loongson.cn \
--cc=zhoubinbin@loongson.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.