public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/5] arm64: dts: qcom: sm6115: Fix UFS node
@ 2022-12-08 20:13 Konrad Dybcio
  2022-12-08 20:13 ` [PATCH 2/5] arm64: dts: qcom: sm6115: Provide xo clk to rpmcc Konrad Dybcio
                   ` (5 more replies)
  0 siblings, 6 replies; 10+ messages in thread
From: Konrad Dybcio @ 2022-12-08 20:13 UTC (permalink / raw)
  To: linux-arm-msm, andersson, agross, krzysztof.kozlowski
  Cc: patches, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
	Iskren Chernev, devicetree, linux-kernel

In its current form, UFS did not even probe successfully - it failed
when trying to set XO (ref_clk) to 300 MHz instead of doing so to
the ICE clk. Moreover, the missing reg-names prevented ICE from
working or being discovered at all. Fix both of these issues.

As a sidenote, the log reveals that this SoC uses UFS ICE v3.1.0.

Fixes: 97e563bf5ba1 ("arm64: dts: qcom: sm6115: Add basic soc dtsi")
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
---
 arch/arm64/boot/dts/qcom/sm6115.dtsi | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/arm64/boot/dts/qcom/sm6115.dtsi
index 572bf04adf90..3f4017bc667d 100644
--- a/arch/arm64/boot/dts/qcom/sm6115.dtsi
+++ b/arch/arm64/boot/dts/qcom/sm6115.dtsi
@@ -704,6 +704,7 @@ opp-202000000 {
 		ufs_mem_hc: ufs@4804000 {
 			compatible = "qcom,sm6115-ufshc", "qcom,ufshc", "jedec,ufs-2.0";
 			reg = <0x04804000 0x3000>, <0x04810000 0x8000>;
+			reg-names = "std", "ice";
 			interrupts = <GIC_SPI 356 IRQ_TYPE_LEVEL_HIGH>;
 			phys = <&ufs_mem_phy_lanes>;
 			phy-names = "ufsphy";
@@ -736,10 +737,10 @@ ufs_mem_hc: ufs@4804000 {
 					<0 0>,
 					<0 0>,
 					<37500000 150000000>,
-					<75000000 300000000>,
 					<0 0>,
 					<0 0>,
-					<0 0>;
+					<0 0>,
+					<75000000 300000000>;
 
 			status = "disabled";
 		};
-- 
2.38.1


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-12-28  4:37 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-08 20:13 [PATCH 1/5] arm64: dts: qcom: sm6115: Fix UFS node Konrad Dybcio
2022-12-08 20:13 ` [PATCH 2/5] arm64: dts: qcom: sm6115: Provide xo clk to rpmcc Konrad Dybcio
2022-12-08 20:13 ` [PATCH 3/5] arm64: dts: qcom: sm6115: Provide real SMD RPM XO to SDC1/2 Konrad Dybcio
2022-12-08 20:14 ` [PATCH 4/5] dt-bindings: arm: qcom: Add SM6115(P) and Lenovo Tab P11 Konrad Dybcio
2022-12-09  8:04   ` Krzysztof Kozlowski
2022-12-10 15:57   ` Bhupesh Sharma
2022-12-08 20:14 ` [PATCH 5/5] arm64: dts: qcom: Add Lenovo Tab P11 (J606F/XiaoXin Pad) dts Konrad Dybcio
2022-12-17 17:56   ` Dang Huynh
2022-12-09 10:13 ` [PATCH 1/5] arm64: dts: qcom: sm6115: Fix UFS node Iskren Chernev
2022-12-28  4:36 ` (subset) " Bjorn Andersson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox