Skip to content

phy: nuvoton: Add MA35D1 USB2 OTG PHY driver

Joey Lu linux-arm-kernel linux-devicetree linux-phy lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2dt-bindings: phy: nuvoton: Add MA35D1 USB2 OTG PHY bindingDocumentation/devicetree/bindings/phy/nuvoton,ma35d1-usb2-phy-otg.yaml+79 -02 replies
2/2phy: nuvoton: Add MA35D1 USB2 OTG PHY driverdrivers/phy/nuvoton/Kconfig drivers/phy/nuvoton/Makefile drivers/phy/nuvoton/phy-ma35d1-otg.c+280 -02 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] phy: nuvoton: Add MA35D1 USB2 OTG PHY driver

The Nuvoton MA35D1 SoC has two USB 2.0 ports:

USB0 is an OTG-capable port. Its physical signals are routed by a hardware mux to either a DWC2 gadget controller or the EHCI0/OHCI0 host controllers, depending on the USB ID pin state. The DWC2 IP is device-only in hardware, so all host-mode operation on USB0 is handled by EHCI0/OHCI0.

USB1 is a dedicated host-only port served by EHCI1/OHCI1.

About this driver:

- Runs the PHY Power-On Reset sequence, with a guard that skips re-initialization if the PHY is already operational.

- Supports optional resistor calibration trim (nuvoton,rcalcode) and over-current detect polarity configuration (nuvoton,oc-active-high).

- For PHY0 (USB0) only: registers a USB role switch that reads the hardware ID pin state from PWRONOTP[16] on every query.

Joey Lu (2):
dt-bindings: phy: nuvoton: Add MA35D1 USB2 OTG PHY binding
phy: nuvoton: Add MA35D1 USB2 OTG PHY driver

 .../phy/nuvoton,ma35d1-usb2-phy-otg.yaml      |  79 ++++++
 drivers/phy/nuvoton/Kconfig                   |  15 +
 drivers/phy/nuvoton/Makefile                  |   1 +
 drivers/phy/nuvoton/phy-ma35d1-otg.c          | 264 ++++++++++++++++++
 4 files changed, 359 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/phy/nuvoton,ma35d1-usb2-phy-otg.yaml
 create mode 100644 drivers/phy/nuvoton/phy-ma35d1-otg.c
Signature · 1 line
2.43.0