Re: [PATCH v12 1/1] mux: Add driver for Renesas RZ/V2H USB VBENCTL VBUS_SEL mux
"Lad, Prabhakar" <[email protected]> Thu, 6 Aug 2026 16:20:55 +0100
| Newsgroups | org.kernel.vger.linux-renesas-soc,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <CA+V-a8tR=eeLwGgnEXnw6teyHYeUapcd94xZNATSmuKUgJK_fw@mail.gmail.com> |
On Wed, Jul 15, 2026 at 11:19 AM Tommaso Merciai <[email protected]> wrote: > > As per the RZ/V2H(P) HW manual, VBUSEN can be controlled by the VBUS_SEL > bit of the VBENCTL Control Register. This register is mapped in the > reset framework. The reset driver expose this register as mux-controller > and instantiates this driver. The consumer will use the mux API to > control the VBUS_SEL bit. > > Reviewed-by: Philipp Zabel <[email protected]> > Signed-off-by: Tommaso Merciai <[email protected]> > --- > v11->v12 > - No changes, just rebased on top of next-20260714 > > v10->v11: > - No changes. > > v9->v10: > - No changes. > > v8->v9: > - Fixed driver comment year (2025 -> 2026) > - Switch from devm_regmap_init_mmio() to dev_get_regmap(). > - Drop unnecessasry include bitops.h, of.h, property.h and > drivers/reset/reset-rzv2h-usb2phy.h headers, driver is now based on regmap. > - Collected PZabel tag. > > v7->v8: > - No changes. > > v6->v7: > - No changes. > > v5->v6: > - No changes. > > v4->v5: > - Changed file name to rzv2h-usb-vbenctl.c and Fixed > Makefile, Kconfig, function names accordingly. > - Changed driver .name to "vbenctl" and fix auxiliary_device_id name. > - Updated commit msg. > > v3->v4: > - Removed mux_chip->dev.of_node not needed. > > v2->v3: > - Added mux_chip->dev.of_node = dev->of_node->child as the mux-controller > is an internal node. > - Fixed auxiliary_device_id name. > - Get rdev using from platform_data. > - Drop struct auxiliary_device adev from reset_rzv2h_usb2phy_adev > as it is needed. > - Drop to_reset_rzv2h_usb2phy_adev() as it is not needed. > > v1->v2: > - New patch > > drivers/mux/Kconfig | 11 +++++ > drivers/mux/Makefile | 2 + > drivers/mux/rzv2h-usb-vbenctl.c | 85 +++++++++++++++++++++++++++++++++ > 3 files changed, 98 insertions(+) > create mode 100644 drivers/mux/rzv2h-usb-vbenctl.c > Reviewed-by: Lad Prabhakar <[email protected]> Cheers, Prabhakar