Skip to contentSkip to conversation

arm64: dts: qcom: sdm845: add power domain to UFS phy interface

PATCH In review David Heidelberg 4 participants 5 messages Dec 29, 2023 – Jan 1, 2024

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

PATCH 1/1 arm64: dts: qcom: sdm845: add power domain to UFS phy interface

Reported by: make CHECK_DTBS=1 qcom/sdm845-oneplus-enchilada.dtb

---
 arch/arm64/boot/dts/qcom/sdm845.dtsi | 2 ++
 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/qcom/sdm845.dtsi +2 -0
index c2244824355a..ad8677b62bfb 100644
@@ -2644,6 +2644,8 @@ ufs_mem_phy: phy@1d87000 {
 			clocks = <&gcc GCC_UFS_MEM_CLKREF_CLK>,
 				 <&gcc GCC_UFS_PHY_PHY_AUX_CLK>;
 
+			power-domains = <&gcc UFS_PHY_GDSC>;
+
 			resets = <&ufs_mem_hc 0>;
 			reset-names = "ufsphy";
 
Signature · 1 line
2.43.0
#1 lore raw
Quoted 13 lines · On Freitag, 29. Dezember 2023 21:29:54 CET David Heidelberg wrote:

Reported by: make CHECK_DTBS=1 qcom/sdm845-oneplus-enchilada.dtb

---
 arch/arm64/boot/dts/qcom/sdm845.dtsi | 2 ++
 1 file changed, 2 insertions(+)
(quoted diff) +0 -0

b/arch/arm64/boot/dts/qcom/sdm845.dtsi index c2244824355a..ad8677b62bfb 100644

arch/arm64/boot/dts/qcom/sdm845.dtsi ufs_mem_phy: phy@1d87000 { · line 2650

Quoted 7 lines
arch/arm64/boot/dts/qcom/sdm845.dtsi +2 -0
@@ -2644,6 +2644,8 @@ ufs_mem_phy: phy@1d87000 {
 			clocks = <&gcc GCC_UFS_MEM_CLKREF_CLK>,
 				 <&gcc GCC_UFS_PHY_PHY_AUX_CLK>;
 
+			power-domains = <&gcc UFS_PHY_GDSC>;
+
 			resets = <&ufs_mem_hc 0>;
 			reset-names = "ufsphy";

This is potentially the wrong power domain, see the conversation here:
https://lore.kernel.org/linux-arm-msm/20231204172829.GA69580@thinkpad/

Hopefully Mani can give some input here :)

Regards
Luca

#2 lore raw
Quoted 17 lines · Luca Weiss
Quoted 16 lines · On Freitag, 29. Dezember 2023 21:29:54 CET David Heidelberg wrote:

Reported by: make CHECK_DTBS=1 qcom/sdm845-oneplus-enchilada.dtb

---
  arch/arm64/boot/dts/qcom/sdm845.dtsi | 2 ++
  1 file changed, 2 insertions(+)
(quoted diff) +0 -0

b/arch/arm64/boot/dts/qcom/sdm845.dtsi index c2244824355a..ad8677b62bfb 100644

arch/arm64/boot/dts/qcom/sdm845.dtsi +0 -0
@@ -2644,6 +2644,8 @@ ufs_mem_phy: phy@1d87000 {
  			clocks = <&gcc GCC_UFS_MEM_CLKREF_CLK>,
  				 <&gcc GCC_UFS_PHY_PHY_AUX_CLK>;
 
Quoted 6 lines

arch/arm64/boot/dts/qcom/sdm845.dtsi ufs_mem_phy: phy@1d87000 { · line 2650

Quoted 4 lines
arch/arm64/boot/dts/qcom/sdm845.dtsi +2 -0
+			power-domains = <&gcc UFS_PHY_GDSC>;
+
  			resets = <&ufs_mem_hc 0>;
  			reset-names = "ufsphy";

This is potentially the wrong power domain, see the conversation here:
https://lore.kernel.org/linux-arm-msm/20231204172829.GA69580@thinkpad/

Thanks, I was thinking about  SDM845_MX, but then looked at rest more closer qcom archs and thought it'll be likely GDSC (also by looking at ufs_mem_hc reset vectors).

Quoted 7 lines

Hopefully Mani can give some input here :)

Regards
Luca

Signature · 1 line
David Heidelberg
#3 lore raw

Hi David,

Did you boot-test this?

Quoted 33 lines · David Heidelberg
Quoted 17 lines · Luca Weiss
Quoted 16 lines · On Freitag, 29. Dezember 2023 21:29:54 CET David Heidelberg wrote:

Reported by: make CHECK_DTBS=1 qcom/sdm845-oneplus-enchilada.dtb

---
  arch/arm64/boot/dts/qcom/sdm845.dtsi | 2 ++

  1 file changed, 2 insertions(+)
(quoted diff) +0 -0

b/arch/arm64/boot/dts/qcom/sdm845.dtsi index c2244824355a..ad8677b62bfb 100644

arch/arm64/boot/dts/qcom/sdm845.dtsi +0 -0
@@ -2644,6 +2644,8 @@ ufs_mem_phy: phy@1d87000 {
               clocks = <&gcc GCC_UFS_MEM_CLKREF_CLK>,
                    <&gcc GCC_UFS_PHY_PHY_AUX_CLK>;
 
Quoted 6 lines

arch/arm64/boot/dts/qcom/sdm845.dtsi ufs_mem_phy: phy@1d87000 { · line 2650

Quoted 4 lines
arch/arm64/boot/dts/qcom/sdm845.dtsi +2 -0
+            power-domains = <&gcc UFS_PHY_GDSC>;
+
               resets = <&ufs_mem_hc 0>;
               reset-names = "ufsphy";

This is potentially the wrong power domain, see the conversation here:
https://lore.kernel.org/linux-arm-msm/20231204172829.GA69580@thinkpad/

Thanks, I was thinking about  SDM845_MX, but then looked at rest more closer qcom archs and thought it'll be likely GDSC (also by looking at ufs_mem_hc reset vectors).

Quoted 7 lines

Hopefully Mani can give some input here :)

Regards
Luca

Signature · 1 line
// Caleb (they/them)
#4 lore raw
In reply to Luca Weiss
Quoted 17 lines · Luca Weiss
Quoted 16 lines · On Freitag, 29. Dezember 2023 21:29:54 CET David Heidelberg wrote:

Reported by: make CHECK_DTBS=1 qcom/sdm845-oneplus-enchilada.dtb

---
 arch/arm64/boot/dts/qcom/sdm845.dtsi | 2 ++
 1 file changed, 2 insertions(+)
(quoted diff) +0 -0

b/arch/arm64/boot/dts/qcom/sdm845.dtsi index c2244824355a..ad8677b62bfb 100644

arch/arm64/boot/dts/qcom/sdm845.dtsi +0 -0
@@ -2644,6 +2644,8 @@ ufs_mem_phy: phy@1d87000 {
 			clocks = <&gcc GCC_UFS_MEM_CLKREF_CLK>,
 				 <&gcc GCC_UFS_PHY_PHY_AUX_CLK>;
 
Quoted 8 lines

arch/arm64/boot/dts/qcom/sdm845.dtsi ufs_mem_phy: phy@1d87000 { · line 2650

Quoted 4 lines
arch/arm64/boot/dts/qcom/sdm845.dtsi +2 -0
+			power-domains = <&gcc UFS_PHY_GDSC>;
+
 			resets = <&ufs_mem_hc 0>;
 			reset-names = "ufsphy";

This is potentially the wrong power domain, see the conversation here:
https://lore.kernel.org/linux-arm-msm/20231204172829.GA69580@thinkpad/

Yes, GDSCs are the power domain of the controllers, not PHYs. This applies to other peripherals such as USB, PCIe etc...

- Mani

Quoted 6 lines

Hopefully Mani can give some input here :)

Regards
Luca

Signature · 1 line
மணிவண்ணன் சதாசிவம்