Skip to contentSkip to conversation

clk: qcom: Unify KConfig choices between clk, pinctrl and interconnect

PATCH In review Krzysztof Kozlowski 3 participants 13 messages Nov 23

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

v2 cover clk: qcom: Unify KConfig choices between clk, pinctrl and interconnect

Changes in v2:
- Patch #4: Restrict msm8996 to arm64 only, a few more drivers for both
msm8996 and sar2130p
- Link to v1: https://patch.msgid.link/[email protected]

Recent commits adding defaults to clock, pinctrl and interconnect drivers left a options inconsistent between them, e.g. SDX65 clock driver not enabled by default but its pin controller enabled. This should be a consistent choice - we want by default all critical drivers enabled.

There will be separate patches for pinctrl and interconnect.

Best regards,
Krzysztof

---
Krzysztof Kozlowski (4):
clk: qcom: Enable MSM8917 GCC by default
clk: qcom: Consistently enable MSM8939, MDM9615, SAR2130P and SDX65
clk: qcom: Drop redundant ARM and ARM64 dependency on IPQ_GCC_5018
clk: qcom: Consistently handle MSM8996 and SAR2130P

 drivers/clk/qcom/Kconfig | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

---
base-commit: ddeca928793056a8ffc0e3e107722c25e1836eac
change-id: 20261121-qcom-kconfig-unify-e3ee55b92792

Best regards,

Signature · 1 line
Krzysztof Kozlowski <[email protected]>
#1 lore raw

PATCH v2 1/4 clk: qcom: Enable MSM8917 GCC by default

MSM8917 is an in-tree supported SoC, so its critical clock controller driver should be enabled by default.

---
 drivers/clk/qcom/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/clk/qcom/Kconfig +1 -0
index e6c58e8b1849..91e774dada4b 100644
@@ -797,6 +797,7 @@ config MSM_GCC_8917
 	tristate "MSM89(17/37/40)/QM215/SDM439 Global Clock Controller"
 	depends on ARM64 || COMPILE_TEST
 	select QCOM_GDSC
+	default ARCH_QCOM
 	help
 	  Support for the global clock controller on msm8917, msm8937,
 	  msm8940, qm215 and sdm439 devices.
Signature · 1 line
2.53.0
#4 lore raw

PATCH v2 2/4 clk: qcom: Consistently enable MSM8939, MDM9615, SAR2130P and SDX65

In reply to Krzysztof Kozlowski

Critical drivers for MSM8939, MDM9615, SAR2130P and SDX65, like pin controller and interconnect, are already enabled by default, so should be the clock controller drivers as well.

---
 drivers/clk/qcom/Kconfig | 5 +++++
 1 file changed, 5 insertions(+)
drivers/clk/qcom/Kconfig +5 -0
index 91e774dada4b..757f52910f94 100644
@@ -807,6 +807,7 @@ config MSM_GCC_8917
 config MSM_GCC_8939
 	tristate "MSM8939 Global Clock Controller"
 	select QCOM_GDSC
+	default ARCH_QCOM if ARM64
 	help
 	  Support for the global clock controller on msm8939 devices.
 	  Say Y if you want to use devices such as UART, SPI i2c, USB,
@@ -852,6 +853,7 @@ config MDM_GCC_9607
 config MDM_GCC_9615
 	tristate "MDM9615 Global Clock Controller"
 	depends on ARM || COMPILE_TEST
+	default ARCH_QCOM
 	help
 	  Support for the global clock controller on mdm9615 devices.
 	  Say Y if you want to use peripheral devices such as UART, SPI,
@@ -1189,6 +1191,7 @@ config SAR_GCC_2130P
 	tristate "SAR2130P Global Clock Controller"
 	select QCOM_GDSC
 	depends on COMMON_CLK_QCOM
+	default ARCH_QCOM
 	help
 	  Support for the global clock controller on SAR2130P devices.
 	  Say Y if you want to use peripheral devices such as UART, SPI,
@@ -1198,6 +1201,7 @@ config SAR_GPUCC_2130P
 	tristate "SAR2130P Graphics clock controller"
 	select QCOM_GDSC
 	select SAR_GCC_2130P
+	default m if ARCH_QCOM
 	help
 	  Support for the graphics clock controller on SAR2130P devices.
 	  Say Y if you want to support graphics controller devices and
@@ -1480,6 +1484,7 @@ config SDX_GCC_65
 	tristate "SDX65 Global Clock Controller"
 	depends on ARM || COMPILE_TEST
 	select QCOM_GDSC
+	default ARCH_QCOM
 	help
 	  Support for the global clock controller on SDX65 devices.
 	  Say Y if you want to use peripheral devices such as UART,
Signature · 1 line
2.53.0
Reviewed-by on v2 2/4
#5 lore raw

Re: [PATCH v2 2/4] clk: qcom: Consistently enable MSM8939, MDM9615, SAR2130P and SDX65

Quoted 6 lines · Krzysztof Kozlowski

Critical drivers for MSM8939, MDM9615, SAR2130P and SDX65, like pin controller and interconnect, are already enabled by default, so should be the clock controller drivers as well.

---

Konrad

#7 lore raw

PATCH v2 3/4 clk: qcom: Drop redundant ARM and ARM64 dependency on IPQ_GCC_5018

In reply to Krzysztof Kozlowski

All Qualcomm clock controller CONFIG entries depend on ARCH_QCOM which is ARM and ARM64 platform, thus additional depends for IPQ5018 is redundant.

---
 drivers/clk/qcom/Kconfig | 1 -
 1 file changed, 1 deletion(-)
drivers/clk/qcom/Kconfig +0 -1
index 757f52910f94..6ddfa451ad55 100644
@@ -643,7 +643,6 @@ config IPQ_GCC_4019
 
 config IPQ_GCC_5018
 	tristate "IPQ5018 Global Clock Controller"
-	depends on ARM || ARM64 || COMPILE_TEST
 	default ARCH_QCOM && ARM64
 	help
 	  Support for global clock controller on ipq5018 devices.
Signature · 1 line
2.53.0
#10 lore raw

PATCH v2 4/4 clk: qcom: Consistently handle MSM8996 and SAR2130P

In reply to Krzysztof Kozlowski

Restrict Qualcomm SoC clock controller drivers to ARM64 in a consistent way with other critical drivers (pin controllers, interconnects):

1. SAR2130P SoC has only ARM64 DTS user and other drivers are already restricted to ARM64 only.

2. MSM8996 APCC driver selects QCOM_KRYO_L2_ACCESSORS, which is available only for ARM64, thus reasonably this platform won't be ever used on ARM 32-bit builds.

---
 drivers/clk/qcom/Kconfig | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
drivers/clk/qcom/Kconfig +6 -2
index 6ddfa451ad55..05aa3b468812 100644
@@ -927,8 +927,9 @@ config MSM_GCC_8994
 
 config MSM_GCC_8996
 	tristate "MSM8996 Global Clock Controller"
+	depends on ARM64 || COMPILE_TEST
 	select QCOM_GDSC
-	default ARCH_QCOM if ARM64
+	default ARCH_QCOM
 	help
 	  Support for the global clock controller on msm8996 devices.
 	  Say Y if you want to use peripheral devices such as UART, SPI,
@@ -936,9 +937,10 @@ config MSM_GCC_8996
 
 config MSM_MMCC_8996
 	tristate "MSM8996 Multimedia Clock Controller"
+	depends on ARM64 || COMPILE_TEST
 	select MSM_GCC_8996
 	select QCOM_GDSC
-	default m if ARCH_QCOM && ARM64
+	default m if ARCH_QCOM
 	help
 	  Support for the multimedia clock controller on msm8996 devices.
 	  Say Y if you want to support multimedia devices such as display,
@@ -1188,6 +1190,7 @@ config SA_GPUCC_8775P
 
 config SAR_GCC_2130P
 	tristate "SAR2130P Global Clock Controller"
+	depends on ARM64 || COMPILE_TEST
 	select QCOM_GDSC
 	depends on COMMON_CLK_QCOM
 	default ARCH_QCOM
@@ -1198,6 +1201,7 @@ config SAR_GCC_2130P
 
 config SAR_GPUCC_2130P
 	tristate "SAR2130P Graphics clock controller"
+	depends on ARM64 || COMPILE_TEST
 	select QCOM_GDSC
 	select SAR_GCC_2130P
 	default m if ARCH_QCOM
Signature · 1 line
2.53.0
Reviewed-by on v2 4/4
#11 lore raw

Re: [PATCH v2 4/4] clk: qcom: Consistently handle MSM8996 and SAR2130P

Quoted 7 lines · Krzysztof Kozlowski

Restrict Qualcomm SoC clock controller drivers to ARM64 in a consistent way with other critical drivers (pin controllers, interconnects):

1. SAR2130P SoC has only ARM64 DTS user and other drivers are already restricted to ARM64 only.

Quoted 6 lines

2. MSM8996 APCC driver selects QCOM_KRYO_L2_ACCESSORS, which is available only for ARM64, thus reasonably this platform won't be ever used on ARM 32-bit builds.

---

Konrad

Reviewed-by on v2 4/4
#12 lore raw

Re: [PATCH v2 4/4] clk: qcom: Consistently handle MSM8996 and SAR2130P

In reply to Krzysztof Kozlowski
Quoted 4 lines · Krzysztof Kozlowski

Restrict Qualcomm SoC clock controller drivers to ARM64 in a consistent way with other critical drivers (pin controllers, interconnects):

Quoted 8 lines

1. SAR2130P SoC has only ARM64 DTS user and other drivers are already restricted to ARM64 only.

2. MSM8996 APCC driver selects QCOM_KRYO_L2_ACCESSORS, which is available only for ARM64, thus reasonably this platform won't be ever used on ARM 32-bit builds.

Nice.