|
|
Log in / Subscribe / Register

serial: Add driver for National Instruments UARTs

From:  Brenda Streiff <brenda.streiff-AT-ni.com>
To:  unlisted-recipients:; (no To-header on input)
Subject:  [PATCH v5 tty-next 0/2] serial: Add driver for National Instruments UARTs
Date:  Thu, 12 Oct 2023 15:51:09 -0500
Message-ID:  <20231012205112.112261-1-brenda.streiff@ni.com>
Cc:  Brenda Streiff <brenda.streiff-AT-ni.com>, Greg Kroah-Hartman <gregkh-AT-linuxfoundation.org>, Jiri Slaby <jirislaby-AT-kernel.org>, Rob Herring <robh+dt-AT-kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt-AT-linaro.org>, Conor Dooley <conor+dt-AT-kernel.org>, linux-serial-AT-vger.kernel.org, linux-kernel-AT-vger.kernel.org, devicetree-AT-vger.kernel.org
Archive-link:  Article

This patch series adds a driver for the 16550-like UARTs on National
Instruments (NI) embedded controller hardware.

These UARTs have an interface that is compatible with the TL16C550C (for
which we build on top of 8250_core) but also has extra registers for
the embedded RS-232/RS-485 transceiver control circuitry.
---
Changes from v4 -> v5:
- set_mctrl callback needs to set CLKSEL in up->mcr, not local mctrl
- initialize potentially-uninitialized 'prescaler'
- Style fixes:
  - comment the effect of the PCR modes
  - remove extraneous parens
  - add to Makefile in the post-66ebe67d1b68 sorted order

v4: https://lore.kernel.org/linux-serial/20230505213850.82963...
v3: https://lore.kernel.org/linux-serial/20230418223800.28460...
v2: https://lore.kernel.org/linux-serial/20230410211152.94332...
v1: https://lore.kernel.org/linux-serial/20230329154235.61534...

Brenda Streiff (2):
  dt-bindings: serial: ni,ni16650: add bindings
  serial: 8250: add driver for NI UARTs

 .../bindings/serial/ni,ni16550.yaml           |  51 ++
 MAINTAINERS                                   |   7 +
 drivers/tty/serial/8250/8250_ni.c             | 478 ++++++++++++++++++
 drivers/tty/serial/8250/Kconfig               |  13 +
 drivers/tty/serial/8250/Makefile              |   1 +
 5 files changed, 550 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/serial/ni,ni16550.yaml
 create mode 100644 drivers/tty/serial/8250/8250_ni.c

-- 
2.30.2



Copyright © 2023, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds