From: Krishna Kurapati <krishna.kurapati@oss.qualcomm.com>
To: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Cc: Peter Chen <peter.chen@oss.qualcomm.com>,
Krzysztof Kozlowski <krzk@kernel.org>,
Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Wesley Cheng <quic_wcheng@quicinc.com>,
"linux-arm-msm@vger.kernel.org" <linux-arm-msm@vger.kernel.org>,
"linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v4 1/2] dt-bindings: qcom,snps-dwc3: Add property indicating presence of eUSB2 phy
Date: Thu, 16 Jul 2026 09:42:35 +0530 [thread overview]
Message-ID: <b697c933-4556-404a-95f3-2a347a83e390@oss.qualcomm.com> (raw)
In-Reply-To: <algTE3PyJVxLdFq6@vbox>
On 7/16/2026 4:49 AM, Thinh Nguyen wrote:
> On Wed, Jul 15, 2026, Krishna Kurapati wrote:
>>
>>
>> On 7/15/2026 4:53 AM, Thinh Nguyen wrote:
>>> On Mon, Jul 13, 2026, Peter Chen wrote:
>>>> On 26-07-13 23:41:14, Thinh Nguyen wrote:
>>>>> On Mon, Jul 13, 2026, Peter Chen wrote:
>>>>>> On 26-07-13 08:26:59, Krzysztof Kozlowski wrote:
>>>>>>>>> And Dmitry already said this at v3.
>>>>>>>>
>>>>>>>> And I've already responded to his comment in v3:
>>>>>>>> https://urldefense.com/v3/__https://lore.kernel.org/linux-usb/ahjYwJtiMsm0BcCh@vbox/__;!!A4F2R9G_pg!YksJ0tPtRth9ez8t0GB_WaxH3ynx3ya8M8aFIyKfYpApRC_79Ig93CqE2MKcrGJ6O6t_Dl3RD1zftrnxhdtcfoW7hgep8w$
>>>>>>>
>>>>>>> It does not change the fact that type of phy is implied by compatible,
>>>>>>> thus you do not get a new property.
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> For USB2 PHY, it has property "phy_type" already, it could extend support
>>>>>> list to eUSB2 like below, dwc3 qcom glue layer could call of_usb_get_phy_mode
>>>>>> or re-use dwc3->hsphy_mode depends on where it needs to use.
>>>>>>
>>>>>> diff --git a/drivers/usb/phy/of.c b/drivers/usb/phy/of.c
>>>>>> index 1ab134f45d67..5cbf17d493ad 100644
>>>>>> --- a/drivers/usb/phy/of.c
>>>>>> +++ b/drivers/usb/phy/of.c
>>>>>> @@ -16,6 +16,7 @@ static const char *const usbphy_modes[] = {
>>>>>> [USBPHY_INTERFACE_MODE_ULPI] = "ulpi",
>>>>>> [USBPHY_INTERFACE_MODE_SERIAL] = "serial",
>>>>>> [USBPHY_INTERFACE_MODE_HSIC] = "hsic",
>>>>>> + [USBPHY_INTERFACE_MODE_EUSB2] = "eusb2",
>>>>>> };
>>>>>>
>>>>>>
>>>>>
>>>>> eusb2 uses utmi, so it doesn't fit here as a separate mode.
>>>>>
>>>>
>>>> Hi Thinh
>>>>
>>>> Yes, eUSB2 is based on UTMI Parallel mode, but it has dedicated
>>>> Physical Layer Supplement [1], eg at CH2.4, it lists eUSB2 PHY
>>>> Features.
>>>>
>>>>
>>>>> To go this route properly, we'd need to introduce a new phy type
>>>>> attribute in the phy framework, which will be a bigger change that may
>>>>> impact more than this driver.
>>>>>
>>>>
>>>> It is not at generic PHY framework, it is just for USB PHY dedicated.
>>>>
>>>> I do not see big changes, it only needs to change above files and related
>>>> dt-binding files, and other users may leverage it if the controller
>>>> has special sequence or settings for eUSB2.
>>>>
>>>
>>> The usbphy_modes describes the interface between the controller and the
>>> phy. eusb2 still uses utmi, so adding eusb2 there is sematically
>>> incorrect. If we introduce the eusb2 mode there, we'd have to audit dwc3
>>> and every other driver that uses usbphy_modes to handle the new mode
>>> correctly.
>>
>> Hi Thinh,
>>
>> I don't think any existing drivers need to be modified after adding this. If
>> anyone wants to use the newly added enum for any eusb2 specific purpose,
>> they can do so in a diff change/patch I guess.
>>
>
> At minimum, dwc3 needs to be reviewed and updated for dwc->hsphy_mode
> check when configuring GUSB2PHYCFG. Regardless, phy type should not be a
> usbphy_modes enum as I noted above.
>
We can just add the enum for eusb2 in of.c as pointed by Peter in [1],
read that in dwc3-qcom.c and use it during suspend resume for interrupt
handling and to modify the DWC3_GUSB2PHYCFG_EUSB2OPMODE bit once we are
modifying it in core.
[1]: https://lore.kernel.org/all/alhDjZ0gJZq_7G6z@hu-petche-lv.qualcomm.com/
Regards,
Krishna,
next prev parent reply other threads:[~2026-07-16 4:12 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-09 8:52 [PATCH v4 0/2] Modify interrupt handling for eUSB2 Phy targets Krishna Kurapati
2026-07-09 8:52 ` [PATCH v4 1/2] dt-bindings: qcom,snps-dwc3: Add property indicating presence of eUSB2 phy Krishna Kurapati
2026-07-09 9:01 ` sashiko-bot
2026-07-09 13:47 ` Dmitry Baryshkov
2026-07-10 1:52 ` Thinh Nguyen
2026-07-10 7:16 ` Krzysztof Kozlowski
2026-07-10 7:19 ` Krzysztof Kozlowski
2026-07-10 21:02 ` Thinh Nguyen
2026-07-13 6:26 ` Krzysztof Kozlowski
2026-07-13 7:20 ` Peter Chen
2026-07-13 23:41 ` Thinh Nguyen
2026-07-14 3:20 ` Peter Chen
2026-07-14 23:23 ` Thinh Nguyen
2026-07-15 3:37 ` Peter Chen
2026-07-16 0:09 ` Thinh Nguyen
2026-07-16 2:35 ` Peter Chen
2026-07-15 5:38 ` Krishna Kurapati
2026-07-15 23:19 ` Thinh Nguyen
2026-07-16 4:12 ` Krishna Kurapati [this message]
2026-07-14 0:41 ` Thinh Nguyen
2026-07-09 8:52 ` [PATCH v4 2/2] usb: dwc3: qcom: Modify interrupt handling for eUSB2 Phy targets Krishna Kurapati
2026-07-09 9:07 ` sashiko-bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b697c933-4556-404a-95f3-2a347a83e390@oss.qualcomm.com \
--to=krishna.kurapati@oss.qualcomm.com \
--cc=Thinh.Nguyen@synopsys.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.baryshkov@oss.qualcomm.com \
--cc=gregkh@linuxfoundation.org \
--cc=krzk+dt@kernel.org \
--cc=krzk@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=peter.chen@oss.qualcomm.com \
--cc=quic_wcheng@quicinc.com \
--cc=robh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox