Skip to content

Commit

Permalink
driver: serial: Add UART driver initial version of RTS5912.
Browse files Browse the repository at this point in the history
Add UART driver for Realtek RTS5912.

Signed-off-by: Lin Yu-Cheng <[email protected]>
  • Loading branch information
JasonLin-RealTek committed Nov 26, 2024
1 parent 8a5d9f9 commit b9af712
Show file tree
Hide file tree
Showing 7 changed files with 554 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/serial/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ zephyr_library_sources_ifdef(CONFIG_UART_RA8_SCI_B uart_renesas_ra8_sci_b.c)
zephyr_library_sources_ifdef(CONFIG_UART_RCAR uart_rcar.c)
zephyr_library_sources_ifdef(CONFIG_UART_RENESAS_RA uart_renesas_ra.c)
zephyr_library_sources_ifdef(CONFIG_UART_RPI_PICO_PIO uart_rpi_pico_pio.c)
zephyr_library_sources_ifdef(CONFIG_UART_RTS5912 uart_realtek_rts5912.c)
zephyr_library_sources_ifdef(CONFIG_UART_RTT_DRIVER uart_rtt.c)
zephyr_library_sources_ifdef(CONFIG_UART_RV32M1_LPUART uart_rv32m1_lpuart.c)
zephyr_library_sources_ifdef(CONFIG_UART_RZT2M uart_rzt2m.c)
Expand Down
2 changes: 2 additions & 0 deletions drivers/serial/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -221,4 +221,6 @@ rsource "Kconfig.xmc4xxx"

source "drivers/serial/Kconfig.si32"

source "drivers/serial/Kconfig.realtek_rts5912"

endif # SERIAL
15 changes: 15 additions & 0 deletions drivers/serial/Kconfig.realtek_rts5912
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# SPDX-License-Identifier: Apache-2.0
#
# Copyright (c) 2024 Realtek Semiconductor Corporation, SIBG-SD7
#

config UART_RTS5912
bool "UART driver for Realtek RTS5912 EC"
default y
depends on DT_HAS_REALTEK_RTS5912_UART_ENABLED
select SERIAL_HAS_DRIVER
select PINCTRL
select CLOCK_CONTROL
help
This option enables the UART driver for Realtek RTS591x EC.
Say y if you wish to use serial port on Realtek RTS591x EC.
Loading

0 comments on commit b9af712

Please sign in to comment.