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

"Carlo Caione" <[email protected]>
Newsgroups org.u-boot-project.lists.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.
>> 
>> 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 the
>> upstream binding.
> Can the U-Boot DTs be aligned with upstream DTs , and the driver fixed 
> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.