* [PATCH 0/1] arm64: dts: qcom: sdm845-sony-tama: Enable UFS host controller and PHY
@ 2026-09-14 10:01 Shujath Mohd
2026-09-14 10:01 ` [PATCH 1/1] " Shujath Mohd
0 siblings, 1 reply; 4+ messages in thread
From: Shujath Mohd @ 2026-09-14 10:01 UTC (permalink / raw)
To: linux-arm-msm, devicetree
Cc: andersson, konradybcio, robh, krzk+dt, conor+dt,
angelogioacchino.delregno, martin.botka, linux-kernel,
Shujath Mohd
This patch enables the UFS host controller and PHY on Sony Xperia Tama
devices.
UFS is currently disabled in the Tama device tree with the following
warning:
/* BIG WARNING! DO NOT TOUCH UFS, YOUR DEVICE WILL DIE! */
This restriction was introduced because of a known UFS behaviour on
these devices. While investigating whether the historical restriction
is still required on production Tama devices, I tested the UFS
controller without the historical UFS quirks.
The UFS controller and PHY successfully initialize when the required
reset GPIO and regulator supplies are described in the device tree.
The required hardware configuration is:
- UFS reset GPIO: TLMM GPIO 150, active low
- UFS VCC: vreg_l20a_2p7, maximum 600 mA
- UFS PHY VDDA: vreg_l1a_0p9
- UFS PHY PLL: vreg_l26a_1p2
I tested this configuration on all three Sony Tama variants:
- Xperia XZ2 Compact (Akari)
- Xperia XZ2 (Akatsuki)
- Xperia XZ3 (Apollo)
Each device was rebooted repeatedly with UFS enabled. I did not observe
UFS data loss or corruption during testing.
As part of the investigation, I used EDL mode to access the UFS device
and dump LUN0, LUN1 and LUN2. This provided an independent way to inspect
the UFS storage while investigating the historical restriction.
The EDL/UFS access was based on work related to CVE-2021-30327 and its
SDM845 implementation in the katana project. This gave me enough
confidence to investigate the historical UFS restriction and test the
mainline kernel with UFS enabled.
The testing indicates that the historical UFS restriction is not
required for these production Tama devices when the required UFS
hardware configuration is provided.
This patch only enables the existing UFS controller and PHY nodes and
provides their required GPIO and regulator configuration. It does not
add or modify any UFS driver quirks.
Shujath Mohd (1):
arm64: dts: qcom: sdm845-sony-tama: Enable UFS host controller and PHY
.../boot/dts/qcom/sdm845-sony-xperia-tama.dtsi | 18 +++++++++++++++---
1 file changed, 15 insertions(+), 3 deletions(-)
--
2.55.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/1] arm64: dts: qcom: sdm845-sony-tama: Enable UFS host controller and PHY
2026-09-14 10:01 [PATCH 0/1] arm64: dts: qcom: sdm845-sony-tama: Enable UFS host controller and PHY Shujath Mohd
@ 2026-09-14 10:01 ` Shujath Mohd
2026-10-19 7:50 ` Shujath Mohd
0 siblings, 1 reply; 4+ messages in thread
From: Shujath Mohd @ 2026-09-14 10:01 UTC (permalink / raw)
To: linux-arm-msm, devicetree
Cc: andersson, konradybcio, robh, krzk+dt, conor+dt,
angelogioacchino.delregno, martin.botka, linux-kernel,
Shujath Mohd
Enable the UFS host controller and PHY on Sony Xperia Tama devices.
Provide the UFS reset GPIO and required VCC, VDDA-PHY, and VDDA-PLL
regulators so that the UFS controller and PHY can initialize correctly.
The UFS host controller and PHY have been tested on the Akari, Apollo,
and Akatsuki devices across multiple reboots without observing UFS data
loss or corruption.
Fixes: 30a7f99befc6 ("arm64: dts: qcom: Add support for SONY Xperia XZ2 / XZ2C / XZ3 (Tama platform)")
Signed-off-by: Shujath Mohd <shujath@outlook.in>
---
.../boot/dts/qcom/sdm845-sony-xperia-tama.dtsi | 18 +++++++++++++++---
1 file changed, 15 insertions(+), 3 deletions(-)
diff --git a/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi b/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi
index 84842e5f77a0..9ee62abd9180 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi
+++ b/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi
@@ -792,9 +792,21 @@ &uart9 {
status = "okay";
};
-/* BIG WARNING! DO NOT TOUCH UFS, YOUR DEVICE WILL DIE! */
-&ufs_mem_hc { status = "disabled"; };
-&ufs_mem_phy { status = "disabled"; };
+&ufs_mem_hc {
+ status = "okay";
+
+ reset-gpios = <&tlmm 150 GPIO_ACTIVE_LOW>;
+
+ vcc-supply = <&vreg_l20a_2p7>;
+ vcc-max-microamp = <600000>;
+};
+
+&ufs_mem_phy {
+ status = "okay";
+
+ vdda-phy-supply = <&vreg_l1a_0p9>;
+ vdda-pll-supply = <&vreg_l26a_1p2>;
+};
&usb_1 {
status = "okay";
--
2.55.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] arm64: dts: qcom: sdm845-sony-tama: Enable UFS host controller and PHY
2026-09-14 10:01 ` [PATCH 1/1] " Shujath Mohd
@ 2026-10-19 7:50 ` Shujath Mohd
2026-10-21 8:45 ` Konrad Dybcio
0 siblings, 1 reply; 4+ messages in thread
From: Shujath Mohd @ 2026-10-19 7:50 UTC (permalink / raw)
To: linux-arm-msm, devicetree
Cc: andersson, konradybcio, robh, krzk+dt, conor+dt,
angelogioacchino.delregno, martin.botka, linux-kernel
Hi,
I wanted to follow up on this patch and check if there are any
comments or concerns.
The UFS host controller and PHY have been tested on the Xperia XZ2
(Akari), XZ2 Compact (Apollo), and XZ3 (Akatsuki) across multiple
reboots without observing any UFS data loss or corruption.
Please let me know if any changes are needed.
Thank you for your time and review.
Best regards,
Shujath
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] arm64: dts: qcom: sdm845-sony-tama: Enable UFS host controller and PHY
2026-10-19 7:50 ` Shujath Mohd
@ 2026-10-21 8:45 ` Konrad Dybcio
0 siblings, 0 replies; 4+ messages in thread
From: Konrad Dybcio @ 2026-10-21 8:45 UTC (permalink / raw)
To: Shujath Mohd, linux-arm-msm, devicetree
Cc: andersson, konradybcio, robh, krzk+dt, conor+dt,
angelogioacchino.delregno, martin.botka, linux-kernel
On 10/19/26 9:50 AM, Shujath Mohd wrote:
> Hi,
>
> I wanted to follow up on this patch and check if there are any
> comments or concerns.
>
> The UFS host controller and PHY have been tested on the Xperia XZ2
> (Akari), XZ2 Compact (Apollo), and XZ3 (Akatsuki) across multiple
> reboots without observing any UFS data loss or corruption.
>
> Please let me know if any changes are needed.
>
> Thank you for your time and review.
Acked-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Konrad
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-10-21 8:45 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-14 10:01 [PATCH 0/1] arm64: dts: qcom: sdm845-sony-tama: Enable UFS host controller and PHY Shujath Mohd
2026-09-14 10:01 ` [PATCH 1/1] " Shujath Mohd
2026-10-19 7:50 ` Shujath Mohd
2026-10-21 8:45 ` Konrad Dybcio
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®