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 05a91e020f3..f57da9fa69a 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 13dabc3f51c..0eb25c33a79 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 c076f906112..443d5beff37 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 0209fd845d9..a61266ffe67 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 94624c9a26e..dbeadaddfa2 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 9d464f48bb7..3ddf9a2b7e5 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 c02f544401d..2ac4880eb78 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 b3b317a6fb6..0f2101a5fe1 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 07c2e301944..1c5a08a3394 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 4b1e01274b4..e79114c54a1 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 afbec76d926..5d8c515c916 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 e8869c2ef89..2e8bdc9beb1 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 d30139b414c..fbd485efb19 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 6284ed3a372..78f4dd16e12 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 196e85cf02d..1c04bab441e 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 bc3dbed16bd..8b03d0de844 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.