[PATCH v4 2/6] phy: exynos5-usbdrd: support HS phy for ExynosAutov920
Pritam Manohar Sutar
pritam.sutar at samsung.com
Thu Jul 17 04:18:26 PDT 2025
Hi Krzysztof,
> -----Original Message-----
> From: Krzysztof Kozlowski <krzk at kernel.org>
> Sent: 12 July 2025 01:46 PM
> To: Pritam Manohar Sutar <pritam.sutar at samsung.com>; vkoul at kernel.org;
> kishon at kernel.org; robh at kernel.org; krzk+dt at kernel.org;
> conor+dt at kernel.org; alim.akhtar at samsung.com; andre.draszik at linaro.org;
> peter.griffin at linaro.org; neil.armstrong at linaro.org; kauschluss at disroot.org;
> ivo.ivanov.ivanov1 at gmail.com; m.szyprowski at samsung.com;
> s.nawrocki at samsung.com
> Cc: linux-phy at lists.infradead.org; devicetree at vger.kernel.org; linux-
> kernel at vger.kernel.org; linux-arm-kernel at lists.infradead.org; linux-samsung-
> soc at vger.kernel.org; rosa.pila at samsung.com; dev.tailor at samsung.com;
> faraz.ata at samsung.com; muhammed.ali at samsung.com;
> selvarasu.g at samsung.com
> Subject: Re: [PATCH v4 2/6] phy: exynos5-usbdrd: support HS phy for
> ExynosAutov920
>
> On 01/07/2025 14:07, Pritam Manohar Sutar wrote:
> > This SoC has a single USB 3.1 DRD combo phy that supports both
> > UTMI+ (HS) and PIPE3 (SS) and three USB2.0 DRD HS phy controllers
> > those only support the UTMI+ (HS) interface.
> >
> > Support only UTMI+ port for this SoC which is very similar to what the
> > existing Exynos850 supports.
> >
> > This SoC shares phy isol between USBs. Bypass PHY isol when first USB
> > is powered on and enable it when all of then are powered off. Add
> > required change in phy driver to support HS phy for this SoC.
> >
> > Reviewed-by: Neil Armstrong <neil.armstrong at linaro.org>
>
> Drop
Sure.
>
> You again added significant changes and claimed they were reviewed.
>
> > Signed-off-by: Pritam Manohar Sutar <pritam.sutar at samsung.com>
> > ---
> > drivers/phy/samsung/phy-exynos5-usbdrd.c | 131 ++++++++++++++++++++
> > include/linux/soc/samsung/exynos-regs-pmu.h | 2 +
> > 2 files changed, 133 insertions(+)
> >
> > diff --git a/drivers/phy/samsung/phy-exynos5-usbdrd.c
> > b/drivers/phy/samsung/phy-exynos5-usbdrd.c
> > index dd660ebe8045..64f3316f6ad4 100644
> > --- a/drivers/phy/samsung/phy-exynos5-usbdrd.c
> > +++ b/drivers/phy/samsung/phy-exynos5-usbdrd.c
> > @@ -480,6 +480,8 @@ struct exynos5_usbdrd_phy {
> > enum typec_orientation orientation;
> > };
> >
> > +static atomic_t usage_count = ATOMIC_INIT(0);
Presently, existed SoC in driver, supports only one USB port and
it does not have any complications to handle shared isol. However,
phy isols are shared across USB20s in ExynosAutov920
(here ExynosAutov920 has 4 ports with shared phy isols). phy isol
should be enabled when all ports are disabled else bypassed if any
one of usbs is in use. phy isol is handled at bootloader in Downstream code.
USB20 ports won't work if isol is not handled in any bootloader. Hence,
added usage_count for the purpose.
But still, it depends on phy isol architecture, if SoC shares phy isol with
USBs or it can have separate phy isols for each usbs.
>
> No, you cannot have singletons. How are you going to handle two independent
> phys?
Agreed with your point and have to handle shared and separate isols in same driver.
We will take this later in subsequent patch-sets.
For now, will remove this usage_count and bring up only basic support for ExynosAutov920 phy.
>
> Best regards,
> Krzysztof
Thank you.
Regards,
Pritam
More information about the linux-phy
mailing list