Thread (25 messages) 25 messages, 4 authors, 2025-07-24

RE: [PATCH v4 2/6] phy: exynos5-usbdrd: support HS phy for ExynosAutov920

From: Pritam Manohar Sutar <hidden>
Date: 2025-07-17 11:20:29
Also in: linux-devicetree, linux-phy, linux-samsung-soc, lkml

Hi Krzysztof,
-----Original Message-----
From: Krzysztof Kozlowski <krzk@kernel.org>
Sent: 12 July 2025 01:46 PM
To: Pritam Manohar Sutar <redacted>; vkoul@kernel.org;
kishon@kernel.org; robh@kernel.org; krzk+dt@kernel.org;
conor+dt@kernel.org; alim.akhtar@samsung.com; andre.draszik@linaro.org;
peter.griffin@linaro.org; neil.armstrong@linaro.org; kauschluss@disroot.org;
ivo.ivanov.ivanov1@gmail.com; m.szyprowski@samsung.com;
s.nawrocki@samsung.com
Cc: linux-phy@lists.infradead.org; devicetree@vger.kernel.org; linux-
kernel@vger.kernel.org; linux-arm-kernel@lists.infradead.org; linux-samsung-
soc@vger.kernel.org; rosa.pila@samsung.com; dev.tailor@samsung.com;
faraz.ata@samsung.com; muhammed.ali@samsung.com;
selvarasu.g@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:
quoted
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@linaro.org>
Drop
Sure.
You again added significant changes and claimed they were reviewed.
quoted
Signed-off-by: Pritam Manohar Sutar <redacted>
---
 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

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help