Skip to contentSkip to conversation

arm64: dts: qcom: sm8150: Add ufs power-domain entries

PATCH Applied Bhupesh Sharma 3 participants 3 messages Mar 23, 2022 – Apr 12, 2022

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

PATCH v4 1/1 arm64: dts: qcom: sm8150: Add ufs power-domain entries

Add power-domain entries for UFS phy node in sm8150 dts.

Cc Bjorn Andersson <[email protected]>
Cc Rob Herring <[email protected]>

---
Changes since v3:
----------------
- v3 can be found here: https://lore.kernel.org/linux-arm-msm/[email protected]/
- Dropped [PATCH 1/2] from v3, which is already in linux-next now.
- Addressed Dmitry's and Bjorn's review comments.
- This patch is rebase on linux-next.

 arch/arm64/boot/dts/qcom/sm8150.dtsi | 3 +++
 1 file changed, 3 insertions(+)
arch/arm64/boot/dts/qcom/sm8150.dtsi +3 -0
index 6012322a5984..eed601e70229 100644
@@ -1637,6 +1637,7 @@ ufs_mem_hc: ufshc@1d84000 {
 			phy-names = "ufsphy";
 			lanes-per-direction = <2>;
 			#reset-cells = <1>;
+
 			resets = <&gcc GCC_UFS_PHY_BCR>;
 			reset-names = "rst";
 
@@ -1687,6 +1688,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>;
+			power-domain-names = "ufs_phy_gdsc";
 			resets = <&ufs_mem_hc 0>;
 			reset-names = "ufsphy";
 			status = "disabled";
Signature · 1 line
2.35.1
#1 lore raw
This patch was applied to qcom/linux.git (for-next) by Bjorn Andersson <[email protected]>:

Hello:

This patch was applied to qcom/linux.git (for-next) by Bjorn Andersson <[email protected]>:

Quoted 9 lines · On Thu, 24 Mar 2022 02:00:52 +0530 you wrote:

Add power-domain entries for UFS phy node in sm8150 dts.

Cc Bjorn Andersson <[email protected]>
Cc Rob Herring <[email protected]>

---
Changes since v3:

[...]

Here is the summary with links:
- [v4,1/1] arm64: dts: qcom: sm8150: Add ufs power-domain entries

    https://git.kernel.org/qcom/c/a0fa9be9a735

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
#2 lore raw
In reply to Bhupesh Sharma
Quoted 29 lines · Bhupesh Sharma

Add power-domain entries for UFS phy node in sm8150 dts.

Cc Bjorn Andersson <[email protected]>
Cc Rob Herring <[email protected]>

---
Changes since v3:
----------------
- v3 can be found here: https://lore.kernel.org/linux-arm-msm/[email protected]/
- Dropped [PATCH 1/2] from v3, which is already in linux-next now.
- Addressed Dmitry's and Bjorn's review comments.
- This patch is rebase on linux-next.

 arch/arm64/boot/dts/qcom/sm8150.dtsi | 3 +++
 1 file changed, 3 insertions(+)
arch/arm64/boot/dts/qcom/sm8150.dtsi +1 -0
index 6012322a5984..eed601e70229 100644
@@ -1637,6 +1637,7 @@ ufs_mem_hc: ufshc@1d84000 {
 			phy-names = "ufsphy";
 			lanes-per-direction = <2>;
 			#reset-cells = <1>;
+
 			resets = <&gcc GCC_UFS_PHY_BCR>;
 			reset-names = "rst";
 

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

Quoted 5 lines
arch/arm64/boot/dts/qcom/sm8150.dtsi +2 -0
@@ -1687,6 +1688,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>;
+			power-domain-names = "ufs_phy_gdsc";

As far as I can tell the UFS PHY sits in the MX domain, while the controller and perhaps the connection between the two sits in UFS_PHY_GDSC.

So I believe the power-domains should be moved to the &ufs_mem_hc node.

There's no need for power-domain-names in either case.

Regards,
Bjorn

Quoted 6 lines
arch/arm64/boot/dts/qcom/sm8150.dtsi +0 -0
 			resets = <&ufs_mem_hc 0>;
 			reset-names = "ufsphy";
 			status = "disabled";
Signature · 1 line
2.35.1