These patches enable support for USB 2.0 on the Renesas RZ/G2L EVK, supporting both the USB Type-A port and the USB OTG port. It is possible to load and boot Linux from a USB Mass Storage device connected to either port.
There should be no change to the operation of R-Car gen3 boards, but I don't have any of them available to test to confirm this myself. Changes v1->v2: - Add missing include <dm/device-internal.h> in reset-rzg2l-usbphy-ctrl.c. - Simplify reset control: we can just set the RESET_SEL_* bits in rzg2l_usbphy_ctrl_probe() and leave them set. - Use clrbits_le32() in rzg2l_usbphy_ctrl_deassert(). - Include return value of the failing function in dev_err() prints. - Capitalise G in "R-Car Gen3". - Added Marek's Reviewed-by tags. Paul Barker (5): reset: rzg2l-usbphy-ctrl: Add new driver regulator: rzg2l-usbphy: Add new driver reset: rzg2l-usbphy-ctrl: Connect up vbus regulator phy: rcar: Support RZ/G2L USB PHY renesas_rzg2l_smarc_defconfig: Enable USB support configs/renesas_rzg2l_smarc_defconfig | 8 + drivers/phy/Kconfig | 4 +- drivers/phy/phy-rcar-gen3.c | 79 ++++++++-- drivers/power/regulator/Kconfig | 8 + drivers/power/regulator/Makefile | 1 + .../power/regulator/rzg2l-usbphy-regulator.c | 42 ++++++ drivers/reset/Kconfig | 10 ++ drivers/reset/Makefile | 1 + drivers/reset/reset-rzg2l-usbphy-ctrl.c | 142 ++++++++++++++++++ include/renesas/rzg2l-usbphy.h | 17 +++ 10 files changed, 296 insertions(+), 16 deletions(-) create mode 100644 drivers/power/regulator/rzg2l-usbphy-regulator.c create mode 100644 drivers/reset/reset-rzg2l-usbphy-ctrl.c create mode 100644 include/renesas/rzg2l-usbphy.h -- 2.43.0