Skip to content

Tegra Combined UART driver

Mikko Perttunen linux-arm-kernel linux-devicetree linux-mediatek linux-serial linux-tegra lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest8 patches 22 repliesIn review
  2. v28 patches 7 repliesSuperseded
  3. v18 patches 16 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8dt-bindings: tegra186-hsp: Add shared interruptsDocumentation/devicetree/bindings/mailbox/nvidia,tegra186-hsp.txt+3 -01 reply
2/8dt-bindings: serial: Add bindings for nvidia,tegra194-tcuDocumentation/devicetree/bindings/serial/nvidia,tegra194-tcu.txt+35 -01 reply
3/8mailbox: Add transmit done by blocking optiondrivers/mailbox/mailbox.c drivers/mailbox/mailbox.h+22 -911 replies
4/8mailbox: tegra-hsp: Refactor in preparation of mailboxesdrivers/mailbox/tegra-hsp.c+81 -421 reply
5/8mailbox: tegra-hsp: Add support for shared mailboxesdrivers/mailbox/tegra-hsp.c+191 -201 reply
6/8serial: Add Tegra Combined UART driverdrivers/tty/serial/Kconfig drivers/tty/serial/Makefile drivers/tty/serial/tegra-tcu.c +1 more+304 -04 replies
7/8arm64: tegra: Add nodes for tcu on Tegra194arch/arm64/boot/dts/nvidia/tegra194.dtsi+31 -30 replies
8/8arm64: tegra: Mark tcu as primary serial port on Tegra194 P2888arch/arm64/boot/dts/nvidia/tegra194-p2888.dtsi+1 -10 replies

Reviews trailers per patch

6 of 8 patches have a Reviewed-by or Acked-by.

PatchJon HunterRob HerringThierry Reding
1/8A-b R-b A-b
2/8A-b R-b A-b
3/8
4/8R-b A-b
5/8R-b A-b
6/8
7/8A-b
8/8A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v3 thread

Cover letter [PATCH v3 0/8] Tegra Combined UART driver

Hi, here's v3. Changes are in individual patches. Acks are still missing from the following patches:

mailbox: Add transmit done by blocking option
mailbox: tegra-hsp: Refactor in preparation of mailboxes
mailbox: tegra-hsp: Add support for shared mailboxes
serial: Add Tegra Combined UART driver

Thanks,
Mikko

Original message:

Hi all,

on Tegra194, the primary console UART is the "Tegra Combined UART", or TCU. This is a "virtual UART", where each consumer communicates with a central implementation over mailboxes. The central implementation then multiplexes the streams and arbitrates use of a hardware serial port. This driver implements the consumer portion to allow using the primary console.

The series is split into the following parts:
* patches 1 and 2 add the device tree bindings for mailbox and tcu itself.
* patch 3 adds a blocking transmission option to the mailbox framework.
* patches 4 and 5 add support for the "shared mailbox" primitive to the Tegra HSP driver.
* patch 6 adds the TCU driver itself
* patches 7 and 8 do the necessary device tree changes.

The series has been tested on the Tegra194 P2972 board.

Mikko Perttunen (8):
dt-bindings: tegra186-hsp: Add shared interrupts
dt-bindings: serial: Add bindings for nvidia,tegra194-tcu
mailbox: Add transmit done by blocking option
mailbox: tegra-hsp: Refactor in preparation of mailboxes
mailbox: tegra-hsp: Add support for shared mailboxes
serial: Add Tegra Combined UART driver
arm64: tegra: Add nodes for tcu on Tegra194
arm64: tegra: Mark tcu as primary serial port on Tegra194 P2888

 .../bindings/mailbox/nvidia,tegra186-hsp.txt       |   3 +
 .../bindings/serial/nvidia,tegra194-tcu.txt        |  35 +++
 arch/arm64/boot/dts/nvidia/tegra194-p2888.dtsi     |   2 +-
 arch/arm64/boot/dts/nvidia/tegra194.dtsi           |  34 ++-
 drivers/mailbox/mailbox.c                          |  30 +-
 drivers/mailbox/mailbox.h                          |   1 +
 drivers/mailbox/tegra-hsp.c                        | 320 +++++++++++++++++----
 drivers/tty/serial/Kconfig                         |   9 +
 drivers/tty/serial/Makefile                        |   1 +
 drivers/tty/serial/tegra-tcu.c                     | 291 +++++++++++++++++++
 include/uapi/linux/serial_core.h                   |   3 +
 11 files changed, 661 insertions(+), 68 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/serial/nvidia,tegra194-tcu.txt
 create mode 100644 drivers/tty/serial/tegra-tcu.c
Signature · 1 line
2.16.1