[PATCH 0/6] usb: Migrate drivers to use dev/ofnode APIs
Peng Fan (OSS)
peng.fan at oss.nxp.com
Tue May 26 11:09:56 CEST 2026
Convert several USB drivers to use the dev_* and ofnode_* APIs and
removes dependency on fdt/devfdt helpers.
The motivation is to:
- Eliminate direct usage of gd->fdt_blob and fdtdec_* interfaces
- Avoid devfdt_* helpers in favor of backend-agnostic APIs
- Ensure compatibility with both live device tree and flat DT
Summary:
- Clean up unused legacy variables
- Convert MUSB driver to use dev_* and ofnode_* APIs
- Improve phandle parsing with proper validation
- Replace devfdt_remap_addr_* with dev_remap_addr_* in MTK and MTU3
- Replace devfdt_get_addr_* with dev_read_addr_* in MVEBU
Not have the boards to test mainly regarding the musb changes,
just best practice for the migration.
Signed-off-by: Peng Fan <peng.fan at nxp.com>
---
Peng Fan (6):
usb: musb-new: Drop unused variables
usb: musb-new: Use ofnode and dev APIs
usb: musb-new: Update phandle handling
usb: host: xhci: Use dev_remap_addr_name()
usb: mtu3: Use dev_remap_addr_name()
usb: xhci: mvebu: Use dev_read_addr_index()
drivers/usb/host/xhci-mtk.c | 4 ++--
drivers/usb/host/xhci-mvebu.c | 2 +-
drivers/usb/mtu3/mtu3_plat.c | 4 ++--
drivers/usb/musb-new/ti-musb.c | 45 +++++++++++++++++++++---------------------
4 files changed, 27 insertions(+), 28 deletions(-)
---
base-commit: bb354d04459f5425318aeb8a70bae995ee573f1d
change-id: 20260526-devfdt-usb-8a17a2383cd6
Best regards,
--
Peng Fan <peng.fan at nxp.com>
More information about the U-Boot
mailing list