From: Wesley Cheng <wesley.cheng@oss.qualcomm.com>
To: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Cc: krzk+dt@kernel.org, conor+dt@kernel.org,
konrad.dybcio@oss.qualcomm.com, kishon@kernel.org,
vkoul@kernel.org, gregkh@linuxfoundation.org, robh@kernel.org,
linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org,
linux-usb@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v4 07/10] phy: qualcomm: qmp-combo: Update QMP PHY with Glymur settings
Date: Thu, 2 Oct 2025 00:14:37 -0700 [thread overview]
Message-ID: <8996bd96-0660-70ba-63f4-51111219d146@oss.qualcomm.com> (raw)
In-Reply-To: <ra3bq7guxunk2n7mbrjlefxvxu45clmwzp74vq7bqd2xvp2fv5@z5skxjxs4yxp>
On 10/1/2025 5:58 PM, Dmitry Baryshkov wrote:
> On Wed, Oct 01, 2025 at 03:05:31PM -0700, Wesley Cheng wrote:
>> For SuperSpeed USB to work properly, there is a set of HW settings that
>> need to be programmed into the USB blocks within the QMP PHY. Ensure that
>> these settings follow the latest settings mentioned in the HW programming
>> guide. The QMP USB PHY on Glymur is a USB43 based PHY that will have some
>> new ways to define certain registers, such as the replacement of TXA/RXA
>> and TXB/RXB register sets. This was replaced with the LALB register set.
>>
>> There are also some PHY init updates to modify the PCS MISC register space.
>> Without these, the QMP PHY PLL locking fails.
>>
>> Signed-off-by: Wesley Cheng <wesley.cheng@oss.qualcomm.com>
>> ---
>> drivers/phy/qualcomm/phy-qcom-qmp-combo.c | 312 ++++++++-
>> .../phy/qualcomm/phy-qcom-qmp-pcs-aon-v8.h | 17 +
>> .../phy/qualcomm/phy-qcom-qmp-pcs-misc-v8.h | 12 +
>> .../qualcomm/phy-qcom-qmp-qserdes-lalb-v8.h | 639 ++++++++++++++++++
>> .../phy/qualcomm/phy-qcom-qmp-usb43-pcs-v8.h | 33 +
>> .../phy-qcom-qmp-usb43-qserdes-com-v8.h | 224 ++++++
>> drivers/phy/qualcomm/phy-qcom-qmp.h | 4 +
>> 7 files changed, 1240 insertions(+), 1 deletion(-)
>> create mode 100644 drivers/phy/qualcomm/phy-qcom-qmp-pcs-aon-v8.h
>> create mode 100644 drivers/phy/qualcomm/phy-qcom-qmp-pcs-misc-v8.h
>> create mode 100644 drivers/phy/qualcomm/phy-qcom-qmp-qserdes-lalb-v8.h
>> create mode 100644 drivers/phy/qualcomm/phy-qcom-qmp-usb43-pcs-v8.h
>> create mode 100644 drivers/phy/qualcomm/phy-qcom-qmp-usb43-qserdes-com-v8.h
>>
>> diff --git a/drivers/phy/qualcomm/phy-qcom-qmp.h b/drivers/phy/qualcomm/phy-qcom-qmp.h
>> index da2a7ad2cdcc..7211c71fe68c 100644
>> --- a/drivers/phy/qualcomm/phy-qcom-qmp.h
>> +++ b/drivers/phy/qualcomm/phy-qcom-qmp.h
>> @@ -32,7 +32,9 @@
>> #include "phy-qcom-qmp-qserdes-txrx-v7.h"
>>
>> #include "phy-qcom-qmp-qserdes-com-v8.h"
>> +#include "phy-qcom-qmp-usb43-qserdes-com-v8.h"
>> #include "phy-qcom-qmp-qserdes-txrx-v8.h"
>> +#include "phy-qcom-qmp-qserdes-lalb-v8.h"
>>
>> #include "phy-qcom-qmp-qserdes-pll.h"
>>
>> @@ -60,6 +62,8 @@
>>
>> #include "phy-qcom-qmp-pcs-v8_50.h"
>>
>> +#include "phy-qcom-qmp-usb43-pcs-v8.h"
>
> Let's not include USB-specific header into the generic header.
Hi Dmitry,
This is actually referring to the QMP PCS register set for the USB43
based PHYs. Even though it is a QMP PHY v8 (ie phy-qcom-qmp-pcs-v8),
there are some offset differences between the existing one and the one
being added. In that case, should we still have it in the USB specific
QMP combo driver? I guess it might make sense to have it there, as
technically the usb43 based phy is only really going to be there for
USB4 capable cores, and I don't think there's much that is common
between usb43 and other HW that utilize/share the QMP PHY.
Thanks
Wesley Cheng
>
> With that fixed:
>
>
> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
>
>
>
>> +
>> /* QPHY_SW_RESET bit */
>> #define SW_RESET BIT(0)
>> /* QPHY_POWER_DOWN_CONTROL */
>>
>> --
>> linux-phy mailing list
>> linux-phy@lists.infradead.org
>> https://lists.infradead.org/mailman/listinfo/linux-phy
>
next prev parent reply other threads:[~2025-10-02 7:14 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-01 22:05 [PATCH v4 00/10] Introduce Glymur USB support Wesley Cheng
2025-10-01 22:05 ` [PATCH v4 01/10] dt-bindings: phy: qcom,sc8280xp-qmp-usb43dp-phy: Add Glymur compatible Wesley Cheng
2025-10-02 0:55 ` Dmitry Baryshkov
2025-10-01 22:05 ` [PATCH v4 02/10] dt-bindings: phy: qcom,qmp-usb: Add Glymur USB UNI PHY compatible Wesley Cheng
2025-10-01 22:05 ` [PATCH v4 03/10] dt-bindings: phy: qcom-m31-eusb2: Add Glymur compatible Wesley Cheng
2025-10-01 22:05 ` [PATCH v4 04/10] dt-bindings: usb: qcom,snps-dwc3: " Wesley Cheng
2025-10-01 22:05 ` [PATCH v4 05/10] dt-bindings: phy: qcom,snps-eusb2-repeater: Add SMB2370 compatible Wesley Cheng
2025-10-01 22:05 ` [PATCH v4 06/10] phy: qualcomm: Update the QMP clamp register for V6 Wesley Cheng
2025-10-01 22:05 ` [PATCH v4 07/10] phy: qualcomm: qmp-combo: Update QMP PHY with Glymur settings Wesley Cheng
2025-10-02 0:58 ` Dmitry Baryshkov
2025-10-02 7:14 ` Wesley Cheng [this message]
2025-10-02 9:11 ` Dmitry Baryshkov
2025-10-01 22:05 ` [PATCH v4 08/10] phy: qualcomm: qmp-usb: Add support for Glymur USB UNI PHY Wesley Cheng
2025-10-01 22:05 ` [PATCH v4 09/10] phy: qualcomm: m31-eusb2: Make clkref an optional resource Wesley Cheng
2025-10-01 22:05 ` [PATCH v4 10/10] phy: qualcomm: eusb2-repeater: Add SMB2370 eUSB2 repeater support Wesley Cheng
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=8996bd96-0660-70ba-63f4-51111219d146@oss.qualcomm.com \
--to=wesley.cheng@oss.qualcomm.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.baryshkov@oss.qualcomm.com \
--cc=gregkh@linuxfoundation.org \
--cc=kishon@kernel.org \
--cc=konrad.dybcio@oss.qualcomm.com \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-phy@lists.infradead.org \
--cc=linux-usb@vger.kernel.org \
--cc=robh@kernel.org \
--cc=vkoul@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
all inboxes | Powered by JetHome®