[PATCH] usb: gadget: renesas: add support for RZ/G2L SoC

Marek Vasut marek.vasut at mailbox.org
Thu Apr 16 00:38:31 CEST 2026


On 4/15/26 7:21 PM, Michele Bisogno wrote:
> Support the Renesas RZ/G2L (r9a07g044) USBHS IP by addressing
> platform-specific reset, glue logic, and FIFO access requirements.
> 
> - regulator: rzg2l: Implement CON_CTRL manual connectivity notification.
>    By setting SEL_CONNECT and CONNECT_1, the UTM+ core is notified of
>    connection status in peripheral mode.
> - gadget: common: Add "renesas,rzg2l-usbhs" compatible and support
>    reset deassertion. Fix a re-entrancy bug by calling usb_del_gadget_udc()
>    in the remove callback to prevent stale UDC list entries.
> - gadget: fifo: Refactor PIO push/pop logic to handle trailing bytes
>    using iowrite8/ioread8. This ensures correct data alignment on
>    RZ/G2L and simplifies the data transfer loop.
> 
> Signed-off-by: Michele Bisogno <micbis.openwrt at gmail.com>
> ---
>   .../power/regulator/rzg2l-usbphy-regulator.c  | 10 ++++++--

Regulator change should be a separate patch please.

>   drivers/usb/gadget/rcar/common.c              | 15 ++++++++++++
>   drivers/usb/gadget/rcar/fifo.c                | 23 +++++++++++--------
drivers/usb/gadget/rcar is pulled from Linux 1b4861e32e46 ("Linux 
6.9.3") , but none of these changes in this patch are even in Linux 
next. Is there at least a submitted Linux kernel patch which adds these 
matching changes ? I would very much like to keep the USBHS drivers 
synchronized between U-Boot and Linux.

The addition of RZ/G2L into USBHS driver in Linux was much simpler:

https://lore.kernel.org/r/20240319105356.87287-5-biju.das.jz@bp.renesas.com


More information about the U-Boot mailing list