From 69e85b25fe7f17ef0ace4f5f55b2b3c2778a73b8 Mon Sep 17 00:00:00 2001 From: Jun Lin Date: Fri, 1 Nov 2024 16:40:27 +0800 Subject: [PATCH] board: npcx: remove CONFIG_PINCTRL from defconfig of npcx boards The CONFIG_PINCTRL is removed from the board's defconfig files. Drivers which use pin control function should add "select PINCTRL" in their Kconfig files. Fixes #78619 Signed-off-by: Jun Lin --- boards/nuvoton/npcx4m8f_evb/npcx4m8f_evb_defconfig | 3 --- boards/nuvoton/npcx7m6fb_evb/npcx7m6fb_evb_defconfig | 3 --- boards/nuvoton/npcx9m6f_evb/npcx9m6f_evb_defconfig | 3 --- drivers/adc/Kconfig.npcx | 1 + drivers/espi/Kconfig.npcx | 1 + drivers/flash/Kconfig.npcx_fiu | 1 + drivers/i2c/Kconfig.npcx | 1 + drivers/i3c/Kconfig.npcx | 1 + drivers/input/Kconfig.npcx | 1 + drivers/peci/Kconfig.npcx | 1 + drivers/ps2/Kconfig.npcx | 1 + drivers/pwm/Kconfig.npcx | 1 + drivers/sensor/nuvoton/nuvoton_tach_npcx/Kconfig | 1 + drivers/serial/Kconfig.npcx | 1 + drivers/spi/Kconfig.npcx | 1 + subsys/mgmt/ec_host_cmd/backends/Kconfig | 1 + 16 files changed, 13 insertions(+), 9 deletions(-) diff --git a/boards/nuvoton/npcx4m8f_evb/npcx4m8f_evb_defconfig b/boards/nuvoton/npcx4m8f_evb/npcx4m8f_evb_defconfig index 05a91e020f348f..f57da9fa69a721 100644 --- a/boards/nuvoton/npcx4m8f_evb/npcx4m8f_evb_defconfig +++ b/boards/nuvoton/npcx4m8f_evb/npcx4m8f_evb_defconfig @@ -26,9 +26,6 @@ CONFIG_UART_INTERRUPT_DRIVEN=y # GPIO Driver CONFIG_GPIO=y -# Pin Controller Driver -CONFIG_PINCTRL=y - # Console Driver CONFIG_CONSOLE=y CONFIG_UART_CONSOLE=y diff --git a/boards/nuvoton/npcx7m6fb_evb/npcx7m6fb_evb_defconfig b/boards/nuvoton/npcx7m6fb_evb/npcx7m6fb_evb_defconfig index 13dabc3f51c68c..0eb25c33a791e3 100644 --- a/boards/nuvoton/npcx7m6fb_evb/npcx7m6fb_evb_defconfig +++ b/boards/nuvoton/npcx7m6fb_evb/npcx7m6fb_evb_defconfig @@ -26,9 +26,6 @@ CONFIG_UART_INTERRUPT_DRIVEN=y # GPIO Driver CONFIG_GPIO=y -# Pin Controller Driver -CONFIG_PINCTRL=y - # Console Driver CONFIG_CONSOLE=y CONFIG_UART_CONSOLE=y diff --git a/boards/nuvoton/npcx9m6f_evb/npcx9m6f_evb_defconfig b/boards/nuvoton/npcx9m6f_evb/npcx9m6f_evb_defconfig index c076f906112247..443d5beff37e64 100644 --- a/boards/nuvoton/npcx9m6f_evb/npcx9m6f_evb_defconfig +++ b/boards/nuvoton/npcx9m6f_evb/npcx9m6f_evb_defconfig @@ -26,9 +26,6 @@ CONFIG_UART_INTERRUPT_DRIVEN=y # GPIO Driver CONFIG_GPIO=y -# Pin Controller Driver -CONFIG_PINCTRL=y - # Console Driver CONFIG_CONSOLE=y CONFIG_UART_CONSOLE=y diff --git a/drivers/adc/Kconfig.npcx b/drivers/adc/Kconfig.npcx index 0209fd845d976a..a61266ffe67677 100644 --- a/drivers/adc/Kconfig.npcx +++ b/drivers/adc/Kconfig.npcx @@ -7,6 +7,7 @@ config ADC_NPCX bool "Nuvoton NPCX embedded controller (EC) ADC driver" default y depends on DT_HAS_NUVOTON_NPCX_ADC_ENABLED + select PINCTRL help This option enables the ADC driver for NPCX family of processors. diff --git a/drivers/espi/Kconfig.npcx b/drivers/espi/Kconfig.npcx index 94624c9a26e131..dbeadaddfa2e68 100644 --- a/drivers/espi/Kconfig.npcx +++ b/drivers/espi/Kconfig.npcx @@ -8,6 +8,7 @@ config ESPI_NPCX default y depends on SOC_FAMILY_NPCX depends on DT_HAS_NUVOTON_NPCX_ESPI_ENABLED + select PINCTRL help This option enables the Intel Enhanced Serial Peripheral Interface (eSPI) for NPCX family of processors. diff --git a/drivers/flash/Kconfig.npcx_fiu b/drivers/flash/Kconfig.npcx_fiu index 9d464f48bb78c5..3ddf9a2b7e53fd 100644 --- a/drivers/flash/Kconfig.npcx_fiu +++ b/drivers/flash/Kconfig.npcx_fiu @@ -7,6 +7,7 @@ config FLASH_NPCX_FIU_QSPI bool "Nuvoton NPCX QSPI Bus Flash driver" default y depends on DT_HAS_NUVOTON_NPCX_FIU_QSPI_ENABLED + select PINCTRL help This option enables the QSPI Bus Flash driver for NPCX family of processors. diff --git a/drivers/i2c/Kconfig.npcx b/drivers/i2c/Kconfig.npcx index c02f544401d4a8..2ac4880eb78927 100644 --- a/drivers/i2c/Kconfig.npcx +++ b/drivers/i2c/Kconfig.npcx @@ -7,6 +7,7 @@ config I2C_NPCX bool "Nuvoton NPCX embedded controller (EC) I2C driver" default y depends on DT_HAS_NUVOTON_NPCX_I2C_PORT_ENABLED + select PINCTRL help This option enables the I2C driver for NPCX family of processors. diff --git a/drivers/i3c/Kconfig.npcx b/drivers/i3c/Kconfig.npcx index b3b317a6fb6ffc..0f2101a5fe1b5c 100644 --- a/drivers/i3c/Kconfig.npcx +++ b/drivers/i3c/Kconfig.npcx @@ -10,6 +10,7 @@ config I3C_NPCX depends on DT_HAS_NUVOTON_NPCX_I3C_ENABLED select RESET select I3C_IBI_WORKQUEUE if I3C_USE_IBI + select PINCTRL default y help This option enables the I3C driver for NPCX family of diff --git a/drivers/input/Kconfig.npcx b/drivers/input/Kconfig.npcx index 07c2e301944bdb..1c5a08a33946d9 100644 --- a/drivers/input/Kconfig.npcx +++ b/drivers/input/Kconfig.npcx @@ -8,6 +8,7 @@ config INPUT_NPCX_KBD default y depends on DT_HAS_NUVOTON_NPCX_KBD_ENABLED select INPUT_KBD_MATRIX + select PINCTRL help This option enables the keyboard scan driver for NPCX family of processors. diff --git a/drivers/peci/Kconfig.npcx b/drivers/peci/Kconfig.npcx index 4b1e01274b4f6e..e79114c54a10de 100644 --- a/drivers/peci/Kconfig.npcx +++ b/drivers/peci/Kconfig.npcx @@ -8,5 +8,6 @@ config PECI_NPCX default y depends on DT_HAS_NUVOTON_NPCX_PECI_ENABLED select PECI_INTERRUPT_DRIVEN + select PINCTRL help Enable the NPCX PECI IO driver. diff --git a/drivers/ps2/Kconfig.npcx b/drivers/ps2/Kconfig.npcx index afbec76d926533..5d8c515c916d75 100644 --- a/drivers/ps2/Kconfig.npcx +++ b/drivers/ps2/Kconfig.npcx @@ -6,6 +6,7 @@ menuconfig PS2_NPCX bool "Nuvoton NPCX embedded controller (EC) PS2 driver" depends on DT_HAS_NUVOTON_NPCX_PS2_CHANNEL_ENABLED + select PINCTRL default y help Enable the NPCX family PS2 driver. It provides four PS/2 channels. diff --git a/drivers/pwm/Kconfig.npcx b/drivers/pwm/Kconfig.npcx index e8869c2ef8900f..2e8bdc9beb1f03 100644 --- a/drivers/pwm/Kconfig.npcx +++ b/drivers/pwm/Kconfig.npcx @@ -7,6 +7,7 @@ config PWM_NPCX bool "Nuvoton NPCX embedded controller (EC) PWM driver" default y depends on DT_HAS_NUVOTON_NPCX_PWM_ENABLED + select PINCTRL help This option enables the PWM driver for NPCX family of processors. diff --git a/drivers/sensor/nuvoton/nuvoton_tach_npcx/Kconfig b/drivers/sensor/nuvoton/nuvoton_tach_npcx/Kconfig index d30139b414c100..fbd485efb197b0 100644 --- a/drivers/sensor/nuvoton/nuvoton_tach_npcx/Kconfig +++ b/drivers/sensor/nuvoton/nuvoton_tach_npcx/Kconfig @@ -8,5 +8,6 @@ config TACH_NPCX default y depends on DT_HAS_NUVOTON_NPCX_TACH_ENABLED depends on SOC_FAMILY_NPCX + select PINCTRL help Enable the "Nuvoton NPCX tachometer sensor. diff --git a/drivers/serial/Kconfig.npcx b/drivers/serial/Kconfig.npcx index 6284ed3a3728f4..78f4dd16e12a4f 100644 --- a/drivers/serial/Kconfig.npcx +++ b/drivers/serial/Kconfig.npcx @@ -11,6 +11,7 @@ config UART_NPCX depends on DT_HAS_NUVOTON_NPCX_UART_ENABLED select SERIAL_HAS_DRIVER select SERIAL_SUPPORT_INTERRUPT + select PINCTRL help This option enables the UART driver for NPCX family of processors. diff --git a/drivers/spi/Kconfig.npcx b/drivers/spi/Kconfig.npcx index 196e85cf02d8cc..1c04bab441e068 100644 --- a/drivers/spi/Kconfig.npcx +++ b/drivers/spi/Kconfig.npcx @@ -7,6 +7,7 @@ menuconfig SPI_NPCX_SPIP bool "Nuvoton NPCX embedded controller (EC) SPI driver" default y depends on DT_HAS_NUVOTON_NPCX_SPIP_ENABLED + select PINCTRL help Enable the SPI peripherals on NPCX MCU. diff --git a/subsys/mgmt/ec_host_cmd/backends/Kconfig b/subsys/mgmt/ec_host_cmd/backends/Kconfig index bc3dbed16bdc3c..8b03d0de844f60 100644 --- a/subsys/mgmt/ec_host_cmd/backends/Kconfig +++ b/subsys/mgmt/ec_host_cmd/backends/Kconfig @@ -55,6 +55,7 @@ config EC_HOST_CMD_BACKEND_SHI_NPCX bool "SHI by Nuvoton" depends on DT_HAS_NUVOTON_NPCX_SHI_ENABLED || \ DT_HAS_NUVOTON_NPCX_SHI_ENHANCED_ENABLED + select PINCTRL help This option enables the driver for SHI backend in the Nuvoton NPCX chip.