[PATCH v5 0/2] phy: add support for TH1520 USB PHY

From: Icenowy Zheng

Date: Mon Nov 30 2026 - 04:08:53 EST


This patchset is split from the "Add TH1520 USB support" patchset,
with only the PHY binding/driver part.

---
Changes in v5:
- Removed the platform device pointer in the PHY data struct as it's
never used.
- Added Drew's and Manivannan's R-b to the driver.
- Link to v4: https://patch.msgid.link/20261103081444.1983071-1-zhengxingda@xxxxxxxxxxx

Changes in v4:
- Added Conor's R-b to the binding.
- Make exit callback always success to prevent PHY state machine desync
with clk/rst state as suggested by Sashiko.
- Re-wrap some comments targetting full 80 columns.
- Use dev_err_probe for PHY creation error handling, to prevent spamming
the kernel log with -EPROBE_DEFER.

Changes in v3:
- Re-add avdd33-usb3-supply to the required DT properties list.
- Add reg to the required DT properties list, as this is a MMIO
peripheral.
- Use fsleep() to replace udelay(), and add proper inclusion of
linux/delay.h for this function. (fsleep() suggested by Drew and
inclusion suggested by Sashiko)
- Adapt Drew's suggestion on the wording of the commit message's 2nd
paragraph.

Changes in v2:
- Lifted avdd33-usb3-supply from required DT properties list.
- Removed unreferenced register names.
- Changed the behavior to leaving bus clock on instead of binding it to
the regmap.
- Removed early return for reset deassert failure in phy exit callback.
- Tweaked the Kconfig item (removed default value and added "select
REGMAP_MMIO).

---
Icenowy Zheng (2):
dt-bindings: phy: add binding for T-Head TH1520 USB PHY
phy: add a driver for T-Head TH1520 USB PHY

.../bindings/phy/thead,th1520-usb-phy.yaml | 75 +++++++++
drivers/phy/Kconfig | 1 +
drivers/phy/Makefile | 1 +
drivers/phy/thead/Kconfig | 12 ++
drivers/phy/thead/Makefile | 2 +
drivers/phy/thead/phy-th1520-usb.c | 176 +++++++++++++++++++++
6 files changed, 267 insertions(+)
---
base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4
change-id: 20261126-b4-th1520-usb-phy-3ce536951c5a

Best regards,
--
Icenowy Zheng <zhengxingda@xxxxxxxxxxx>