Re: [PATCH v4 1/2] usb: mtu3: support the upstream devicetree binding

"Carlo Caione" <[email protected]> Tue, 04 Aug 2026 11:17:05 +0200
Newsgroups gmane.comp.boot-loaders.u-boot
Message-ID <[email protected]>
On Sun Aug 2, 2026 at 10:13 PM CEST, Marek Vasut wrote:
> On 7/22/26 11:43 PM, Carlo Caione wrote:
>> The MTU3 glue driver only supports the legacy U-Boot layout, where a
>> synthetic mediatek,ssusb child owns the gadget resources and dr_mode.
>> Upstream devicetrees instead place these properties directly on the
>> controller node. The gadget therefore cannot bind when U-Boot uses an
>> upstream devicetree.
>>=20
>> Search the controller children for the legacy U-Boot-only node and use
>> the controller itself when none is present. This preserves compatibility
>> with existing U-Boot devicetrees while allowing the driver to consume th=
e
>> upstream binding.
> Can the U-Boot DTs be aligned with upstream DTs , and the driver fixed=20
> instead ? Then this compatibility goo won't be necessary ?

Yes, that would require a bigger change in the driver to support host
and peripheral in the same node / driver. I'll push a V5 soon.

Thanks,

--
Carlo Caione