2022-03-21 23:30:49

by Luca Weiss

[permalink] [raw]
Subject: [PATCH v2 0/6] UFS support on SM6350 & FP4

This series adds support for UFS on SM6350 which is used for internal
storage.

Changes in v2:
- see individual patches

Luca Weiss (6):
scsi: ufs: dt-bindings: Add SM6350 compatible string
dt-bindings: phy: qcom,qmp: Add SM6350 UFS PHY bindings
phy: qcom-qmp: Add SM6350 UFS PHY support
pinctrl: qcom: sm6350: fix order of UFS & SDC pins
arm64: dts: qcom: sm6350: Add UFS nodes
arm64: dts: qcom: sm7225-fairphone-fp4: Enable UFS

.../devicetree/bindings/phy/qcom,qmp-phy.yaml | 2 +
.../devicetree/bindings/ufs/qcom,ufs.yaml | 2 +
arch/arm64/boot/dts/qcom/sm6350.dtsi | 77 +++++++++++++++++++
.../boot/dts/qcom/sm7225-fairphone-fp4.dts | 18 +++++
drivers/phy/qualcomm/phy-qcom-qmp.c | 3 +
drivers/pinctrl/qcom/pinctrl-sm6350.c | 16 ++--
6 files changed, 110 insertions(+), 8 deletions(-)

--
2.35.1


2022-03-21 23:36:22

by Luca Weiss

[permalink] [raw]
Subject: [PATCH v2 6/6] arm64: dts: qcom: sm7225-fairphone-fp4: Enable UFS

Configure and enable the nodes for UFS that are used for internal
storage on FP4.

Signed-off-by: Luca Weiss <[email protected]>
---
Changes in v2:
- nothing

.../boot/dts/qcom/sm7225-fairphone-fp4.dts | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts b/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts
index adb6ca2be2a5..533a1c88040f 100644
--- a/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts
+++ b/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts
@@ -336,6 +336,24 @@ &uart2 {
status = "okay";
};

+&ufs_mem_hc {
+ status = "okay";
+
+ reset-gpios = <&tlmm 156 GPIO_ACTIVE_LOW>;
+
+ vcc-supply = <&vreg_l7e>;
+ vcc-max-microamp = <800000>;
+ vccq2-supply = <&vreg_l12a>;
+ vccq2-max-microamp = <800000>;
+};
+
+&ufs_mem_phy {
+ status = "okay";
+
+ vdda-phy-supply = <&vreg_l18a>;
+ vdda-pll-supply = <&vreg_l22a>;
+};
+
&usb_1 {
status = "okay";
};
--
2.35.1