Re: [PATCH v6 2/3] usb: mtu3: support the upstream devicetree binding

Marek Vasut via U-Boot <[email protected]>
Newsgroups gmane.comp.boot-loaders.u-boot
Message-ID <a0483caa-3bed-454c-b946-4a237d4380db__33289.0196282946$1786074514$gmane$org@mailbox.org>
On 8/6/26 2:54 PM, Carlo Caione wrote:
> The MTU3 glue driver expects a synthetic mediatek,ssusb child that
> combines the device and xHCI register windows. Upstream devicetrees
> instead put the device resources on the controller node and describe the
> xHCI window with a standard child node, so U-Boot cannot use an upstream
> topology.
> 
> Switch to the upstream layout. The controller owns the shared resources
> and the device MAC, with the device register offsets relative to it as in
> Linux. The gadget role binds as a node-less internal device, while the
> host role binds to an enabled xHCI child and uses its own clocks,
> supplies and register window. dr_mode selects the role and defaults to
> otg, and the Kconfig choice constrains which role the build provides.
> The legacy child layout is rejected explicitly so its combined register
> window cannot be mistaken for the device MAC.
> 
> Convert the in-tree MT8183 and MT8512 devicetrees in the same commit so
> neither platform is left without USB. MT8512 stays peripheral-only
> because its xHCI host interrupt is not documented and the
> mediatek,mtk-xhci binding requires it.
> 
> Signed-off-by: Carlo Caione <[email protected]>
Reviewed-by: Marek Vasut <[email protected]>
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.