[PATCH 0/4] ufs: Add support for MediaTek hosts
Igor Belwon
igor.belwon at mentallysanemainliners.org
Sat Oct 11 21:10:03 CEST 2025
Hi all,
This patchset includes basic support for UFS PHY and UFS for MediaTek
platforms.
It's part of my MT6878 upstreaming work (more to come soon), and is
fairly basic. It does successfully grab a link and allow I/O over UFS
with no spotted regressions, however features like clocks are yet to
come. The peripheral however works, due to the clocks being set up by
the previous bootloader.
Most of the work here was based on the Linux drivers for MT8xxx series
SoCs, adapted to U-Boot and this mobile SoC. I could only test this
work on MT6878, as such, the compatibles on the drivers were changed.
NOTE: The M-PHY driver was not substantially changed, as such, the
Linux compatible was kept.
Signed-off-by: Igor Belwon <igor.belwon at mentallysanemainliners.org>
---
Igor Belwon (4):
phy: Add MediaTek UFS PHY Driver
ufs: unipro: Add PA_SCRAMBLING property
ufs: Add MediaTek UFS driver
MAINTAINERS: Add UFS to MediaTek section
MAINTAINERS | 2 +
drivers/phy/Kconfig | 10 +
drivers/phy/Makefile | 1 +
drivers/phy/phy-mtk-ufs.c | 190 +++++++++++++++++++
drivers/ufs/Kconfig | 14 ++
drivers/ufs/Makefile | 1 +
drivers/ufs/ufs-mediatek-sip.h | 56 ++++++
drivers/ufs/ufs-mediatek.c | 403 +++++++++++++++++++++++++++++++++++++++++
drivers/ufs/ufs-mediatek.h | 210 +++++++++++++++++++++
drivers/ufs/unipro.h | 1 +
10 files changed, 888 insertions(+)
---
base-commit: e50b1e8715011def8aff1588081a2649a2c6cd47
change-id: 20251011-mtk-ufs-uboot-6392be7f074b
Best regards,
--
Igor Belwon <igor.belwon at mentallysanemainliners.org>
More information about the U-Boot
mailing list