[PATCH v6] riscv: dts: spacemit: k3: Add UFS support

From: Yixun Lan

Date: Thu Dec 03 2026 - 08:00:54 EST


Add UFS Host Controller support for SpacemiT K3 SoC, and enable
it both on Pico-ITX and CoM260-IFX boards.

Signed-off-by: Yixun Lan <dlan@xxxxxxxxxx>
---
Just send out the dts part of UFS driver, it would be easy for people
to pick and test. I've only enabled for Pico-ITX and Com260 board,
leave other boards for the owner to test and report back.

This patch depend on UFS driver [1] which still pending for merge.

Link: https://patch.msgid.link/20261203-08-k3-ufs-support-v10-0-d7120b1be330@xxxxxxxxxx [1]
---
Changes in v6:
- rename clock to 'ref_clk'
- Link to v5: https://lore.kernel.org/all/20260916-08-k3-ufs-support-v5-3-1f5d71f1027d@xxxxxxxxxx/
---
arch/riscv/boot/dts/spacemit/k3-com260.dtsi | 4 ++++
arch/riscv/boot/dts/spacemit/k3-pico-itx.dts | 4 ++++
arch/riscv/boot/dts/spacemit/k3.dtsi | 22 ++++++++++++++++++++++
3 files changed, 30 insertions(+)

diff --git a/arch/riscv/boot/dts/spacemit/k3-com260.dtsi b/arch/riscv/boot/dts/spacemit/k3-com260.dtsi
index 598a53461afc..10fdad55c9a7 100644
--- a/arch/riscv/boot/dts/spacemit/k3-com260.dtsi
+++ b/arch/riscv/boot/dts/spacemit/k3-com260.dtsi
@@ -257,3 +257,7 @@ &uart0 {
pinctrl-0 = <&uart0_0_cfg>;
status = "okay";
};
+
+&ufshc {
+ status = "okay";
+};
diff --git a/arch/riscv/boot/dts/spacemit/k3-pico-itx.dts b/arch/riscv/boot/dts/spacemit/k3-pico-itx.dts
index a74e76ee75e4..a79c61b88093 100644
--- a/arch/riscv/boot/dts/spacemit/k3-pico-itx.dts
+++ b/arch/riscv/boot/dts/spacemit/k3-pico-itx.dts
@@ -321,6 +321,10 @@ &uart0 {
status = "okay";
};

+&ufshc {
+ status = "okay";
+};
+
&usb2_host {
#address-cells = <1>;
#size-cells = <0>;
diff --git a/arch/riscv/boot/dts/spacemit/k3.dtsi b/arch/riscv/boot/dts/spacemit/k3.dtsi
index e89d2cc5ca8c..a2c1cf69eeee 100644
--- a/arch/riscv/boot/dts/spacemit/k3.dtsi
+++ b/arch/riscv/boot/dts/spacemit/k3.dtsi
@@ -570,6 +570,28 @@ usb2_phy: phy@c0a20000 {
status = "disabled";
};

+ ufshc: ufshc@c0e00000 {
+ compatible = "spacemit,k3-ufshc";
+ reg = <0x0 0xc0e00000 0x0 0x40000>;
+ clocks = <&syscon_apmu CLK_APMU_UFS_ACLK>,
+ <&syscon_apmu CLK_APMU_UFS_REFCLK>;
+ clock-names = "axi", "ref_clk";
+ resets = <&syscon_apmu RESET_APMU_UFS_ACLK>;
+ interrupts = <135 IRQ_TYPE_LEVEL_HIGH>;
+ lanes-per-direction = <2>;
+ operating-points-v2 = <&ufs_opp_table>;
+ status = "disabled";
+
+ ufs_opp_table: opp-table {
+ compatible = "operating-points-v2";
+
+ opp-1 {
+ opp-hz = /bits/ 64 <491520000>,
+ /bits/ 64 <19200000>;
+ };
+ };
+ };
+
eth0: ethernet@cac80000 {
compatible = "spacemit,k3-dwmac", "snps,dwmac-5.40a";
reg = <0x0 0xcac80000 0x0 0x2000>;

---
base-commit: 0bb077931e079d8061e33df94909fd5dd5967ad6
change-id: 20261203-08-k3-ufs-add-dts-9e15d04d293a

Best regards,
--
Yixun Lan <dlan@xxxxxxxxxx>