[PATCH v1 1/2] pinctrl: qcom: Make pinctrl drivers default y based on architecture

Aswin Murugan
2025-12-22T11:52:26Z

All Qualcomm pinctrl drivers are already within a menu conditional on
ARCH_SNAPDRAGON || ARCH_IPQ40XX. Make them default y based on the
appropriate architecture to avoid having to manually enable each driver
in defconfig files.

Suggested-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Aswin Murugan <aswin.murugan@oss.qualcomm.com>
---
drivers/pinctrl/qcom/Kconfig | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)

diff --git a/drivers/pinctrl/qcom/Kconfig b/drivers/pinctrl/qcom/Kconfig
index 725200d94c8..283ca3c8813 100644
--- a/drivers/pinctrl/qcom/Kconfig
+++ b/drivers/pinctrl/qcom/Kconfig
@@ -8,6 +8,7 @@ menu "Qualcomm pinctrl drivers"

config PINCTRL_QCOM_APQ8016
bool "Qualcomm APQ8016 Pinctrl"
+ default y if ARCH_SNAPDRAGON
select PINCTRL_QCOM
help
Say Y here to enable support for pinctrl on the MSM8916 / APQ8016
@@ -15,6 +16,7 @@ config PINCTRL_QCOM_APQ8016

config PINCTRL_QCOM_APQ8096
bool "Qualcomm APQ8096 Pinctrl"
+ default y if ARCH_SNAPDRAGON
select PINCTRL_QCOM
help
Say Y here to enable support for pinctrl on the MSM8996 / APQ8096
@@ -22,6 +24,7 @@ config PINCTRL_QCOM_APQ8096

config PINCTRL_QCOM_IPQ4019
bool "Qualcomm IPQ4019 Pinctrl"
+ default y if ARCH_IPQ40XX
select PINCTRL_QCOM
help
Say Y here to enable support for pinctrl on the IPQ4019 SoC,
@@ -29,6 +32,7 @@ config PINCTRL_QCOM_IPQ4019

config PINCTRL_QCOM_IPQ5424
bool "Qualcomm IPQ5424 Pinctrl"
+ default y if ARCH_IPQ40XX
select PINCTRL_QCOM
help
Say Y here to enable support for pinctrl on the IPQ5424 SoC,
@@ -36,6 +40,7 @@ config PINCTRL_QCOM_IPQ5424

config PINCTRL_QCOM_IPQ9574
bool "Qualcomm IPQ9574 Pinctrl"
+ default y if ARCH_IPQ40XX
select PINCTRL_QCOM
help
Say Y here to enable support for pinctrl on the IPQ9574 SoC,
@@ -43,6 +48,7 @@ config PINCTRL_QCOM_IPQ9574

config PINCTRL_QCOM_QCM2290
bool "Qualcomm QCM2290 Pinctrl"
+ default y if ARCH_SNAPDRAGON
select PINCTRL_QCOM
help
Say Y here to enable support for pinctrl on the Snapdragon QCM2290 SoC,
@@ -50,6 +56,7 @@ config PINCTRL_QCOM_QCM2290

config PINCTRL_QCOM_QCS404
bool "Qualcomm QCS404 Pinctrl"
+ default y if ARCH_SNAPDRAGON
select PINCTRL_QCOM
help
Say Y here to enable support for pinctrl on the Snapdragon QCS404 SoC,
@@ -57,6 +64,7 @@ config PINCTRL_QCOM_QCS404

config PINCTRL_QCOM_QCS615
bool "Qualcomm QCS615 Pinctrl"
+ default y if ARCH_SNAPDRAGON
select PINCTRL_QCOM
help
Say Y here to enable support for pinctrl on the Snapdragon QCS615 SoC,
@@ -64,6 +72,7 @@ config PINCTRL_QCOM_QCS615

config PINCTRL_QCOM_SA8775P
bool "Qualcomm SA8775P Pinctrl"
+ default y if ARCH_SNAPDRAGON
select PINCTRL_QCOM
help
Say Y here to enable support for pinctrl on the Snapdragon SA8775P SoC,
@@ -71,12 +80,14 @@ config PINCTRL_QCOM_SA8775P

config PINCTRL_QCOM_SC7280
bool "Qualcomm SC7280/QCM6490 Pinctrl"
+ default y if ARCH_SNAPDRAGON
select PINCTRL_QCOM
help
Say Y here to enable support for pinctrl on the Snapdragon SC7280 SoC,

config PINCTRL_QCOM_SDM670
bool "Qualcomm SDM670 Pinctrl"
+ default y if ARCH_SNAPDRAGON
select PINCTRL_QCOM
help
Say Y here to enable support for pinctrl on the Snapdragon SDM670 SoC,
@@ -84,6 +95,7 @@ config PINCTRL_QCOM_SDM670

config PINCTRL_QCOM_SDM660
bool "Qualcomm SDM630/660 Pinctrl"
+ default y if ARCH_SNAPDRAGON
select PINCTRL_QCOM
help
Say Y here to enable support for pinctrl on the Snapdragon 630/636/660
@@ -91,6 +103,7 @@ config PINCTRL_QCOM_SDM660

config PINCTRL_QCOM_SDM845
bool "Qualcomm SDM845 Pinctrl"
+ default y if ARCH_SNAPDRAGON
select PINCTRL_QCOM
help
Say Y here to enable support for pinctrl on the Snapdragon 845 SoC,
@@ -98,6 +111,7 @@ config PINCTRL_QCOM_SDM845

config PINCTRL_QCOM_SM6115
bool "Qualcomm SM6115 Pinctrl"
+ default y if ARCH_SNAPDRAGON
select PINCTRL_QCOM
help
Say Y here to enable support for pinctrl on the Snapdragon SM6115 SoC,
@@ -105,12 +119,14 @@ config PINCTRL_QCOM_SM6115

config PINCTRL_QCOM_SM6350
bool "Qualcomm SM6350 Pinctrl"
+ default y if ARCH_SNAPDRAGON
select PINCTRL_QCOM
help
Say Y here to enable support for pinctrl on the Snapdragon SM6350 SoC,

config PINCTRL_QCOM_SM7150
bool "Qualcomm SM7150 GCC"
+ default y if ARCH_SNAPDRAGON
select PINCTRL_QCOM
help
Say Y here to enable support for pinctrl on the Snapdragon SM7150 SoC,
@@ -118,6 +134,7 @@ config PINCTRL_QCOM_SM7150

config PINCTRL_QCOM_SM8150
bool "Qualcomm SM8150 Pinctrl"
+ default y if ARCH_SNAPDRAGON
select PINCTRL_QCOM
help
Say Y here to enable support for pinctrl on the Snapdragon SM8150 SoC,
@@ -125,6 +142,7 @@ config PINCTRL_QCOM_SM8150

config PINCTRL_QCOM_SM8250
bool "Qualcomm SM8250 Pinctrl"
+ default y if ARCH_SNAPDRAGON
select PINCTRL_QCOM
help
Say Y here to enable support for pinctrl on the Snapdragon SM8250 SoC,
@@ -132,6 +150,7 @@ config PINCTRL_QCOM_SM8250

config PINCTRL_QCOM_SM8550
bool "Qualcomm SM8550 Pinctrl"
+ default y if ARCH_SNAPDRAGON
select PINCTRL_QCOM
help
Say Y here to enable support for pinctrl on the Snapdragon SM8550 SoC,
@@ -139,6 +158,7 @@ config PINCTRL_QCOM_SM8550

config PINCTRL_QCOM_SM8650
bool "Qualcomm SM8650 Pinctrl"
+ default y if ARCH_SNAPDRAGON
select PINCTRL_QCOM
help
Say Y here to enable support for pinctrl on the Snapdragon SM8650 SoC,
@@ -146,6 +166,7 @@ config PINCTRL_QCOM_SM8650

config PINCTRL_QCOM_X1E80100
bool "Qualcomm X1E80100 Pinctrl"
+ default y if ARCH_SNAPDRAGON
select PINCTRL_QCOM
help
Say Y here to enable support for pinctrl on the Snapdragon X1E80100 SoC,
--
2.34.1