All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] usb: ehci-vf: take the register bases from the device tree
@ 2026-08-19  9:37 Mehmet Fide
  2026-08-19  9:37 ` [PATCH 1/3] usb: ehci-vf: remove the code path for a build without DM_USB Mehmet Fide
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Mehmet Fide @ 2026-08-19  9:37 UTC (permalink / raw)
  To: Marek Vasut; +Cc: Tom Rini, u-boot, Mehmet Fide

From: Mehmet Fide <mehmet.fide@screeningeagle.com>

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/1a8642c2-58c8-45fb-a0b6-2ae91076e790@mailbox.org/

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


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

end of thread, other threads:[~2026-08-20  3:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-19  9:37 [PATCH 0/3] usb: ehci-vf: take the register bases from the device tree Mehmet Fide
2026-08-19  9:37 ` [PATCH 1/3] usb: ehci-vf: remove the code path for a build without DM_USB Mehmet Fide
2026-08-19 10:08   ` Marek Vasut
2026-08-19  9:37 ` [PATCH 2/3] usb: ehci-vf: drop the empty bind hook Mehmet Fide
2026-08-19 10:10   ` Marek Vasut
2026-08-19  9:37 ` [PATCH 3/3] usb: ehci-vf: take the register bases from the device tree Mehmet Fide
2026-08-19 19:50   ` Marek Vasut

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.