File tree Expand file tree Collapse file tree 5 files changed +723
-0
lines changed Expand file tree Collapse file tree 5 files changed +723
-0
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ zephyr_library_sources_ifdef(CONFIG_GPIO_LPC11U6X gpio_lpc11u6x.c)
34
34
zephyr_library_sources_ifdef(CONFIG_GPIO_XLNX_AXI gpio_xlnx_axi.c)
35
35
zephyr_library_sources_ifdef(CONFIG_GPIO_NPCX gpio_npcx.c)
36
36
zephyr_library_sources_ifdef(CONFIG_GPIO_EMUL gpio_emul.c)
37
+ zephyr_library_sources_ifdef(CONFIG_GPIO_PCAL6408A gpio_pcal6408a.c)
37
38
38
39
zephyr_library_sources_ifdef(CONFIG_GPIO_SHELL gpio_shell.c)
39
40
Original file line number Diff line number Diff line change @@ -83,4 +83,6 @@ source "drivers/gpio/Kconfig.npcx"
83
83
84
84
source "drivers/gpio/Kconfig.emul"
85
85
86
+ source "drivers/gpio/Kconfig.pcal6408a"
87
+
86
88
endif # GPIO
Original file line number Diff line number Diff line change
1
+ # PCAL6408a GPIO configuration options
2
+
3
+ # Copyright (c) 2021 Nordic Semiconductor ASA
4
+ # SPDX-License-Identifier: Apache-2.0
5
+
6
+ # Workaround for not being able to have commas in macro arguments
7
+ DT_COMPAT_NXP_PCAL6408A := nxp,pcal6408a
8
+
9
+ menuconfig GPIO_PCAL6408A
10
+ bool "PCAL6408A I2C GPIO chip"
11
+ default $(dt_compat_enabled,$(DT_COMPAT_NXP_PCAL6408A))
12
+ depends on I2C
13
+ help
14
+ Enable driver for PCAL6408A I2C GPIO chip.
15
+
16
+ config GPIO_PCAL6408A_INIT_PRIORITY
17
+ int "Init priority"
18
+ default 70
19
+ depends on GPIO_PCAL6408A
20
+ help
21
+ Device driver initialization priority.
You can’t perform that action at this time.
0 commit comments