Skip to content

Silabs gpio driver #92824

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions drivers/gpio/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ zephyr_library_sources_ifdef(CONFIG_GPIO_SAM4L gpio_sam4l.c)
zephyr_library_sources_ifdef(CONFIG_GPIO_SEDI gpio_sedi.c)
zephyr_library_sources_ifdef(CONFIG_GPIO_SI32 gpio_si32.c)
zephyr_library_sources_ifdef(CONFIG_GPIO_SIFIVE gpio_sifive.c)
zephyr_library_sources_ifdef(CONFIG_GPIO_SILABS gpio_silabs.c)
zephyr_library_sources_ifdef(CONFIG_GPIO_SILABS_SIWX91X gpio_silabs_siwx91x.c)
zephyr_library_sources_ifdef(CONFIG_GPIO_SILABS_SIWX91X_UULP gpio_silabs_siwx91x_uulp.c)
zephyr_library_sources_ifdef(CONFIG_GPIO_SMARTBOND gpio_smartbond.c)
Expand Down
1 change: 1 addition & 0 deletions drivers/gpio/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ source "drivers/gpio/Kconfig.sc18im704"
source "drivers/gpio/Kconfig.sedi"
source "drivers/gpio/Kconfig.si32"
source "drivers/gpio/Kconfig.sifive"
source "drivers/gpio/Kconfig.silabs"
source "drivers/gpio/Kconfig.siwx91x"
source "drivers/gpio/Kconfig.smartbond"
source "drivers/gpio/Kconfig.sn74hc595"
Expand Down
19 changes: 19 additions & 0 deletions drivers/gpio/Kconfig.silabs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright (c) 2025 Silicon Laboratories Inc.
# SPDX-License-Identifier: Apache-2.0

menuconfig GPIO_SILABS
bool "Silabs GPIO driver"
default n
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just see it but normally it was set to "y" by default (look at other)

Copy link
Contributor Author

@fimohame fimohame Jul 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should be keeping it as n unless we update the Kconfig under soc to select SILABS_SISDK_GPIO for series 2 boards. It would thrown an error of redefinition. Twister build would fail.

depends on DT_HAS_SILABS_GPIO_ENABLED
select SILABS_SISDK_GPIO
help
Enable the Silabs gpio driver.

if GPIO_SILABS

config GPIO_SILABS_COMMON_INIT_PRIORITY
int "Common initialization priority"
depends on GPIO_SILABS
default 39

endif # GPIO_SILABS
Loading