soc: aspeed: Add UART routing support
authorChia-Wei Wang <chiawei_wang@aspeedtech.com>
Fri, 22 Oct 2021 00:06:16 +0000 (10:36 +1030)
committerArnd Bergmann <arnd@arndb.de>
Fri, 22 Oct 2021 15:32:09 +0000 (17:32 +0200)
commitc6807970c3bc0aa80f4804fc7d38b32f99fc3cf6
treea9a5907988ac1906c85bb78f937c94476ecc1c3a
parentac2561f921e233ca7ae027c6e7e7b8832029dd04
soc: aspeed: Add UART routing support

Add driver support for the UART routing control. Users can perform
runtime configuration of the RX muxes among the UART controllers and
the UART IO pins.

The sysfs interface is also exported for the convenience of routing paths
check and update.

Signed-off-by: Oskar Senft <osk@google.com>
Signed-off-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com>
Signed-off-by: Joel Stanley <joel@jms.id.au>
Tested-by: Lei YU <yulei.sh@bytedance.com>
Link: https://lore.kernel.org/r/20210927023053.6728-5-chiawei_wang@aspeedtech.com
Link: https://lore.kernel.org/r/20211022000616.481772-1-joel@jms.id.au'
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Documentation/ABI/testing/sysfs-driver-aspeed-uart-routing [new file with mode: 0644]
drivers/soc/aspeed/Kconfig
drivers/soc/aspeed/Makefile
drivers/soc/aspeed/aspeed-uart-routing.c [new file with mode: 0644]