Skip to contentSkip to conversation

arm64: dts: qcom: qcm6490: Add UFS nodes

PATCH Superseded Manish Pandey 2 participants 2 messages Dec 21, 2023

Subsystems (3)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 arm64: dts: qcom: qcm6490: Add UFS nodes

Add UFS host controller and Phy nodes for
Qualcomm qcm6490 Board.

---
Changes from v1:
- updated with correct patchset

---
 arch/arm64/boot/dts/qcom/qcm6490-idp.dts | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
arch/arm64/boot/dts/qcom/qcm6490-idp.dts +19 -0
index 03e97e27d16d..51efd46b576c 100644
@@ -440,6 +440,25 @@
 	status = "okay";
 };
 
+&ufs_mem_hc {
+	reset-gpios = <&tlmm 175 GPIO_ACTIVE_LOW>;
+	vcc-supply = <&vreg_l7b_2p9>;
+	vcc-max-microamp = <800000>;
+	vccq-supply = <&vreg_l9b_1p2>;
+	vccq-max-microamp = <900000>;
+	vccq2-supply = <&vreg_l9b_1p2>;
+	vccq2-max-microamp = <900000>;
+
+	status = "okay";
+};
+
+&ufs_mem_phy {
+	vdda-phy-supply = <&vreg_l10c_0p8>;
+	vdda-pll-supply = <&vreg_l6b_1p2>;
+
+	status = "okay";
+};
+
 &usb_1 {
 	status = "okay";
 };
Signature · 1 line
2.17.1
#1 lore raw
Quoted 7 lines · Manish Pandey

Add UFS host controller and Phy nodes for
Qualcomm qcm6490 Board.

---
Changes from v1:
- updated with correct patchset

Well no, this clearly hasn't been compile-tested..

Please also include the board name in the subject
(qcm6490: -> qcm6490-idp:)

Quoted 11 lines
---
 arch/arm64/boot/dts/qcom/qcm6490-idp.dts | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
arch/arm64/boot/dts/qcom/qcm6490-idp.dts +0 -0
index 03e97e27d16d..51efd46b576c 100644
@@ -440,6 +440,25 @@
 	status = "okay";

arch/arm64/boot/dts/qcom/qcm6490-idp.dts line 450

Quoted 10 lines
arch/arm64/boot/dts/qcom/qcm6490-idp.dts +8 -0
 };
 
+&ufs_mem_hc {
+	reset-gpios = <&tlmm 175 GPIO_ACTIVE_LOW>;
+	vcc-supply = <&vreg_l7b_2p9>;
+	vcc-max-microamp = <800000>;
+	vccq-supply = <&vreg_l9b_1p2>;
+	vccq-max-microamp = <900000>;
+	vccq2-supply = <&vreg_l9b_1p2>;
+	vccq2-max-microamp = <900000>;

These regulators should get regulator-allow-set-load since the UFS driver expects to perform current/mode setting ops on them

Konrad