serial: sunplus-uart: Add Sunplus SoC UART Driver
authorHammer Hsieh <hammerh0314@gmail.com>
Tue, 22 Feb 2022 09:36:03 +0000 (17:36 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 26 Feb 2022 09:03:21 +0000 (10:03 +0100)
commit9e8d5470325f25bed7d33f9faaae6d5e4f313650
tree8a02f406edd076cc0bda17cf5a2df05bce91f3b3
parentb48b9f6deacf0b499a14b9fc3f9d1ab45cc137f8
serial: sunplus-uart: Add Sunplus SoC UART Driver

Add Sunplus SoC UART Driver.
SP7021 UART block contains 5 UARTs.
There are UART0~4 that supported in SP7021, the features list as below.
Support Full-duplex communication.
Support data packet length configurable.
Support stop bit number configurable.
Support force break condition.
Support baud rate configurable.
Support error detection and report.
Support RXD Noise Rejection Vote configurable.

UART0 pinout only support TX/RX two pins.
UART1 to UART4 pinout support TX/RX/CTS/RTS four pins.
Normally UART0 used for kernel console, also can be used for normal uart.
Command line set "console=ttySUP0,115200", SUP means Sunplus Uart Port.
UART driver probe will create path named "/dev/ttySUPx".

https://sunplus.atlassian.net/wiki/spaces/doc/pages/1873412290/13.+Universal+Asynchronous+Receiver+Transmitter+UART

Signed-off-by: Hammer Hsieh <hammerh0314@gmail.com>
Link: https://lore.kernel.org/r/1645522563-17183-3-git-send-email-hammerh0314@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
MAINTAINERS
drivers/tty/serial/Kconfig
drivers/tty/serial/Makefile
drivers/tty/serial/sunplus-uart.c [new file with mode: 0644]
include/uapi/linux/serial_core.h