[PATCH 0/3] usb: ehci-vf: take the register bases from the device tree

Mehmet Fide <[email protected]>
Newsgroups org.u-boot-project.lists.u-boot
Message-ID <[email protected]>
From: Mehmet Fide <[email protected]>

Marek asked, when he looked at the portnr fix, whether the index based
PHY handling could go away entirely in favour of parsing the addresses
from the device tree:

  https://lore.kernel.org/u-boot/[email protected]/

This is that follow-up. Patch 3 does it the way ehci-mx6 does: the
controller node points at its PHY and its usbmisc block, the PHY points
at the anatop, and all three addresses come from there, so both base
address tables are gone.

What is left of the index is a port number for the choice between PLL3
and PLL7, which the device tree does not describe. It no longer comes
from the sequence number of the controller but from the alias of the PHY
node, again as ehci-mx6 does.

Patches 1 and 2 remove dead code that stood in the way. The first is a
code path for a build without DM_USB that cannot be selected and does
not compile; the second an empty bind hook whose comment talks about
sequence numbers this driver no longer uses at all.

Tested on a Colibri VF50 V1.2A on an Iris carrier, U-Boot 2026.07 from
NAND.

Mehmet Fide (3):
  usb: ehci-vf: remove the code path for a build without DM_USB
  usb: ehci-vf: drop the empty bind hook
  usb: ehci-vf: take the register bases from the device tree

 drivers/usb/host/ehci-vf.c | 184 ++++++++++++++-----------------------
 1 file changed, 69 insertions(+), 115 deletions(-)

-- 
2.54.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.