The MTU3 glue driver currently depends on the legacy U-Boot-only
mediatek,ssusb child node. The upstream binding instead places the gadget
resources and dr_mode directly on the controller.

Teach the driver to support both layouts, then convert the MT8183
devicetree to the upstream representation. MT8512 keeps the legacy layout
because its compatible is not yet described by the upstream schema.

Signed-off-by: Carlo Caione <[email protected]>
---
Changes in v4:
- Describe mediatek,ssusb as a legacy U-Boot-only binding
- Fix the MAC resource error and remove redundant ofnode initialization
- Convert the MT8183 devicetree to the upstream MTU3 binding
- Link to v3: 
https://patch.msgid.link/20260720-ccaione-upstream-mtu3-spl-gadget-v3-1-91cff44b1...@baylibre.com

Changes in v3:
- Remove the temporary platform data and derive the binding during probe
- Use dev_read_addr_name() for the MAC resource
- Link to v2: 
https://patch.msgid.link/20260718-ccaione-upstream-mtu3-spl-gadget-v2-1-7f69ca462...@baylibre.com

Changes in v2:
- Removed typecast horror
- Added platform storage to pass around legacy flags and device
- Link to v1: 
https://patch.msgid.link/20260717-ccaione-upstream-mtu3-spl-gadget-v1-1-57a3e2d0a...@baylibre.com

---
Carlo Caione (2):
      usb: mtu3: support the upstream devicetree binding
      arm: dts: mt8183: use the upstream MTU3 binding

 arch/arm/dts/mt8183-pumpkin.dts |  4 ----
 arch/arm/dts/mt8183.dtsi        | 12 ++----------
 drivers/usb/mtu3/mtu3_plat.c    | 23 ++++++++++++++++++++---
 3 files changed, 22 insertions(+), 17 deletions(-)
---
base-commit: d0c49353a648e135f269a2953dc9326505ba87de
change-id: 20260717-ccaione-upstream-mtu3-spl-gadget-aa3d39cad06a

Best regards,
--  
Carlo Caione <[email protected]>

Reply via email to