Skip to contentSkip to conversation

config: j7200: removed not needed power config

PATCH In review Udit Kumar 2 participants 4 messages Sep 11, 2023

Subsystems (2)
lore
Share & tools
lore

Udit Kumar

author
#0 lore raw

PATCH 1/1 config: j7200: removed not needed power config

For J7200, R5/SPL TI_SCI_POWER_DOMAIN should be
disabled as DM is a separate binary like other
SOC of J7* family.

Fixes 02dff65efe7 (configs: j7200_evm_r5: Add initial support)

---
Boot logs
https://gist.github.com/uditkumarti/04f053efa73eae8be53666d9a31033c2

 configs/j7200_evm_r5_defconfig | 1 -
 1 file changed, 1 deletion(-)
configs/j7200_evm_r5_defconfig +0 -1
index 6d240b16cb..9e744ba434 100644
@@ -126,7 +126,6 @@ CONFIG_SPL_PINCTRL=y
 # CONFIG_SPL_PINCTRL_GENERIC is not set
 CONFIG_PINCTRL_SINGLE=y
 CONFIG_POWER_DOMAIN=y
-CONFIG_TI_SCI_POWER_DOMAIN=y
 CONFIG_TI_POWER_DOMAIN=y
 CONFIG_DM_PMIC=y
 CONFIG_PMIC_TPS65941=y
Signature · 1 line
2.34.1
#1 lore raw
Quoted 29 lines · Udit Kumar

For J7200, R5/SPL TI_SCI_POWER_DOMAIN should be
disabled as DM is a separate binary like other
SOC of J7* family.

Fixes 02dff65efe7 (configs: j7200_evm_r5: Add initial support)

---
Boot logs
https://gist.github.com/uditkumarti/04f053efa73eae8be53666d9a31033c2

 configs/j7200_evm_r5_defconfig | 1 -
 1 file changed, 1 deletion(-)
configs/j7200_evm_r5_defconfig +0 -1
index 6d240b16cb..9e744ba434 100644
@@ -126,7 +126,6 @@ CONFIG_SPL_PINCTRL=y
 # CONFIG_SPL_PINCTRL_GENERIC is not set
 CONFIG_PINCTRL_SINGLE=y
 CONFIG_POWER_DOMAIN=y
-CONFIG_TI_SCI_POWER_DOMAIN=y
 CONFIG_TI_POWER_DOMAIN=y
 CONFIG_DM_PMIC=y
 CONFIG_PMIC_TPS65941=y
Signature · 1 line
2.34.1

And maybe expand this patch so that it contains something like the following to prevent this from coming back again elsewhere?

drivers/clk/ti/Kconfig +5 -5
index fbcdefd889ae..aff1ba5ab43b 100644
@@ -36,7 +36,7 @@ config CLK_TI_MUX
 
 config CLK_TI_SCI
 	bool "TI System Control Interface (TI SCI) clock driver"
-	depends on CLK && TI_SCI_PROTOCOL && OF_CONTROL
+	depends on CLK && TI_SCI_PROTOCOL && OF_CONTROL && !CLK_K3
 	help
 	  This enables the clock driver support over TI System Control Interface
 	  available on some new TI's SoCs. If you wish to use clock resources
@@ -44,24 +44,24 @@ config CLK_TI_SCI
 
 config CLK_K3_PLL
 	bool "PLL clock support for K3 SoC family of devices"
-	depends on CLK && LIB_RATIONAL
+	depends on CLK && LIB_RATIONAL && !CLK_TI_SCI
 	help
 	  Enables PLL clock support for K3 SoC family of devices.
 
 config SPL_CLK_K3_PLL
 	bool "PLL clock support for K3 SoC family of devices"
-	depends on CLK && LIB_RATIONAL && SPL
+	depends on CLK && LIB_RATIONAL && SPL && !CLK_TI_SCI
 	help
 	  Enables PLL clock support for K3 SoC family of devices.
 
 config CLK_K3
 	bool "Clock support for K3 SoC family of devices"
-	depends on CLK
+	depends on CLK && !CLK_TI_SCI
 	help
 	  Enables the clock translation layer from DT to device clocks.
 
 config SPL_CLK_K3
 	bool "Clock support for K3 SoC family of devices"
-	depends on CLK && SPL
+	depends on CLK && SPL && !CLK_TI_SCI
 	help
 	  Enables the clock translation layer from DT to device clocks.
drivers/power/domain/Kconfig +2 -2
index 411c210756a3..9625764b304b 100644
@@ -92,14 +92,14 @@ config TEGRA186_POWER_DOMAIN
 
 config TI_SCI_POWER_DOMAIN
 	bool "Enable the TI SCI-based power domain driver"
-	depends on POWER_DOMAIN && TI_SCI_PROTOCOL
+	depends on POWER_DOMAIN && TI_SCI_PROTOCOL && !TI_POWER_DOMAIN
 	help
 	  Generic power domain implementation for TI devices implementing the
 	  TI SCI protocol.
 
 config TI_POWER_DOMAIN
 	bool "Enable the TI K3 Power domain driver"
-	depends on POWER_DOMAIN && ARCH_K3
+	depends on POWER_DOMAIN && ARCH_K3 && !TI_SCI_POWER_DOMAIN
 	help
 	  Generic power domain implementation for TI K3 devices.
 
Signature · 3 lines
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D
#2 lore raw

Thank you for suggestion Nishanth

Quoted 20 lines · Nishanth Menon
Quoted 1 line · Udit Kumar

[..]

And maybe expand this patch so that it contains something like the following to prevent this from coming back again elsewhere?

drivers/clk/ti/Kconfig +1 -1
index fbcdefd889ae..aff1ba5ab43b 100644
@@ -36,7 +36,7 @@ config CLK_TI_MUX
 
  config CLK_TI_SCI
  	bool "TI System Control Interface (TI SCI) clock driver"
-	depends on CLK && TI_SCI_PROTOCOL && OF_CONTROL
+	depends on CLK && TI_SCI_PROTOCOL && OF_CONTROL && !CLK_K3
  	help
  	  This enables the clock driver support over TI System Control Interface
  	  available on some new TI's SoCs. If you wish to use clock resources

drivers/clk/ti/Kconfig config CLK_TI_SCI · line 61

Quoted 9 lines
drivers/clk/ti/Kconfig +1 -1
@@ -44,24 +44,24 @@ config CLK_TI_SCI
 
[..]
 
  config CLK_K3
  	bool "Clock support for K3 SoC family of devices"
-	depends on CLK
+	depends on CLK && !CLK_TI_SCI
  	help
  	  Enables the clock translation layer from DT to device clocks.

I think these may end up recursive dependency

Quoted 11 lines
drivers/power/domain/Kconfig +1 -1
index 411c210756a3..9625764b304b 100644
@@ -92,14 +92,14 @@ config TEGRA186_POWER_DOMAIN
 
  config TI_SCI_POWER_DOMAIN
  	bool "Enable the TI SCI-based power domain driver"
-	depends on POWER_DOMAIN && TI_SCI_PROTOCOL
+	depends on POWER_DOMAIN && TI_SCI_PROTOCOL && !TI_POWER_DOMAIN
  	help

drivers/power/domain/Kconfig config TEGRA186_POWER_DOMAIN · line 105

Quoted 10 lines
drivers/power/domain/Kconfig +1 -1
  	  Generic power domain implementation for TI devices implementing the
  	  TI SCI protocol.
 
  config TI_POWER_DOMAIN
  	bool "Enable the TI K3 Power domain driver"
-	depends on POWER_DOMAIN && ARCH_K3
+	depends on POWER_DOMAIN && ARCH_K3 && !TI_SCI_POWER_DOMAIN
  	help
  	  Generic power domain implementation for TI K3 devices.
 

and these too.

#3 lore raw
Quoted 22 lines · Udit

Thank you for suggestion Nishanth

Quoted 19 lines · Nishanth Menon
Quoted 1 line · Udit Kumar

[..]

And maybe expand this patch so that it contains something like the following to prevent this from coming back again elsewhere?

drivers/clk/ti/Kconfig +1 -1
index fbcdefd889ae..aff1ba5ab43b 100644
@@ -36,7 +36,7 @@ config CLK_TI_MUX
  config CLK_TI_SCI
  	bool "TI System Control Interface (TI SCI) clock driver"
-	depends on CLK && TI_SCI_PROTOCOL && OF_CONTROL
+	depends on CLK && TI_SCI_PROTOCOL && OF_CONTROL && !CLK_K3
  	help
  	  This enables the clock driver support over TI System Control Interface
  	  available on some new TI's SoCs. If you wish to use clock resources
@@ -44,24 +44,24 @@ config CLK_TI_SCI
[..]
Quoted 8 lines

drivers/clk/ti/Kconfig config CLK_TI_SCI · line 61

Quoted 6 lines

config CLK_K3
bool "Clock support for K3 SoC family of devices"

drivers/clk/ti/Kconfig +1 -1
-	depends on CLK
+	depends on CLK && !CLK_TI_SCI
  	help
  	  Enables the clock translation layer from DT to device clocks.

I think these may end up recursive dependency

Please do the needful, but it is best if the Kconfig enforces this prior to defconfig updates.

Quoted 23 lines
Quoted 10 lines
drivers/power/domain/Kconfig +0 -1
index 411c210756a3..9625764b304b 100644
@@ -92,14 +92,14 @@ config TEGRA186_POWER_DOMAIN
  config TI_SCI_POWER_DOMAIN
  	bool "Enable the TI SCI-based power domain driver"
-	depends on POWER_DOMAIN && TI_SCI_PROTOCOL

drivers/power/domain/Kconfig config TEGRA186_POWER_DOMAIN · line 102

Quoted 10 lines
drivers/power/domain/Kconfig +2 -1
+	depends on POWER_DOMAIN && TI_SCI_PROTOCOL && !TI_POWER_DOMAIN
  	help
  	  Generic power domain implementation for TI devices implementing the
  	  TI SCI protocol.
  config TI_POWER_DOMAIN
  	bool "Enable the TI K3 Power domain driver"
-	depends on POWER_DOMAIN && ARCH_K3
+	depends on POWER_DOMAIN && ARCH_K3 && !TI_SCI_POWER_DOMAIN
  	help
  	  Generic power domain implementation for TI K3 devices.

and these too.

Signature · 3 lines
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D