Linux seems to move towards not having glue device tree nodes separate from the DWC3 nodes. Import the Linux generic driver for use with Layerscape and other platforms that may be migrated in future.
This meant for next and applies on top of the temporary workaround in master at https://lore.barebox.org/barebox/[email protected]/T/#u Ahmad Fatoum (5): usb: dwc3: export dwc3_core_probe/dwc3_core_remove like Linux usb: dwc3: add support for Global SoC Bus Configuration Register clk: implement and use clk_bulk_get_all_enabled helper usb: dwc3: add DesignWare USB3 generic platform driver Revert "ARM64: dts: Layerscape: workaround v6.19-rc1 DT sync DWC3 breakage" arch/arm/dts/fsl-ls1028a.dtsi | 9 -- arch/arm/dts/fsl-ls1046a.dtsi | 13 --- drivers/bus/simple-pm-bus.c | 6 +- drivers/clk/clk-bulk.c | 19 ++++ drivers/usb/dwc3/Kconfig | 11 +++ drivers/usb/dwc3/Makefile | 1 + drivers/usb/dwc3/core.c | 113 ++++++++++++++++++------ drivers/usb/dwc3/core.h | 8 ++ drivers/usb/dwc3/dwc3-generic-plat.c | 125 +++++++++++++++++++++++++++ drivers/usb/dwc3/glue.h | 63 ++++++++++++++ drivers/usb/host/ehci-hcd.c | 5 +- include/linux/clk.h | 16 ++++ 12 files changed, 332 insertions(+), 57 deletions(-) create mode 100644 drivers/usb/dwc3/dwc3-generic-plat.c create mode 100644 drivers/usb/dwc3/glue.h -- 2.47.3
