Devicetree
 help / color / mirror / Atom feed
* [PATCH v5 0/2] phy: add support for TH1520 USB PHY
@ 2026-11-30  9:07 Icenowy Zheng
  2026-11-30  9:07 ` [PATCH v5 1/2] dt-bindings: phy: add binding for T-Head " Icenowy Zheng
  2026-11-30  9:07 ` [PATCH v5 2/2] phy: add a driver " Icenowy Zheng
  0 siblings, 2 replies; 4+ messages in thread
From: Icenowy Zheng @ 2026-11-30  9:07 UTC (permalink / raw)
  To: Vinod Koul, Neil Armstrong, Manivannan Sadhasivam, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Wei Fu, Drew Fustini,
	Philipp Zabel
  Cc: linux-phy, devicetree, linux-kernel, Han Gao, Icenowy Zheng,
	Conor Dooley, Drew Fustini, Manivannan Sadhasivam

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@iscas.ac.cn

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@iscas.ac.cn>


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

end of thread, other threads:[~2026-11-30  9:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-30  9:07 [PATCH v5 0/2] phy: add support for TH1520 USB PHY Icenowy Zheng
2026-11-30  9:07 ` [PATCH v5 1/2] dt-bindings: phy: add binding for T-Head " Icenowy Zheng
2026-11-30  9:12   ` sashiko-bot
2026-11-30  9:07 ` [PATCH v5 2/2] phy: add a driver " Icenowy Zheng

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