drivers: pinctrl: Update drivers to use devicetree Kconfig symbol
Update pinctrl drivers to use DT_HAS_<compat>_ENABLED Kconfig symbol to expose the driver and enable it by default based on devicetree. We remove 'depend on' Kconfig for symbols that would be implied by the devicetree node existing. Signed-off-by: Kumar Gala <galak@kernel.org>
This commit is contained in:
parent
d8e0dd1804
commit
0fa7907f3e
|
@ -1,11 +1,9 @@
|
||||||
# Copyright (c) 2022 Telink Semiconductor
|
# Copyright (c) 2022 Telink Semiconductor
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
DT_COMPAT_TELINK_B91_PINCTRL := telink,b91-pinctrl
|
|
||||||
|
|
||||||
config PINCTRL_TELINK_B91
|
config PINCTRL_TELINK_B91
|
||||||
bool "Telink B91 pin controller driver"
|
bool "Telink B91 pin controller driver"
|
||||||
depends on SOC_RISCV_TELINK_B91
|
default y
|
||||||
default $(dt_compat_enabled,$(DT_COMPAT_TELINK_B91_PINCTRL))
|
depends on DT_HAS_TELINK_B91_PINCTRL_ENABLED
|
||||||
help
|
help
|
||||||
Enables Telink B91 pin controller driver
|
Enables Telink B91 pin controller driver
|
||||||
|
|
|
@ -1,11 +1,9 @@
|
||||||
# Copyright (c) 2022 Vaishnav Achath
|
# Copyright (c) 2022 Vaishnav Achath
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
DT_COMPAT_CC13XX_CC26XX_PINCTRL := ti,cc13xx-cc26xx-pinctrl
|
|
||||||
|
|
||||||
config PINCTRL_CC13XX_CC26XX
|
config PINCTRL_CC13XX_CC26XX
|
||||||
bool "TI SimpleLink CC13xx / CC26xx pinctrl driver"
|
bool "TI SimpleLink CC13xx / CC26xx pinctrl driver"
|
||||||
depends on SOC_SERIES_CC13X2_CC26X2
|
default y
|
||||||
default $(dt_compat_enabled,$(DT_COMPAT_CC13XX_CC26XX_PINCTRL))
|
depends on DT_HAS_TI_CC13XX_CC26XX_PINCTRL_ENABLED
|
||||||
help
|
help
|
||||||
Enable the TI SimpleLink CC13xx / CC26xx pinctrl driver
|
Enable the TI SimpleLink CC13xx / CC26xx pinctrl driver
|
||||||
|
|
|
@ -1,11 +1,9 @@
|
||||||
# Copyright (c) 2022 Espressif Systems (Shanghai) Co., Ltd.
|
# Copyright (c) 2022 Espressif Systems (Shanghai) Co., Ltd.
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
DT_COMPAT_ESP32_PINCTRL := espressif,esp32-pinctrl
|
|
||||||
|
|
||||||
config PINCTRL_ESP32
|
config PINCTRL_ESP32
|
||||||
bool "ESP32 pin controller"
|
bool "ESP32 pin controller"
|
||||||
depends on SOC_ESP32 || SOC_ESP32S2 || SOC_ESP32C3
|
default y
|
||||||
default $(dt_compat_enabled,$(DT_COMPAT_ESP32_PINCTRL))
|
depends on DT_HAS_ESPRESSIF_ESP32_PINCTRL_ENABLED
|
||||||
help
|
help
|
||||||
Enables ESP32 pin controller
|
Enables ESP32 pin controller
|
||||||
|
|
|
@ -1,21 +1,18 @@
|
||||||
# Copyright (c) 2021 Teslabs Engineering S.L.
|
# Copyright (c) 2021 Teslabs Engineering S.L.
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
DT_COMPAT_GIGADEVICE_GD32_PINCTRL_AF := gd,gd32-pinctrl-af
|
|
||||||
DT_COMPAT_GIGADEVICE_GD32_PINCTRL_AFIO := gd,gd32-pinctrl-afio
|
|
||||||
|
|
||||||
config PINCTRL_GD32_AF
|
config PINCTRL_GD32_AF
|
||||||
bool "GD32 AF pin controller driver"
|
bool "GD32 AF pin controller driver"
|
||||||
depends on GD32_HAS_AF_PINMUX
|
default y
|
||||||
default $(dt_compat_enabled,$(DT_COMPAT_GIGADEVICE_GD32_PINCTRL_AF))
|
depends on DT_HAS_GD_GD32_PINCTRL_AF_ENABLED
|
||||||
help
|
help
|
||||||
GD32 AF pin controller driver. This driver is used by series using the
|
GD32 AF pin controller driver. This driver is used by series using the
|
||||||
AF pin multiplexing model.
|
AF pin multiplexing model.
|
||||||
|
|
||||||
config PINCTRL_GD32_AFIO
|
config PINCTRL_GD32_AFIO
|
||||||
bool "GD32 AFIO pin controller driver"
|
bool "GD32 AFIO pin controller driver"
|
||||||
depends on GD32_HAS_AFIO_PINMUX
|
default y
|
||||||
default $(dt_compat_enabled,$(DT_COMPAT_GIGADEVICE_GD32_PINCTRL_AFIO))
|
depends on DT_HAS_GD_GD32_PINCTRL_AFIO_ENABLED
|
||||||
help
|
help
|
||||||
GD32 AFIO pin controller driver. This driver is used by series using the
|
GD32 AFIO pin controller driver. This driver is used by series using the
|
||||||
AFIO pin multiplexing model.
|
AFIO pin multiplexing model.
|
||||||
|
|
|
@ -1,11 +1,9 @@
|
||||||
# Copyright (c) 2022 ITE Corporation. All Rights Reserved.
|
# Copyright (c) 2022 ITE Corporation. All Rights Reserved.
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
DT_COMPAT_ITE_IT8XXX2_PINCTRL := ite,it8xxx2-pinctrl
|
|
||||||
|
|
||||||
config PINCTRL_ITE_IT8XXX2
|
config PINCTRL_ITE_IT8XXX2
|
||||||
bool "ITE IT8XXX2 pin controller driver"
|
bool "ITE IT8XXX2 pin controller driver"
|
||||||
depends on SOC_FAMILY_RISCV_ITE
|
default y
|
||||||
default $(dt_compat_enabled,$(DT_COMPAT_ITE_IT8XXX2_PINCTRL))
|
depends on DT_HAS_ITE_IT8XXX2_PINCTRL_FUNC_ENABLED
|
||||||
help
|
help
|
||||||
Enable IT8XXX2 pin controller driver.
|
Enable IT8XXX2 pin controller driver.
|
||||||
|
|
|
@ -1,11 +1,9 @@
|
||||||
# Copyright (c) 2022 NXP
|
# Copyright (c) 2022 NXP
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
DT_COMPAT_NXP_KINETIS_PINCTRL := nxp,kinetis-pinctrl
|
|
||||||
|
|
||||||
config PINCTRL_NXP_KINETIS
|
config PINCTRL_NXP_KINETIS
|
||||||
bool "Pin controller driver for NXP Kinetis MCUs"
|
bool "Pin controller driver for NXP Kinetis MCUs"
|
||||||
depends on SOC_FAMILY_KINETIS
|
default y
|
||||||
default $(dt_compat_enabled,$(DT_COMPAT_NXP_KINETIS_PINCTRL))
|
depends on DT_HAS_NXP_KINETIS_PINMUX_ENABLED
|
||||||
help
|
help
|
||||||
Enable pin controller driver for NXP Kinetis MCUs
|
Enable pin controller driver for NXP Kinetis MCUs
|
||||||
|
|
|
@ -1,15 +1,11 @@
|
||||||
# Copyright 2022, NXP
|
# Copyright 2022, NXP
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
DT_COMPAT_NXP_LPC_PINCTRL := nxp,lpc-iocon-pinctrl
|
|
||||||
DT_COMPAT_NXP_LPC_11U6X_PINCTRL := nxp,lpc11u6x-pinctrl
|
|
||||||
DT_COMPAT_NXP_RT_PINCTRL := nxp,rt-iocon-pinctrl
|
|
||||||
|
|
||||||
config PINCTRL_NXP_IOCON
|
config PINCTRL_NXP_IOCON
|
||||||
bool "IOCON Pin controller driver for NXP LPC MCUs"
|
bool "IOCON Pin controller driver for NXP LPC MCUs"
|
||||||
depends on SOC_FAMILY_LPC || SOC_SERIES_IMX_RT6XX || SOC_SERIES_IMX_RT5XX
|
default y
|
||||||
default $(dt_compat_enabled,$(DT_COMPAT_NXP_LPC_PINCTRL)) || \
|
depends on DT_HAS_NXP_LPC_IOCON_PINCTRL_ENABLED || \
|
||||||
$(dt_compat_enabled,$(DT_COMPAT_NXP_RT_PINCTRL)) || \
|
DT_HAS_NXP_LPC11U6X_PINCTRL_ENABLED || \
|
||||||
$(dt_compat_enabled,$(DT_COMPAT_NXP_LPC_11U6X_PINCTRL))
|
DT_HAS_NXP_RT_IOCON_PINCTRL_ENABLED
|
||||||
help
|
help
|
||||||
Enable pin controller driver for NXP LPC MCUs
|
Enable pin controller driver for NXP LPC MCUs
|
||||||
|
|
|
@ -3,12 +3,11 @@
|
||||||
# Copyright (c) 2022 Nuvoton Technology Corporation.
|
# Copyright (c) 2022 Nuvoton Technology Corporation.
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
DT_COMPAT_ST_PINCTRL_NPCX := nuvoton,npcx-pinctrl
|
|
||||||
|
|
||||||
config PINCTRL_NPCX
|
config PINCTRL_NPCX
|
||||||
bool "Nuvoton NPCX embedded controller (EC) pin controller driver"
|
bool "Nuvoton NPCX embedded controller (EC) pin controller driver"
|
||||||
depends on SOC_FAMILY_NPCX
|
default y
|
||||||
default $(dt_compat_enabled,$(DT_COMPAT_ST_PINCTRL_NPCX))
|
depends on DT_HAS_NUVOTON_NPCX_PINCTRL_ENABLED
|
||||||
help
|
help
|
||||||
This option enables the pin controller driver for NPCX family of
|
This option enables the pin controller driver for NPCX family of
|
||||||
processors.
|
processors.
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
|
|
||||||
config PINCTRL_NRF
|
config PINCTRL_NRF
|
||||||
bool "nRF pin controller driver"
|
bool "nRF pin controller driver"
|
||||||
depends on SOC_FAMILY_NRF
|
|
||||||
select PINCTRL_STORE_REG
|
|
||||||
default y
|
default y
|
||||||
|
depends on DT_HAS_NORDIC_NRF_PINCTRL_ENABLED
|
||||||
|
select PINCTRL_STORE_REG
|
||||||
help
|
help
|
||||||
nRF pin controller driver
|
nRF pin controller driver
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
config PINCTRL_RCAR_PFC
|
config PINCTRL_RCAR_PFC
|
||||||
bool "Pin controller driver for Renesas RCar SoC"
|
bool "Pin controller driver for Renesas RCar SoC"
|
||||||
depends on SOC_FAMILY_RCAR
|
|
||||||
default y
|
default y
|
||||||
|
depends on DT_HAS_RENESAS_RCAR_PFC_ENABLED
|
||||||
help
|
help
|
||||||
Enable pin controller driver for Renesas RCar SoC
|
Enable pin controller driver for Renesas RCar SoC
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
# Copyright (c) 2021 Yonatan Schachter
|
# Copyright (c) 2021 Yonatan Schachter
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
DT_COMPAT_RPI_PICO_PINCTRL := raspberrypi,pico-pinctrl
|
|
||||||
|
|
||||||
config PINCTRL_RPI_PICO
|
config PINCTRL_RPI_PICO
|
||||||
bool "RaspberryPi Pico pin controller driver"
|
bool "RaspberryPi Pico pin controller driver"
|
||||||
depends on SOC_FAMILY_RPI_PICO
|
default y
|
||||||
default $(dt_compat_enabled,$(DT_COMPAT_RPI_PICO_PINCTRL))
|
depends on DT_HAS_RASPBERRYPI_PICO_PINCTRL_ENABLED
|
||||||
select PICOSDK_USE_GPIO
|
select PICOSDK_USE_GPIO
|
||||||
help
|
help
|
||||||
RaspberryPi Pico pinctrl driver
|
RaspberryPi Pico pinctrl driver
|
||||||
|
|
|
@ -1,11 +1,9 @@
|
||||||
# Copyright (c) 2022 Henrik Brix Andersen <henrik@brixandersen.dk>
|
# Copyright (c) 2022 Henrik Brix Andersen <henrik@brixandersen.dk>
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
DT_COMPAT_OPENISA_RV32M1_PINCTRL := openisa,rv32m1-pinctrl
|
|
||||||
|
|
||||||
config PINCTRL_RV32M1
|
config PINCTRL_RV32M1
|
||||||
bool "RV32M1 pin controller driver"
|
bool "RV32M1 pin controller driver"
|
||||||
depends on SOC_OPENISA_RV32M1_RISCV32
|
default y
|
||||||
default $(dt_compat_enabled,$(DT_COMPAT_OPENISA_RV32M1_PINCTRL))
|
depends on DT_HAS_OPENISA_RV32M1_PINMUX_ENABLED
|
||||||
help
|
help
|
||||||
Enable the RV32M1 pin controller driver.
|
Enable the RV32M1 pin controller driver.
|
||||||
|
|
|
@ -1,11 +1,9 @@
|
||||||
# Copyright (c) 2022, Gerson Fernando Budke <nandojve@gmail.com>
|
# Copyright (c) 2022, Gerson Fernando Budke <nandojve@gmail.com>
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
DT_COMPAT_ATMEL_SAM_PINCTRL := atmel,sam-pinctrl
|
|
||||||
|
|
||||||
config PINCTRL_SAM
|
config PINCTRL_SAM
|
||||||
bool "Atmel SAM pin controller driver"
|
bool "Atmel SAM pin controller driver"
|
||||||
depends on SOC_FAMILY_SAM
|
default y
|
||||||
default $(dt_compat_enabled,$(DT_COMPAT_ATMEL_SAM_PINCTRL))
|
depends on DT_HAS_ATMEL_SAM_PINCTRL_ENABLED
|
||||||
help
|
help
|
||||||
Atmel pin controller driver is used on SAM and SAM4L SoC series
|
Atmel pin controller driver is used on SAM and SAM4L SoC series
|
||||||
|
|
|
@ -1,11 +1,9 @@
|
||||||
# Copyright (c) 2022, Gerson Fernando Budke <nandojve@gmail.com>
|
# Copyright (c) 2022, Gerson Fernando Budke <nandojve@gmail.com>
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
DT_COMPAT_ATMEL_SAM0_PINCTRL := atmel,sam0-pinctrl
|
|
||||||
|
|
||||||
config PINCTRL_SAM0
|
config PINCTRL_SAM0
|
||||||
bool "Atmel SAM0 pin controller driver"
|
bool "Atmel SAM0 pin controller driver"
|
||||||
depends on SOC_FAMILY_SAM0
|
default y
|
||||||
default $(dt_compat_enabled,$(DT_COMPAT_ATMEL_SAM0_PINCTRL))
|
depends on DT_HAS_ATMEL_SAM0_PINCTRL_ENABLED
|
||||||
help
|
help
|
||||||
Atmel pin controller driver is used on SAM0 SoC series
|
Atmel pin controller driver is used on SAM0 SoC series
|
||||||
|
|
|
@ -1,11 +1,9 @@
|
||||||
# Copyright (c) 2022 Antmicro <www.antmicro.com>
|
# Copyright (c) 2022 Antmicro <www.antmicro.com>
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
DT_COMPAT_SIFIVE_PINCTRL := sifive,pinctrl
|
|
||||||
|
|
||||||
config PINCTRL_SIFIVE
|
config PINCTRL_SIFIVE
|
||||||
bool "SiFive Freedom SoC pinmux driver"
|
bool "SiFive Freedom SoC pinmux driver"
|
||||||
depends on SOC_SERIES_RISCV_SIFIVE_FREEDOM
|
default y
|
||||||
default $(dt_compat_enabled,$(DT_COMPAT_SIFIVE_PINCTRL))
|
depends on DT_HAS_SIFIVE_PINCTRL_ENABLED
|
||||||
help
|
help
|
||||||
Enable driver for the SiFive Freedom SoC pinctrl driver
|
Enable driver for the SiFive Freedom SoC pinctrl driver
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
|
|
||||||
config PINCTRL_STM32
|
config PINCTRL_STM32
|
||||||
bool "Pin controller driver for STM32 MCUs"
|
bool "Pin controller driver for STM32 MCUs"
|
||||||
depends on SOC_FAMILY_STM32
|
|
||||||
default y
|
default y
|
||||||
|
depends on DT_HAS_ST_STM32_PINCTRL_ENABLED || DT_HAS_ST_STM32F1_PINCTRL_ENABLED
|
||||||
help
|
help
|
||||||
Enable pin controller driver for STM32 MCUs
|
Enable pin controller driver for STM32 MCUs
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,9 @@
|
||||||
# Copyright (c) 2021 Microchip Technology Inc.
|
# Copyright (c) 2021 Microchip Technology Inc.
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
DT_COMPAT_ST_PINCTRL_XEC := microchip,xec-pinctrl
|
|
||||||
|
|
||||||
config PINCTRL_MCHP_XEC
|
config PINCTRL_MCHP_XEC
|
||||||
bool "Pin controller driver for MCHP XEC MCUs"
|
bool "Pin controller driver for MCHP XEC MCUs"
|
||||||
depends on SOC_SERIES_MEC172X
|
default y
|
||||||
default $(dt_compat_enabled,$(DT_COMPAT_ST_PINCTRL_XEC))
|
depends on DT_HAS_MICROCHIP_XEC_PINCTRL_ENABLED
|
||||||
help
|
help
|
||||||
Enable pin controller driver for Microchip XEC MCUs
|
Enable pin controller driver for Microchip XEC MCUs
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
# Copyright (c) 2022 Henrik Brix Andersen <henrik@brixandersen.dk>
|
# Copyright (c) 2022 Henrik Brix Andersen <henrik@brixandersen.dk>
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
DT_COMPAT_XLNX_PINCTRL_ZYNQ := xlnx,pinctrl-zynq
|
|
||||||
|
|
||||||
config PINCTRL_XLNX_ZYNQ
|
config PINCTRL_XLNX_ZYNQ
|
||||||
bool "Xilinx Zynq 7000 processor system MIO pin controller driver"
|
bool "Xilinx Zynq 7000 processor system MIO pin controller driver"
|
||||||
depends on SOC_FAMILY_XILINX_ZYNQ7000
|
default y
|
||||||
default $(dt_compat_enabled,$(DT_COMPAT_XLNX_PINCTRL_ZYNQ))
|
depends on DT_HAS_XLNX_PINCTRL_ZYNQ_ENABLED
|
||||||
select SYSCON
|
select SYSCON
|
||||||
help
|
help
|
||||||
Enable the Xilinx Zynq 7000 processor system MIO pin controller driver.
|
Enable the Xilinx Zynq 7000 processor system MIO pin controller driver.
|
||||||
|
|
Loading…
Reference in a new issue