Skip to content

Commit 0d8633c

Browse files
JasonLin-RealTekadamkondraciuk
authored andcommitted
[nrf fromtree] driver: gpio: Add gpio driver initial version of RTS5912.
Add gpio driver for Realtek RTS5912. Signed-off-by: Adam Kondraciuk <[email protected]> (cherry picked from commit 2656029) Signed-off-by: Lin Yu-Cheng <[email protected]>
1 parent ae27a55 commit 0d8633c

File tree

8 files changed

+677
-0
lines changed

8 files changed

+677
-0
lines changed

drivers/gpio/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ zephyr_library_sources_ifdef(CONFIG_GPIO_RP1 gpio_rp1.c)
8282
zephyr_library_sources_ifdef(CONFIG_GPIO_RPI_PICO gpio_rpi_pico.c)
8383
zephyr_library_sources_ifdef(CONFIG_GPIO_RT1718S gpio_rt1718s.c)
8484
zephyr_library_sources_ifdef(CONFIG_GPIO_RT1718S gpio_rt1718s_port.c)
85+
zephyr_library_sources_ifdef(CONFIG_GPIO_RTS5912 gpio_rts5912.c)
8586
zephyr_library_sources_ifdef(CONFIG_GPIO_RV32M1 gpio_rv32m1.c)
8687
zephyr_library_sources_ifdef(CONFIG_GPIO_RZT2M gpio_rzt2m.c)
8788
zephyr_library_sources_ifdef(CONFIG_GPIO_SAM gpio_sam.c)

drivers/gpio/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ source "drivers/gpio/Kconfig.renesas_rz"
167167
source "drivers/gpio/Kconfig.rp1"
168168
source "drivers/gpio/Kconfig.rpi_pico"
169169
source "drivers/gpio/Kconfig.rt1718s"
170+
source "drivers/gpio/Kconfig.rts5912"
170171
source "drivers/gpio/Kconfig.rv32m1"
171172
source "drivers/gpio/Kconfig.rzt2m"
172173
source "drivers/gpio/Kconfig.sam"

drivers/gpio/Kconfig.rts5912

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
#
3+
# Copyright (c) 2024 Realtek Semiconductor Corporation, SIBG-SD7
4+
#
5+
6+
config GPIO_RTS5912
7+
bool "Realtek embedded controller (EC) gpio driver"
8+
default y if DT_HAS_REALTEK_RTS5912_GPIO_ENABLED
9+
help
10+
Enable support for Realtek GPIO controller.

0 commit comments

Comments
 (0)