linux-serial.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] serial: add KEBA UART driver
@ 2025-10-20 19:06 Gerhard Engleder
  2025-10-20 19:06 ` [PATCH v3 1/2] serial: Keep rs485 settings for devices without firmware node Gerhard Engleder
  2025-10-20 19:06 ` [PATCH v3 2/2] serial: 8250: add driver for KEBA UART Gerhard Engleder
  0 siblings, 2 replies; 7+ messages in thread
From: Gerhard Engleder @ 2025-10-20 19:06 UTC (permalink / raw)
  To: linux-serial; +Cc: gregkh, jirislaby, lukas, Gerhard Engleder

First the serial subsystem is prepared to keep rs485 settings from the
driver if no firmware node exists. This enables drivers to configure a
default rs485 mode, which is set by the serial subsystem.

Second the driver for the KEBA UART is added. This driver supports
multiple rs485 modes and selects RS485 as default mode. This UART is
found in KEBA PLC devices. The auxiliary devices for this driver are
created by the cp500 driver.

v3:
- add info to commit why device tree / ACPI is not possible (Lukas Wunner)
- separate if and comment for change in uart_get_rs485_mode() (Lukas Wunner)

v2:
- use BIT() for flag definition (Jiri Slaby)
- use enum for UART mode definition (Jiri Slaby)
- use BIT() for capability flag definition (Jiri Slaby)
- use GENMASK() for capability mask (Jiri Slaby)
- use unsigned int for serial line number (Jiri Slaby)
- use unsigned int for flags (Jiri Slaby)

Gerhard Engleder (2):
  serial: Keep rs485 settings for devices without firmware node
  serial: 8250: add driver for KEBA UART

 drivers/tty/serial/8250/8250_keba.c | 281 ++++++++++++++++++++++++++++
 drivers/tty/serial/8250/Kconfig     |  13 ++
 drivers/tty/serial/8250/Makefile    |   1 +
 drivers/tty/serial/serial_core.c    |   8 +
 4 files changed, 303 insertions(+)
 create mode 100644 drivers/tty/serial/8250/8250_keba.c

-- 
2.39.5


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-10-23 15:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-20 19:06 [PATCH v3 0/2] serial: add KEBA UART driver Gerhard Engleder
2025-10-20 19:06 ` [PATCH v3 1/2] serial: Keep rs485 settings for devices without firmware node Gerhard Engleder
2025-10-23 10:17   ` Lukas Wunner
2025-10-23 15:13     ` Gerhard Engleder
2025-10-20 19:06 ` [PATCH v3 2/2] serial: 8250: add driver for KEBA UART Gerhard Engleder
2025-10-23  1:56   ` Lukas Wunner
2025-10-23 15:14     ` Gerhard Engleder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).