Devicetree
 help / color / mirror / Atom feed
* [PATCH] arm64: dts: qcom: mahua-qcb: Enable UFS
@ 2026-11-29  8:09 Pradeep P V K
  2026-11-29  8:17 ` sashiko-bot
  0 siblings, 1 reply; 2+ messages in thread
From: Pradeep P V K @ 2026-11-29  8:09 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley
  Cc: linux-arm-msm, devicetree, nitin.rawat, Pradeep P V K

Enable UFS for mahua-qcb board.

Signed-off-by: Pradeep P V K <pradeep.pragallapati@oss.qualcomm.com>
---
 arch/arm64/boot/dts/qcom/mahua-qcb.dts | 18 ++++++++++++++++++
 arch/arm64/boot/dts/qcom/mahua.dtsi    |  6 +++---
 2 files changed, 21 insertions(+), 3 deletions(-)

diff --git a/arch/arm64/boot/dts/qcom/mahua-qcb.dts b/arch/arm64/boot/dts/qcom/mahua-qcb.dts
index 16ad42466fbd..3cff546cf3b1 100644
--- a/arch/arm64/boot/dts/qcom/mahua-qcb.dts
+++ b/arch/arm64/boot/dts/qcom/mahua-qcb.dts
@@ -28,3 +28,21 @@ &tcsr {
 	vdda-refgen3-0p9-supply = <&vreg_l1f1>;
 	vdda-refgen3-1p2-supply = <&vreg_l4f1>;
 };
+
+&ufs_mem_hc {
+	reset-gpios = <&tlmm 250 GPIO_ACTIVE_LOW>;
+
+	vcc-supply = <&vreg_l17b0>;
+	vcc-max-microamp = <1200000>;
+	vccq-supply = <&vreg_l12b0>;
+	vccq-max-microamp = <1200000>;
+
+	status = "okay";
+};
+
+&ufs_mem_phy {
+	vdda-phy-supply = <&vreg_l1c1>;
+	vdda-pll-supply = <&vreg_l4f1>;
+
+	status = "okay";
+};
diff --git a/arch/arm64/boot/dts/qcom/mahua.dtsi b/arch/arm64/boot/dts/qcom/mahua.dtsi
index e7141f8c9e0d..9478a0b5f178 100644
--- a/arch/arm64/boot/dts/qcom/mahua.dtsi
+++ b/arch/arm64/boot/dts/qcom/mahua.dtsi
@@ -122,9 +122,9 @@ &gcc {
 		 <0>,				/* QUSB4 1 PHY RX 1 */
 		 <0>,				/* QUSB4 2 PHY RX 0 */
 		 <0>,				/* QUSB4 2 PHY RX 1 */
-		 <0>,				/* UFS PHY RX Symbol 0 */
-		 <0>,				/* UFS PHY RX Symbol 1 */
-		 <0>,				/* UFS PHY TX Symbol 0 */
+		 <&ufs_mem_phy 0>,
+		 <&ufs_mem_phy 1>,
+		 <&ufs_mem_phy 2>,
 		 <&usb_0_qmpphy QMP_USB43DP_USB3_PIPE_CLK>,
 		 <&usb_1_qmpphy QMP_USB43DP_USB3_PIPE_CLK>,
 		 <&usb_2_qmpphy QMP_USB43DP_USB3_PIPE_CLK>,

---
base-commit: e5aad2bdbbee783611d32599f89cea3f12f9593d
change-id: 20261129-mahua-qcb-ufs-changes-9cbe7a002d5d

Best regards,
-- 
Pradeep P V K <pradeep.pragallapati@oss.qualcomm.com>


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

* Re: [PATCH] arm64: dts: qcom: mahua-qcb: Enable UFS
  2026-11-29  8:09 [PATCH] arm64: dts: qcom: mahua-qcb: Enable UFS Pradeep P V K
@ 2026-11-29  8:17 ` sashiko-bot
  0 siblings, 0 replies; 2+ messages in thread
From: sashiko-bot @ 2026-11-29  8:17 UTC (permalink / raw)
  To: Pradeep P V K; +Cc: devicetree, robh, conor+dt

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] arm64: dts: qcom: mahua-qcb: duplicate UFS nodes and incomplete
  changelog
--

commit 5e5339542ff92f8c57bb2156899a1d7d174d4da6
Author: Pradeep P V K <pradeep.pragallapati@oss.qualcomm.com>

arm64: dts: qcom: mahua-qcb: Enable UFS

This commit enables the UFS host controller and PHY on the mahua-qcb
board and wires the UFS PHY symbol clocks into the GCC node in
mahua.dtsi.

> diff --git a/arch/arm64/boot/dts/qcom/mahua-qcb.dts b/arch/arm64/boot/dts/qcom/mahua-qcb.dts
> index 16ad42466fbd7..3cff546cf3b17 100644
> --- a/arch/arm64/boot/dts/qcom/mahua-qcb.dts
> +++ b/arch/arm64/boot/dts/qcom/mahua-qcb.dts
> @@ -28,3 +28,21 @@ &tcsr {
>  	vdda-refgen3-0p9-supply = <&vreg_l1f1>;
>  	vdda-refgen3-1p2-supply = <&vreg_l4f1>;
>  };
> +
> +&ufs_mem_hc {
> +	reset-gpios = <&tlmm 250 GPIO_ACTIVE_LOW>;
> +
> +	vcc-supply = <&vreg_l17b0>;
> +	vcc-max-microamp = <1200000>;
> +	vccq-supply = <&vreg_l12b0>;
> +	vccq-max-microamp = <1200000>;
> +
> +	status = "okay";
> +};
> +
> +&ufs_mem_phy {
> +	vdda-phy-supply = <&vreg_l1c1>;
> +	vdda-pll-supply = <&vreg_l4f1>;
> +
> +	status = "okay";
> +};
> diff --git a/arch/arm64/boot/dts/qcom/mahua.dtsi b/arch/arm64/boot/dts/qcom/mahua.dtsi
> index e7141f8c9e0d3..9478a0b5f1783 100644
> --- a/arch/arm64/boot/dts/qcom/mahua.dtsi
> +++ b/arch/arm64/boot/dts/qcom/mahua.dtsi
> @@ -122,9 +122,9 @@ &gcc {
>  		 <0>,				/* QUSB4 1 PHY RX 1 */
>  		 <0>,				/* QUSB4 2 PHY RX 0 */
>  		 <0>,				/* QUSB4 2 PHY RX 1 */
> -		 <0>,				/* UFS PHY RX Symbol 0 */
> -		 <0>,				/* UFS PHY RX Symbol 1 */
> -		 <0>,				/* UFS PHY TX Symbol 0 */
> +		 <&ufs_mem_phy 0>,
> +		 <&ufs_mem_phy 1>,
> +		 <&ufs_mem_phy 2>,
>  		 <&usb_0_qmpphy QMP_USB43DP_USB3_PIPE_CLK>,
>  		 <&usb_1_qmpphy QMP_USB43DP_USB3_PIPE_CLK>,
>  		 <&usb_2_qmpphy QMP_USB43DP_USB3_PIPE_CLK>,

[Severity: Low]
This isn't a bug, but the &ufs_mem_hc and &ufs_mem_phy nodes added to
mahua-qcb.dts are identical to those in glymur-qcb.dts. Since both boards
include glymur-qcb.dtsi after 71e1b237de83 ("arm64: dts: qcom: Commonize
glymur-qcb.dts to glymur-qcb.dtsi") and share on-SoC PHY supplies via
glymur-cob.dtsi after 6fdce1f4a17b ("arm64: dts: qcom: Consolidate Glymur
CoB power grid"), could the common QCB UFS nodes move to glymur-qcb.dtsi
(and the &ufs_mem_phy vdda-phy-supply and vdda-pll-supply properties to
glymur-cob.dtsi) instead of being duplicated?

Also, the commit subject and message only describe enabling UFS on
mahua-qcb, without mentioning the SoC-level GCC clock changes in
mahua.dtsi.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261129-mahua-qcb-ufs-changes-v1-1-776a9d69ee64@oss.qualcomm.com?part=1

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

end of thread, other threads:[~2026-11-29  8:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-29  8:09 [PATCH] arm64: dts: qcom: mahua-qcb: Enable UFS Pradeep P V K
2026-11-29  8:17 ` sashiko-bot

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