1# PCA_SERIES GPIO configuration options
2
3# Copyright 2024 NXP
4# SPDX-License-Identifier: Apache-2.0
5
6menuconfig GPIO_PCA_SERIES
7	bool "PCA_SERIES I2C-based GPIO chip"
8	default y
9	depends on DT_HAS_NXP_PCA9538_ENABLED || DT_HAS_NXP_PCA9539_ENABLED || \
10			DT_HAS_NXP_PCA9554_ENABLED || DT_HAS_NXP_PCA9555_ENABLED || \
11			DT_HAS_NXP_PCAL6524_ENABLED || DT_HAS_NXP_PCAL6534_ENABLED
12	depends on I2C
13	help
14	  Enable driver for PCA_SERIES I2C-based GPIO chip.
15
16config GPIO_PCA_SERIES_INIT_PRIORITY
17	int "Init priority"
18	default 70
19	depends on GPIO_PCA_SERIES
20	help
21	  Device driver initialization priority.
22
23config GPIO_PCA_SERIES_INTERRUPT
24	bool "Interrupt enable"
25	default y
26	depends on GPIO_PCA_SERIES
27	help
28	  Enable interrupt support in PCA_SERIES driver.
29	  Note that the PCA_SERIES cannot reliably detect
30	  short-pulse interrupts due to its design.
31
32config GPIO_PCA_SERIES_CACHE_ALL
33	bool "Cache all registers"
34	default y
35	depends on GPIO_PCA_SERIES
36	help
37	  Cache all registers in RAM for faster configuration.
38	  Enabled by default.
39	  When disabled, only output registers will be cached.
40	  On devices w/o interrupt status, it will also cache
41	  input state.
42