From: Soutrik Mukhopadhyay <quic_mukhopad@quicinc.com>
To: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Cc: <vkoul@kernel.org>, <kishon@kernel.org>, <konradybcio@kernel.org>,
<andersson@kernel.org>, <simona@ffwll.ch>, <abel.vesa@linaro.org>,
<robdclark@gmail.com>, <quic_abhinavk@quicinc.com>,
<sean@poorly.run>, <marijn.suijten@somainline.org>,
<airlied@gmail.com>, <daniel@ffwll.ch>,
<maarten.lankhorst@linux.intel.com>, <mripard@kernel.org>,
<tzimmermann@suse.de>, <robh@kernel.org>, <krzk+dt@kernel.org>,
<conor+dt@kernel.org>, <quic_khsieh@quicinc.com>,
<konrad.dybcio@linaro.org>, <quic_parellan@quicinc.com>,
<quic_bjorande@quicinc.com>, <linux-arm-msm@vger.kernel.org>,
<linux-phy@lists.infradead.org>, <linux-kernel@vger.kernel.org>,
<dri-devel@lists.freedesktop.org>,
<freedreno@lists.freedesktop.org>, <devicetree@vger.kernel.org>,
<quic_riteshk@quicinc.com>, <quic_vproddut@quicinc.com>
Subject: Re: [PATCH 3/5] phy: qcom: edp: Add support for eDP PHY on SA8775P
Date: Thu, 12 Sep 2024 15:26:59 +0530 [thread overview]
Message-ID: <9cf67bc8-d567-4fbe-af77-bdc79f74fc0a@quicinc.com> (raw)
In-Reply-To: <CAA8EJpqurbPKjmRH8zdqPkMuze4zwJVu+=W0nP=Ldc6o_4Tu4w@mail.gmail.com>
On 9/11/2024 4:10 PM, Dmitry Baryshkov wrote:
> On Wed, 11 Sept 2024 at 13:08, Soutrik Mukhopadhyay
> <quic_mukhopad@quicinc.com> wrote:
>> Add support for eDP PHY v5 found on the Qualcomm SA8775P platform.
>>
>> Signed-off-by: Soutrik Mukhopadhyay <quic_mukhopad@quicinc.com>
>> ---
>> drivers/phy/qualcomm/phy-qcom-edp.c | 47 +++++++++++++++++++++++++++++
>> 1 file changed, 47 insertions(+)
>>
>> diff --git a/drivers/phy/qualcomm/phy-qcom-edp.c b/drivers/phy/qualcomm/phy-qcom-edp.c
>> index 0f860a807d1b..34a47cd2919d 100644
>> --- a/drivers/phy/qualcomm/phy-qcom-edp.c
>> +++ b/drivers/phy/qualcomm/phy-qcom-edp.c
>> @@ -191,6 +191,45 @@ static u8 edp_phy_aux_cfg_v4[10] = {
>> 0x00, 0x13, 0x24, 0x00, 0x0a, 0x26, 0x0a, 0x03, 0x37, 0x03
>> };
>>
>> +static const u8 edp_swing_hbr_rbr_v5[4][4] = {
>> + { 0x07, 0x0f, 0x16, 0x1f },
>> + { 0x0d, 0x16, 0x1e, 0xff },
>> + { 0x11, 0x1b, 0xff, 0xff },
>> + { 0x16, 0xff, 0xff, 0xff }
>> +};
> Same as v4
Yes, we will reuse edp_swing_hbr_rbr for v5.
>
>> +
>> +static const u8 edp_pre_emp_hbr_rbr_v5[4][4] = {
>> + { 0x05, 0x11, 0x17, 0x1d },
>> + { 0x05, 0x11, 0x18, 0xff },
>> + { 0x06, 0x11, 0xff, 0xff },
>> + { 0x00, 0xff, 0xff, 0xff }
>> +};
> Could you please confirm that there is a single value difference?
Yes, there is a single value difference.
>
>> +
>> +static const u8 edp_swing_hbr2_hbr3_v5[4][4] = {
>> + { 0x0b, 0x11, 0x17, 0x1c },
>> + { 0x10, 0x19, 0x1f, 0xff },
>> + { 0x19, 0x1f, 0xff, 0xff },
>> + { 0x1f, 0xff, 0xff, 0xff }
>> +};
> Same as v4
Yes, we will reuse edp_swing_hbr2_hbr3 for v5.
>
>> +
>> +static const u8 edp_pre_emp_hbr2_hbr3_v5[4][4] = {
>> + { 0x0c, 0x15, 0x19, 0x1e },
>> + { 0x0b, 0x15, 0x19, 0xff },
>> + { 0x0e, 0x14, 0xff, 0xff },
>> + { 0x0d, 0xff, 0xff, 0xff }
>> +};
> This one looks fine
>
>> +
>> +static const struct qcom_edp_swing_pre_emph_cfg edp_phy_swing_pre_emph_cfg_v5 = {
>> + .swing_hbr_rbr = &edp_swing_hbr_rbr_v5,
>> + .swing_hbr3_hbr2 = &edp_swing_hbr2_hbr3_v5,
>> + .pre_emphasis_hbr_rbr = &edp_pre_emp_hbr_rbr_v5,
>> + .pre_emphasis_hbr3_hbr2 = &edp_pre_emp_hbr2_hbr3_v5,
>> +};
>> +
>> +static u8 edp_phy_aux_cfg_v5[10] = {
>> + 0x00, 0x13, 0xa4, 0x00, 0x0a, 0x26, 0x0a, 0x03, 0x37, 0x03
>> +};
>> +
>> static int qcom_edp_phy_init(struct phy *phy)
>> {
>> struct qcom_edp *edp = phy_get_drvdata(phy);
>> @@ -520,6 +559,13 @@ static const struct phy_ver_ops qcom_edp_phy_ops_v4 = {
>> .com_configure_ssc = qcom_edp_com_configure_ssc_v4,
>> };
>>
>> +static const struct qcom_edp_phy_cfg sa8775p_dp_phy_cfg = {
>> + .is_edp = false,
>> + .aux_cfg = edp_phy_aux_cfg_v5,
>> + .swing_pre_emph_cfg = &edp_phy_swing_pre_emph_cfg_v5,
>> + .ver_ops = &qcom_edp_phy_ops_v4,
>> +};
>> +
>> static const struct qcom_edp_phy_cfg sc7280_dp_phy_cfg = {
>> .aux_cfg = edp_phy_aux_cfg_v4,
>> .ver_ops = &qcom_edp_phy_ops_v4,
>> @@ -1114,6 +1160,7 @@ static int qcom_edp_phy_probe(struct platform_device *pdev)
>> }
>>
>> static const struct of_device_id qcom_edp_phy_match_table[] = {
>> + { .compatible = "qcom,sa8775p-edp-phy", .data = &sa8775p_dp_phy_cfg, },
>> { .compatible = "qcom,sc7280-edp-phy", .data = &sc7280_dp_phy_cfg, },
>> { .compatible = "qcom,sc8180x-edp-phy", .data = &sc7280_dp_phy_cfg, },
>> { .compatible = "qcom,sc8280xp-dp-phy", .data = &sc8280xp_dp_phy_cfg, },
>> --
>> 2.17.1
>>
>
next prev parent reply other threads:[~2024-09-12 9:57 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-11 10:08 [PATCH 0/5] Add support for DisplayPort on SA8775P platform Soutrik Mukhopadhyay
2024-09-11 10:08 ` [PATCH 1/5] dt-bindings: phy: Add eDP PHY compatible for sa8775p Soutrik Mukhopadhyay
2024-09-11 10:08 ` [PATCH 2/5] phy: qcom: edp: Introduce aux_cfg array for version specific aux settings Soutrik Mukhopadhyay
2024-09-11 10:34 ` Dmitry Baryshkov
2024-09-12 9:36 ` Soutrik Mukhopadhyay
2024-09-12 1:45 ` Bjorn Andersson
2024-09-12 9:39 ` Soutrik Mukhopadhyay
2024-09-11 10:08 ` [PATCH 3/5] phy: qcom: edp: Add support for eDP PHY on SA8775P Soutrik Mukhopadhyay
2024-09-11 10:40 ` Dmitry Baryshkov
2024-09-12 9:56 ` Soutrik Mukhopadhyay [this message]
2024-09-11 10:08 ` [PATCH 4/5] dt-bindings: display: msm: dp-controller: document SA8775P compatible Soutrik Mukhopadhyay
2024-09-11 10:08 ` [PATCH 5/5] drm/msm/dp: Add DisplayPort controller for SA8775P Soutrik Mukhopadhyay
2024-09-11 20:02 ` Bjorn Andersson
2024-09-12 10:04 ` Soutrik Mukhopadhyay
2024-09-13 21:24 ` Bjorn Andersson
2024-09-17 8:12 ` Soutrik Mukhopadhyay
2024-09-17 13:44 ` Konrad Dybcio
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=9cf67bc8-d567-4fbe-af77-bdc79f74fc0a@quicinc.com \
--to=quic_mukhopad@quicinc.com \
--cc=abel.vesa@linaro.org \
--cc=airlied@gmail.com \
--cc=andersson@kernel.org \
--cc=conor+dt@kernel.org \
--cc=daniel@ffwll.ch \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.baryshkov@linaro.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=freedreno@lists.freedesktop.org \
--cc=kishon@kernel.org \
--cc=konrad.dybcio@linaro.org \
--cc=konradybcio@kernel.org \
--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=maarten.lankhorst@linux.intel.com \
--cc=marijn.suijten@somainline.org \
--cc=mripard@kernel.org \
--cc=quic_abhinavk@quicinc.com \
--cc=quic_bjorande@quicinc.com \
--cc=quic_khsieh@quicinc.com \
--cc=quic_parellan@quicinc.com \
--cc=quic_riteshk@quicinc.com \
--cc=quic_vproddut@quicinc.com \
--cc=robdclark@gmail.com \
--cc=robh@kernel.org \
--cc=sean@poorly.run \
--cc=simona@ffwll.ch \
--cc=tzimmermann@suse.de \
--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®