Skip to content

Armada 37xx: port comphy to generic-phys (PLEASE TEST)

Tomasz Maciej Nowak u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 11 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 11 patches the cover letter announces are in this archive.

Reviews trailers per patch

PatchTomasz Maciej Nowak
SeriesT-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH u-boot-marvell 00/11] Armada 37xx: port comphy to generic-phys (PLEASE TEST)

W dniu 19.04.2020 o?17:48, Marek Beh?n pisze:

Quoted 27 lines

Hi,

I have ported the COMPHY and UTMI PHY drivers from Linux to U-Boot. With this we are able to abandon the current comphy_a3700 driver, which is incompatible with Linux' device trees. So if we want to have DTS files for A3720 boards identical to Linux', we have to do this.

This series adds the set_mode functionality to generic-phy, then adds the ports of UTMI PHY and COMPHY drivers from Linux, then makes some drivers use the generic-phy API on device probe (these drivers are mvneta, ahci_mvebu, pci-aardvark, xhci-mvebu and ehci-marvell),
then converts defconfigs and device trees to use the new bindings and drivers, and the last patch removes the comphy_a3700 driver.

I have successfully compiled U-Boot without errors for all these boards (their defconigs) and also for Armada 8k boards, but am unable to test on anything else but Turris MOX.

Please note that in order for the COMPHY driver to work, you have to use current ARM Trusted Firmware (such that it supports PHY powering on/off via SMC calls).

It would be nice if people tested this series.

Marek

Quoted 12 lines

Marek Beh?n (11):
phy: add support for setting phy mode
phy: port Armada 37xx UTMI PHY from Linux
phy: port Armada 37xx COMPHY from Linux
usb: host: make PHY handling more generic
usb: ehci-marvell: call generic-phy initialization
usb: xhci-mvebu: call generic-phy initialization
pci: aardvark: add PHY support
ata: ahci_mvebu: add PHY support
net: mvneta: add PHY support
arm64: mvebu: armada-37xx: convert to use new generic-phy drivers
phy: marvell: remove comphy_a3700 driver

Hi Marek.
Tests done on ESPRESSObin.
I only tested USB ports and the files are loading fine to memory. Also the pci command lists connected card, so

Signature · 1 line
TMN