[PATCH v2 02/12] usb: dwc3-generic: Allow different controller DT node pattern

Marek Vasut marex at denx.de
Wed Feb 1 22:49:30 CET 2023


On 2/1/23 02:13, Kunihiko Hayashi wrote:
> The most of devicetree has the following USB node structure.
> The controller node is placed as a child node of the glue node.
> Current dwc3-generic driver works on this premise.
> 
>      glue {
>          /* glue node */
> 	usb {
>              /* controller node */
> 	};
>      };
> 
> However, UniPhier original devicetree has the following USB node structure.
> The controller node is separately placed from the glue node.
> 
>      usb {
>          /* controller node */
>      };
>      glue {
>          /* glue node */
>      };
> 
> In dwc_glue_bind(), this patch provides .glue_get_ctrl_dev() callback to
> get such a controller node and binds the driver related to the node.
> 
> If this callback isn't defined, dwc_glue_bind() looks for the controller
> nodes from the child nodes, as before.
> 
> Suggested-by: Marek Vasut <marex at denx.de>
> Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko at socionext.com>

Reviewed-by: Marek Vasut <marex at denx.de>


More information about the U-Boot mailing list