On 2026-10-16T07:25:19, Mehmet Fide <[email protected]> wrote: > usb: ehci-vf: take the register bases from the device tree > > The driver keeps its own tables of PHY and controller base addresses > and reaches the anatop block through a hardcoded address, although the > device tree describes all three: the controller points at its PHY and > usbmisc nodes, and the PHY at its anatop. > > Read them from there and drop the tables: the two phandles of the > controller node through dev_read_phandle_with_args(), the anatop one > from the PHY node. The helpers take the private data instead of single > addresses. The port number stays only for the choice between PLL3 and > PLL7, which the device tree does not express, and now comes from the > usbphy alias of the PHY node. > > The usbmisc node already starts at the non-core registers, so the > driver no longer adds an offset to reach them. > > Signed-off-by: Mehmet Fide <[email protected]> > > drivers/usb/host/ehci-vf.c | 132 > ++++++++++++++++++++++++--------------------- > 1 file changed, 72 insertions(+), 60 deletions(-)
Reviewed-by: Simon Glass <[email protected]>
