From: Konrad Dybcio <konrad.dybcio@linaro.org>
To: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Cc: Andy Gross <agross@kernel.org>,
Bjorn Andersson <andersson@kernel.org>,
Vinod Koul <vkoul@kernel.org>,
Kishon Vijay Abraham I <kishon@kernel.org>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Conor Dooley <conor+dt@kernel.org>,
Philipp Zabel <p.zabel@pengutronix.de>,
linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org,
devicetree@vger.kernel.org
Subject: Re: [PATCH v3 2/5] phy: qcom-qmp-combo: add support for the USB+DP PHY on SM8150 platform
Date: Wed, 31 May 2023 14:16:42 +0200 [thread overview]
Message-ID: <10388324-45c7-b8ae-fb48-64becff76e66@linaro.org> (raw)
In-Reply-To: <CAA8EJprDPzTQU1j6n17gYAeiXw1t6M_d4CciTtD8mHNksYGHow@mail.gmail.com>
On 31.05.2023 14:13, Dmitry Baryshkov wrote:
> On Wed, 31 May 2023 at 14:35, Konrad Dybcio <konrad.dybcio@linaro.org> wrote:
>> On 31.05.2023 04:34, Dmitry Baryshkov wrote:
>>> SM8150 and SC8180X are close relatives. Reuse sc8180x data to support
>>> USB+DP combo PHY on SM8150 platform.
>>>
>>> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
>>> ---
>> I'm not sure this is right. Downstream reuses SA8195 USB seq.
>
> The upstream driver uses sm8150 data for sc8180x. So even if sc8180x
> data is not correct for sc8180x, it is definitely the one that we
> should use for sm8150:
Right sorry, this patch adds support for 81*5*0. I wanted to point out
that 8180 has a different set of init commands and one of them is probably
incorrect.
Konrad
>
> static const struct qmp_phy_cfg sc8180x_usb3dpphy_cfg = {
> .serdes_tbl = sm8150_usb3_serdes_tbl,
> .serdes_tbl_num = ARRAY_SIZE(sm8150_usb3_serdes_tbl),
> .tx_tbl = sm8150_usb3_tx_tbl,
> .tx_tbl_num = ARRAY_SIZE(sm8150_usb3_tx_tbl),
> .rx_tbl = sm8150_usb3_rx_tbl,
> .rx_tbl_num = ARRAY_SIZE(sm8150_usb3_rx_tbl),
> .pcs_tbl = sm8150_usb3_pcs_tbl,
> .pcs_tbl_num = ARRAY_SIZE(sm8150_usb3_pcs_tbl),
> .pcs_usb_tbl = sm8150_usb3_pcs_usb_tbl,
> .pcs_usb_tbl_num = ARRAY_SIZE(sm8150_usb3_pcs_usb_tbl),
>
> .dp_serdes_tbl = qmp_v4_dp_serdes_tbl,
> .dp_serdes_tbl_num = ARRAY_SIZE(qmp_v4_dp_serdes_tbl),
> .dp_tx_tbl = qmp_v4_dp_tx_tbl,
> .dp_tx_tbl_num = ARRAY_SIZE(qmp_v4_dp_tx_tbl),
>
>
>
>>
>> Konrad
>>> drivers/phy/qualcomm/phy-qcom-qmp-combo.c | 4 ++++
>>> 1 file changed, 4 insertions(+)
>>>
>>> diff --git a/drivers/phy/qualcomm/phy-qcom-qmp-combo.c b/drivers/phy/qualcomm/phy-qcom-qmp-combo.c
>>> index 33cc99d9c77d..2bff1bbb8610 100644
>>> --- a/drivers/phy/qualcomm/phy-qcom-qmp-combo.c
>>> +++ b/drivers/phy/qualcomm/phy-qcom-qmp-combo.c
>>> @@ -3614,6 +3614,10 @@ static const struct of_device_id qmp_combo_of_match_table[] = {
>>> .compatible = "qcom,sm6350-qmp-usb3-dp-phy",
>>> .data = &sm6350_usb3dpphy_cfg,
>>> },
>>> + {
>>> + .compatible = "qcom,sm8150-qmp-usb3-dp-phy",
>>> + .data = &sc8180x_usb3dpphy_cfg,
>>> + },
>>> {
>>> .compatible = "qcom,sm8250-qmp-usb3-dp-phy",
>>> .data = &sm8250_usb3dpphy_cfg,
>
>
>
next prev parent reply other threads:[~2023-05-31 12:16 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-31 2:34 [PATCH v3 0/5] phy: qcom-qmp-usb: split away legacy USB+DP code Dmitry Baryshkov
2023-05-31 2:34 ` [PATCH v3 1/5] dt-bindings: phy: qcom,sc7180-qmp-usb3-dp-phy: add sm8150 USB+DP PHY Dmitry Baryshkov
2023-05-31 2:34 ` [PATCH v3 2/5] phy: qcom-qmp-combo: add support for the USB+DP PHY on SM8150 platform Dmitry Baryshkov
2023-05-31 11:35 ` Konrad Dybcio
2023-05-31 12:13 ` Dmitry Baryshkov
2023-05-31 12:16 ` Konrad Dybcio [this message]
2023-07-10 3:27 ` Bjorn Andersson
2023-05-31 2:34 ` [PATCH v3 3/5] arm64: dts: qcom: sm8150: turn first USB PHY into USB+DP PHY Dmitry Baryshkov
2023-05-31 2:34 ` [PATCH v3 4/5] dt-bindings: phy: qcom,msm8996-qmp-usb3-phy: drop legacy bindings Dmitry Baryshkov
2023-06-09 15:37 ` Rob Herring
2023-05-31 2:34 ` [PATCH v3 5/5] phy: qcom-qmp-usb: split off the legacy USB+dp_com support Dmitry Baryshkov
2023-07-11 7:44 ` [PATCH v3 0/5] phy: qcom-qmp-usb: split away legacy USB+DP code Vinod Koul
2023-07-11 7:47 ` Vinod Koul
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=10388324-45c7-b8ae-fb48-64becff76e66@linaro.org \
--to=konrad.dybcio@linaro.org \
--cc=agross@kernel.org \
--cc=andersson@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.baryshkov@linaro.org \
--cc=kishon@kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-phy@lists.infradead.org \
--cc=p.zabel@pengutronix.de \
--cc=robh+dt@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;
as well as URLs for NNTP newsgroup(s).