[PATCH 00/18] Add USB2.0 support for RZ/G3E

Tommaso Merciai posted 18 patches 4 months, 1 week ago
There is a newer version of this series
.../bindings/phy/renesas,usb2-phy.yaml        |  10 +-
.../reset/renesas,rzv2h-usb2phy-reset.yaml    |   4 +-
.../bindings/usb/renesas,usbhs.yaml           |   1 +
arch/arm64/boot/dts/renesas/r9a09g047.dtsi    | 122 +++++++++++
.../boot/dts/renesas/r9a09g047e57-smarc.dts   |  49 +++++
arch/arm64/boot/dts/renesas/r9a09g056.dtsi    |   6 +
.../dts/renesas/r9a09g056n48-rzv2n-evk.dts    |   5 +
arch/arm64/boot/dts/renesas/r9a09g057.dtsi    |   6 +
.../dts/renesas/r9a09g057h44-rzv2h-evk.dts    |   5 +
.../boot/dts/renesas/renesas-smarc2.dtsi      |  23 ++
drivers/clk/renesas/r9a09g047-cpg.c           |  18 +-
drivers/phy/renesas/phy-rcar-gen3-usb2.c      | 199 +++++++++++++-----
drivers/regulator/devres.c                    |   8 +-
drivers/reset/reset-rzv2h-usb2phy.c           | 105 ++++++---
.../dt-bindings/clock/renesas,r9a09g047-cpg.h |   2 +
15 files changed, 478 insertions(+), 85 deletions(-)
[PATCH 00/18] Add USB2.0 support for RZ/G3E
Posted by Tommaso Merciai 4 months, 1 week ago
Dear All,

This patch series adds USB2.0 support for the Renesas R9A09G047 (RZ/G3E)
SoC and enables it on the RZ/G3E SMARC II board.
The RZ/G3E USB2.0 IP is identical to that used in the RZ/V2H (R9A09G057),
so the existing support has been extended accordingly.

The series applies on top of [1] and [2] and includes driver cleanups,
VBUS/OTG handling fixes, regulator improvements, clock/reset additions,
and device tree updates for RZ/G3E, RZ/V2H, and RZ/V2N SoCs and boards.

Thanks & Regards,
Tommaso

[1] https://patchwork.kernel.org/project/linux-renesas-soc/list/?series=1001788
[2] https://patchwork.kernel.org/project/linux-renesas-soc/list/?series=1006104

Tommaso Merciai (18):
  phy: renesas: rcar-gen3-usb2: Use devm_pm_runtime_enable()
  phy: renesas: rcar-gen3-usb2: Factor out VBUS control logic
  reset: rzv2h-usb2phy: Simplify pm_runtime driver handling
  reset: rzv2h-usb2phy: Set VBENCTL register for OTG mode
  dt-bindings: phy: renesas,usb2-phy: Document USB VBUS regulator
  phy: renesas: rcar-gen3-usb2: Add regulator for OTG VBUS control
  regulator: devres: Disable exclusive regulator before releasing
  dt-bindings: clock: renesas,r9a09g047-cpg: Add USB2 PHY core clocks
  clk: renesas: r9a09g047: Add clock and reset entries for USB2
  dt-bindings: usb: renesas,usbhs: Add RZ/G3E SoC support
  dt-bindings: phy: renesas,usb2-phy: Document RZ/G3E SoC
  dt-bindings: reset: Document RZ/G3E USB2PHY reset
  arm64: dts: renesas: r9a09g056: Add USB2.0 PHY VBUS internal regulator
    node
  arm64: dts: renesas: r9a09g056n48-rzv2n-evk: Enable USB2 PHY0 VBUS
    support
  arm64: dts: renesas: r9a09g057: Add USB2.0 PHY VBUS internal regulator
    node
  arm64: dts: renesas: r9a09g057h44-rzv2h-evk: Enable USB2 PHY0 VBUS
    support
  arm64: dts: renesas: r9a09g047: Add USB2.0 support
  arm64: dts: renesas: r9a09g047e57-smarc: Enable USB2.0 support

 .../bindings/phy/renesas,usb2-phy.yaml        |  10 +-
 .../reset/renesas,rzv2h-usb2phy-reset.yaml    |   4 +-
 .../bindings/usb/renesas,usbhs.yaml           |   1 +
 arch/arm64/boot/dts/renesas/r9a09g047.dtsi    | 122 +++++++++++
 .../boot/dts/renesas/r9a09g047e57-smarc.dts   |  49 +++++
 arch/arm64/boot/dts/renesas/r9a09g056.dtsi    |   6 +
 .../dts/renesas/r9a09g056n48-rzv2n-evk.dts    |   5 +
 arch/arm64/boot/dts/renesas/r9a09g057.dtsi    |   6 +
 .../dts/renesas/r9a09g057h44-rzv2h-evk.dts    |   5 +
 .../boot/dts/renesas/renesas-smarc2.dtsi      |  23 ++
 drivers/clk/renesas/r9a09g047-cpg.c           |  18 +-
 drivers/phy/renesas/phy-rcar-gen3-usb2.c      | 199 +++++++++++++-----
 drivers/regulator/devres.c                    |   8 +-
 drivers/reset/reset-rzv2h-usb2phy.c           | 105 ++++++---
 .../dt-bindings/clock/renesas,r9a09g047-cpg.h |   2 +
 15 files changed, 478 insertions(+), 85 deletions(-)

-- 
2.43.0
Re: [PATCH 00/18] Add USB2.0 support for RZ/G3E
Posted by Conor Dooley 4 months, 1 week ago
On Wed, Oct 01, 2025 at 11:26:44PM +0200, Tommaso Merciai wrote:
> Dear All,
> 
> This patch series adds USB2.0 support for the Renesas R9A09G047 (RZ/G3E)
> SoC and enables it on the RZ/G3E SMARC II board.
> The RZ/G3E USB2.0 IP is identical to that used in the RZ/V2H (R9A09G057),
> so the existing support has been extended accordingly.
> 
> The series applies on top of [1] and [2] and includes driver cleanups,
> VBUS/OTG handling fixes, regulator improvements, clock/reset additions,
> and device tree updates for RZ/G3E, RZ/V2H, and RZ/V2N SoCs and boards.
> 
> Thanks & Regards,
> Tommaso

If you're not gonna CC me on all the patches in the series, please at
least CC me on the cover so I have an idea about what is going on in the
rest of the set.
All the bindings are
Acked-by: Conor Dooley <conor.dooley@microchip.com>

Cheers,
Conor.

> 
> [1] https://patchwork.kernel.org/project/linux-renesas-soc/list/?series=1001788
> [2] https://patchwork.kernel.org/project/linux-renesas-soc/list/?series=1006104
> 
> Tommaso Merciai (18):
>   phy: renesas: rcar-gen3-usb2: Use devm_pm_runtime_enable()
>   phy: renesas: rcar-gen3-usb2: Factor out VBUS control logic
>   reset: rzv2h-usb2phy: Simplify pm_runtime driver handling
>   reset: rzv2h-usb2phy: Set VBENCTL register for OTG mode
>   dt-bindings: phy: renesas,usb2-phy: Document USB VBUS regulator
>   phy: renesas: rcar-gen3-usb2: Add regulator for OTG VBUS control
>   regulator: devres: Disable exclusive regulator before releasing
>   dt-bindings: clock: renesas,r9a09g047-cpg: Add USB2 PHY core clocks
>   clk: renesas: r9a09g047: Add clock and reset entries for USB2
>   dt-bindings: usb: renesas,usbhs: Add RZ/G3E SoC support
>   dt-bindings: phy: renesas,usb2-phy: Document RZ/G3E SoC
>   dt-bindings: reset: Document RZ/G3E USB2PHY reset
>   arm64: dts: renesas: r9a09g056: Add USB2.0 PHY VBUS internal regulator
>     node
>   arm64: dts: renesas: r9a09g056n48-rzv2n-evk: Enable USB2 PHY0 VBUS
>     support
>   arm64: dts: renesas: r9a09g057: Add USB2.0 PHY VBUS internal regulator
>     node
>   arm64: dts: renesas: r9a09g057h44-rzv2h-evk: Enable USB2 PHY0 VBUS
>     support
>   arm64: dts: renesas: r9a09g047: Add USB2.0 support
>   arm64: dts: renesas: r9a09g047e57-smarc: Enable USB2.0 support
> 
>  .../bindings/phy/renesas,usb2-phy.yaml        |  10 +-
>  .../reset/renesas,rzv2h-usb2phy-reset.yaml    |   4 +-
>  .../bindings/usb/renesas,usbhs.yaml           |   1 +
>  arch/arm64/boot/dts/renesas/r9a09g047.dtsi    | 122 +++++++++++
>  .../boot/dts/renesas/r9a09g047e57-smarc.dts   |  49 +++++
>  arch/arm64/boot/dts/renesas/r9a09g056.dtsi    |   6 +
>  .../dts/renesas/r9a09g056n48-rzv2n-evk.dts    |   5 +
>  arch/arm64/boot/dts/renesas/r9a09g057.dtsi    |   6 +
>  .../dts/renesas/r9a09g057h44-rzv2h-evk.dts    |   5 +
>  .../boot/dts/renesas/renesas-smarc2.dtsi      |  23 ++
>  drivers/clk/renesas/r9a09g047-cpg.c           |  18 +-
>  drivers/phy/renesas/phy-rcar-gen3-usb2.c      | 199 +++++++++++++-----
>  drivers/regulator/devres.c                    |   8 +-
>  drivers/reset/reset-rzv2h-usb2phy.c           | 105 ++++++---
>  .../dt-bindings/clock/renesas,r9a09g047-cpg.h |   2 +
>  15 files changed, 478 insertions(+), 85 deletions(-)
> 
> -- 
> 2.43.0
> 
Re: [PATCH 00/18] Add USB2.0 support for RZ/G3E
Posted by Tommaso Merciai 4 months, 1 week ago
Hi Conor,
Thanks for your review.

On Thu, Oct 02, 2025 at 07:48:57PM +0100, Conor Dooley wrote:
> On Wed, Oct 01, 2025 at 11:26:44PM +0200, Tommaso Merciai wrote:
> > Dear All,
> > 
> > This patch series adds USB2.0 support for the Renesas R9A09G047 (RZ/G3E)
> > SoC and enables it on the RZ/G3E SMARC II board.
> > The RZ/G3E USB2.0 IP is identical to that used in the RZ/V2H (R9A09G057),
> > so the existing support has been extended accordingly.
> > 
> > The series applies on top of [1] and [2] and includes driver cleanups,
> > VBUS/OTG handling fixes, regulator improvements, clock/reset additions,
> > and device tree updates for RZ/G3E, RZ/V2H, and RZ/V2N SoCs and boards.
> > 
> > Thanks & Regards,
> > Tommaso
> 
> If you're not gonna CC me on all the patches in the series, please at
> least CC me on the cover so I have an idea about what is going on in the
> rest of the set.

Sorry, I made a mistake when I sent the series.
I only ran ./scripts/get_maintainer.pl on some patches, not all.
My fault.

> All the bindings are
> Acked-by: Conor Dooley <conor.dooley@microchip.com>

Thanks for your tag!

Regards,
Tommaso

> 
> Cheers,
> Conor.
> 
> > 
> > [1] https://patchwork.kernel.org/project/linux-renesas-soc/list/?series=1001788
> > [2] https://patchwork.kernel.org/project/linux-renesas-soc/list/?series=1006104
> > 
> > Tommaso Merciai (18):
> >   phy: renesas: rcar-gen3-usb2: Use devm_pm_runtime_enable()
> >   phy: renesas: rcar-gen3-usb2: Factor out VBUS control logic
> >   reset: rzv2h-usb2phy: Simplify pm_runtime driver handling
> >   reset: rzv2h-usb2phy: Set VBENCTL register for OTG mode
> >   dt-bindings: phy: renesas,usb2-phy: Document USB VBUS regulator
> >   phy: renesas: rcar-gen3-usb2: Add regulator for OTG VBUS control
> >   regulator: devres: Disable exclusive regulator before releasing
> >   dt-bindings: clock: renesas,r9a09g047-cpg: Add USB2 PHY core clocks
> >   clk: renesas: r9a09g047: Add clock and reset entries for USB2
> >   dt-bindings: usb: renesas,usbhs: Add RZ/G3E SoC support
> >   dt-bindings: phy: renesas,usb2-phy: Document RZ/G3E SoC
> >   dt-bindings: reset: Document RZ/G3E USB2PHY reset
> >   arm64: dts: renesas: r9a09g056: Add USB2.0 PHY VBUS internal regulator
> >     node
> >   arm64: dts: renesas: r9a09g056n48-rzv2n-evk: Enable USB2 PHY0 VBUS
> >     support
> >   arm64: dts: renesas: r9a09g057: Add USB2.0 PHY VBUS internal regulator
> >     node
> >   arm64: dts: renesas: r9a09g057h44-rzv2h-evk: Enable USB2 PHY0 VBUS
> >     support
> >   arm64: dts: renesas: r9a09g047: Add USB2.0 support
> >   arm64: dts: renesas: r9a09g047e57-smarc: Enable USB2.0 support
> > 
> >  .../bindings/phy/renesas,usb2-phy.yaml        |  10 +-
> >  .../reset/renesas,rzv2h-usb2phy-reset.yaml    |   4 +-
> >  .../bindings/usb/renesas,usbhs.yaml           |   1 +
> >  arch/arm64/boot/dts/renesas/r9a09g047.dtsi    | 122 +++++++++++
> >  .../boot/dts/renesas/r9a09g047e57-smarc.dts   |  49 +++++
> >  arch/arm64/boot/dts/renesas/r9a09g056.dtsi    |   6 +
> >  .../dts/renesas/r9a09g056n48-rzv2n-evk.dts    |   5 +
> >  arch/arm64/boot/dts/renesas/r9a09g057.dtsi    |   6 +
> >  .../dts/renesas/r9a09g057h44-rzv2h-evk.dts    |   5 +
> >  .../boot/dts/renesas/renesas-smarc2.dtsi      |  23 ++
> >  drivers/clk/renesas/r9a09g047-cpg.c           |  18 +-
> >  drivers/phy/renesas/phy-rcar-gen3-usb2.c      | 199 +++++++++++++-----
> >  drivers/regulator/devres.c                    |   8 +-
> >  drivers/reset/reset-rzv2h-usb2phy.c           | 105 ++++++---
> >  .../dt-bindings/clock/renesas,r9a09g047-cpg.h |   2 +
> >  15 files changed, 478 insertions(+), 85 deletions(-)
> > 
> > -- 
> > 2.43.0
> >