Skip to content

Commit 8165a93

Browse files
committed
drivers: gpio: add pcal9722 SPI GPIO expander driver
Adds a driver for NXP's PCAL9722 SPI GPIO expander Signed-off-by: Michael Estes <michael.estes@byteserv.io>
1 parent 1cfbc34 commit 8165a93

File tree

4 files changed

+530
-0
lines changed

4 files changed

+530
-0
lines changed

drivers/gpio/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ zephyr_library_sources_ifdef(CONFIG_GPIO_PCA6416 gpio_pca6416.c)
7878
zephyr_library_sources_ifdef(CONFIG_GPIO_PCA953X gpio_pca953x.c)
7979
zephyr_library_sources_ifdef(CONFIG_GPIO_PCA95XX gpio_pca95xx.c)
8080
zephyr_library_sources_ifdef(CONFIG_GPIO_PCAL64XXA gpio_pcal64xxa.c)
81+
zephyr_library_sources_ifdef(CONFIG_GPIO_PCAL9722 gpio_pcal9722.c)
8182
zephyr_library_sources_ifdef(CONFIG_GPIO_PCA_SERIES gpio_pca_series.c)
8283
zephyr_library_sources_ifdef(CONFIG_GPIO_PCF857X gpio_pcf857x.c)
8384
zephyr_library_sources_ifdef(CONFIG_GPIO_PSOC6 gpio_psoc6.c)

drivers/gpio/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ source "drivers/gpio/Kconfig.pca953x"
165165
source "drivers/gpio/Kconfig.pca95xx"
166166
source "drivers/gpio/Kconfig.pca_series"
167167
source "drivers/gpio/Kconfig.pcal64xxa"
168+
source "drivers/gpio/Kconfig.pcal9722"
168169
source "drivers/gpio/Kconfig.pcf857x"
169170
source "drivers/gpio/Kconfig.psoc6"
170171
source "drivers/gpio/Kconfig.rcar"

drivers/gpio/Kconfig.pcal9722

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# PCAL9722 GPIO configuration options
2+
3+
# Copyright 2025 Michael Estes
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
menuconfig GPIO_PCAL9722
7+
bool "PCAL9722 SPI GPIO chip"
8+
default y
9+
depends on DT_HAS_NXP_PCAL9722_ENABLED
10+
depends on SPI
11+
help
12+
Enable driver for PCAL9722 SPI GPIO chip.
13+
14+
if GPIO_PCAL9722
15+
16+
config GPIO_PCAL9722_INIT_PRIORITY
17+
int "Init priority"
18+
default 70
19+
help
20+
PCAL9722 Device driver initialization priority.
21+
22+
endif # GPIO_PCAL9722

0 commit comments

Comments
 (0)