Linux ARM-MSM sub-architecture
 help / color / mirror / Atom feed
* [PATCH v5 0/5] Add support for DisplayPort on SA8775P platform
@ 2024-10-18  7:07 Soutrik Mukhopadhyay
  2024-10-18  7:07 ` [PATCH v5 1/5] dt-bindings: phy: Add eDP PHY compatible for sa8775p Soutrik Mukhopadhyay
                   ` (6 more replies)
  0 siblings, 7 replies; 9+ messages in thread
From: Soutrik Mukhopadhyay @ 2024-10-18  7:07 UTC (permalink / raw)
  To: vkoul, kishon, konradybcio, andersson, simona, dmitry.baryshkov,
	abel.vesa, robdclark, quic_abhinavk, sean, marijn.suijten,
	airlied, daniel, maarten.lankhorst, mripard, tzimmermann, robh,
	krzk+dt, conor+dt, quic_khsieh, konrad.dybcio, quic_parellan,
	quic_bjorande
  Cc: Soutrik Mukhopadhyay, linux-arm-msm, linux-phy, linux-kernel,
	dri-devel, freedreno, devicetree, quic_riteshk, quic_vproddut

This series adds support for the DisplayPort controller
and eDP PHY v5 found on the Qualcomm SA8775P platform.

---
v2: Fixed review comments from Dmitry and Bjorn
	- Made aux_cfg array as const.
	- Reused edp_swing_hbr_rbr and edp_swing_hbr2_hbr3 for v5.

v3: Fixed review comments from Dmitry, Konrad and Bjorn
	- Used a for loop to write the dp_phy_aux_cfg registers.
	- Pre-defined the aux_cfg size to prevent any magic numbers.
	- Added all the necessary DPTX controllers for this platform.

v4: Fixed review comments from Dmitry and Krzysztof
	- Removed the "reviewed by" and kept only the "acked by" for 
	  patch 1.
	- Updated the commit message of patch 5 to mention specifically
	  about the validation of "only" MDSS0 DPTX0 and DPTX1.

v5: Fixed review comment from Dmitry in patch 5
	- Aligned the register starting address for display port as part 
	  of device description with respect to other targets.

Below patches are applied:

[1/5] dt-bindings: phy: Add eDP PHY compatible for sa8775p
      commit: 7adb3d221a4d6a4f5e0793c3bd35f1168934035c
[2/5] phy: qcom: edp: Introduce aux_cfg array for version specific aux settings
      commit: 913463587d528d766a8e12c7790995e273ec84fb
[3/5] phy: qcom: edp: Add support for eDP PHY on SA8775P
      commit: 3f12bf16213c30d8e645027efd94a19c13ee0253

---

Soutrik Mukhopadhyay (5):
  dt-bindings: phy: Add eDP PHY compatible for sa8775p
  phy: qcom: edp: Introduce aux_cfg array for version specific aux
    settings
  phy: qcom: edp: Add support for eDP PHY on SA8775P
  dt-bindings: display: msm: dp-controller: document SA8775P compatible
  drm/msm/dp: Add DisplayPort controller for SA8775P

 .../bindings/display/msm/dp-controller.yaml   |  1 +
 .../devicetree/bindings/phy/qcom,edp-phy.yaml |  1 +
 drivers/gpu/drm/msm/dp/dp_display.c           |  9 +++
 drivers/phy/qualcomm/phy-qcom-edp.c           | 74 +++++++++++++------
 4 files changed, 61 insertions(+), 24 deletions(-)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH v5 1/5] dt-bindings: phy: Add eDP PHY compatible for sa8775p
  2024-10-18  7:07 [PATCH v5 0/5] Add support for DisplayPort on SA8775P platform Soutrik Mukhopadhyay
@ 2024-10-18  7:07 ` Soutrik Mukhopadhyay
  2024-10-18  7:07 ` [PATCH v5 2/5] phy: qcom: edp: Introduce aux_cfg array for version specific aux settings Soutrik Mukhopadhyay
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 9+ messages in thread
From: Soutrik Mukhopadhyay @ 2024-10-18  7:07 UTC (permalink / raw)
  To: vkoul, kishon, konradybcio, andersson, simona, dmitry.baryshkov,
	abel.vesa, robdclark, quic_abhinavk, sean, marijn.suijten,
	airlied, daniel, maarten.lankhorst, mripard, tzimmermann, robh,
	krzk+dt, conor+dt, quic_khsieh, konrad.dybcio, quic_parellan,
	quic_bjorande
  Cc: Soutrik Mukhopadhyay, linux-arm-msm, linux-phy, linux-kernel,
	dri-devel, freedreno, devicetree, quic_riteshk, quic_vproddut

Add compatible string for the supported eDP PHY on sa8775p platform.

Acked-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Soutrik Mukhopadhyay <quic_mukhopad@quicinc.com>
---
v2: No change

v3: No change

v4: No change

v5: No change

---
 Documentation/devicetree/bindings/phy/qcom,edp-phy.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/phy/qcom,edp-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,edp-phy.yaml
index 4e15d90d08b0..293fb6a9b1c3 100644
--- a/Documentation/devicetree/bindings/phy/qcom,edp-phy.yaml
+++ b/Documentation/devicetree/bindings/phy/qcom,edp-phy.yaml
@@ -17,6 +17,7 @@ description:
 properties:
   compatible:
     enum:
+      - qcom,sa8775p-edp-phy
       - qcom,sc7280-edp-phy
       - qcom,sc8180x-edp-phy
       - qcom,sc8280xp-dp-phy
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH v5 2/5] phy: qcom: edp: Introduce aux_cfg array for version specific aux settings
  2024-10-18  7:07 [PATCH v5 0/5] Add support for DisplayPort on SA8775P platform Soutrik Mukhopadhyay
  2024-10-18  7:07 ` [PATCH v5 1/5] dt-bindings: phy: Add eDP PHY compatible for sa8775p Soutrik Mukhopadhyay
@ 2024-10-18  7:07 ` Soutrik Mukhopadhyay
  2024-10-18  7:07 ` [PATCH v5 3/5] phy: qcom: edp: Add support for eDP PHY on SA8775P Soutrik Mukhopadhyay
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 9+ messages in thread
From: Soutrik Mukhopadhyay @ 2024-10-18  7:07 UTC (permalink / raw)
  To: vkoul, kishon, konradybcio, andersson, simona, dmitry.baryshkov,
	abel.vesa, robdclark, quic_abhinavk, sean, marijn.suijten,
	airlied, daniel, maarten.lankhorst, mripard, tzimmermann, robh,
	krzk+dt, conor+dt, quic_khsieh, konrad.dybcio, quic_parellan,
	quic_bjorande
  Cc: Soutrik Mukhopadhyay, linux-arm-msm, linux-phy, linux-kernel,
	dri-devel, freedreno, devicetree, quic_riteshk, quic_vproddut

In order to support different HW versions, introduce aux_cfg array
to move v4 specific aux configuration settings.

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Soutrik Mukhopadhyay <quic_mukhopad@quicinc.com>
---
v2: Fixed review comments from Bjorn and Dmitry
	- Made aux_cfg array as const.

v3: Fixed review comments from Dmitry
	- Used a for loop to write the dp_phy_aux_cfg registers.
	- Pre-defined the aux_cfg size to prevent any magic numbers.

v4: No change

v5: No change

---
 drivers/phy/qualcomm/phy-qcom-edp.c | 41 ++++++++++++-----------------
 1 file changed, 17 insertions(+), 24 deletions(-)

diff --git a/drivers/phy/qualcomm/phy-qcom-edp.c b/drivers/phy/qualcomm/phy-qcom-edp.c
index da2b32fb5b45..2ecff164ec44 100644
--- a/drivers/phy/qualcomm/phy-qcom-edp.c
+++ b/drivers/phy/qualcomm/phy-qcom-edp.c
@@ -32,16 +32,8 @@
 #define DP_PHY_PD_CTL                           0x001c
 #define DP_PHY_MODE                             0x0020
 
-#define DP_PHY_AUX_CFG0				0x0024
-#define DP_PHY_AUX_CFG1				0x0028
-#define DP_PHY_AUX_CFG2				0x002C
-#define DP_PHY_AUX_CFG3				0x0030
-#define DP_PHY_AUX_CFG4				0x0034
-#define DP_PHY_AUX_CFG5				0x0038
-#define DP_PHY_AUX_CFG6				0x003C
-#define DP_PHY_AUX_CFG7				0x0040
-#define DP_PHY_AUX_CFG8				0x0044
-#define DP_PHY_AUX_CFG9				0x0048
+#define DP_AUX_CFG_SIZE                         10
+#define DP_PHY_AUX_CFG(n)                       (0x24 + (0x04 * (n)))
 
 #define DP_PHY_AUX_INTERRUPT_MASK		0x0058
 
@@ -90,6 +82,7 @@ struct phy_ver_ops {
 
 struct qcom_edp_phy_cfg {
 	bool is_edp;
+	const u8 *aux_cfg;
 	const struct qcom_edp_swing_pre_emph_cfg *swing_pre_emph_cfg;
 	const struct phy_ver_ops *ver_ops;
 };
@@ -186,11 +179,15 @@ static const struct qcom_edp_swing_pre_emph_cfg edp_phy_swing_pre_emph_cfg = {
 	.pre_emphasis_hbr3_hbr2 = &edp_pre_emp_hbr2_hbr3,
 };
 
+static const u8 edp_phy_aux_cfg_v4[10] = {
+	0x00, 0x13, 0x24, 0x00, 0x0a, 0x26, 0x0a, 0x03, 0x37, 0x03
+};
+
 static int qcom_edp_phy_init(struct phy *phy)
 {
 	struct qcom_edp *edp = phy_get_drvdata(phy);
+	u8 aux_cfg[DP_AUX_CFG_SIZE];
 	int ret;
-	u8 cfg8;
 
 	ret = regulator_bulk_enable(ARRAY_SIZE(edp->supplies), edp->supplies);
 	if (ret)
@@ -200,6 +197,8 @@ static int qcom_edp_phy_init(struct phy *phy)
 	if (ret)
 		goto out_disable_supplies;
 
+	memcpy(aux_cfg, edp->cfg->aux_cfg, sizeof(aux_cfg));
+
 	writel(DP_PHY_PD_CTL_PWRDN | DP_PHY_PD_CTL_AUX_PWRDN |
 	       DP_PHY_PD_CTL_PLL_PWRDN | DP_PHY_PD_CTL_DP_CLAMP_EN,
 	       edp->edp + DP_PHY_PD_CTL);
@@ -222,22 +221,12 @@ static int qcom_edp_phy_init(struct phy *phy)
 	 * even needed.
 	 */
 	if (edp->cfg->swing_pre_emph_cfg && !edp->is_edp)
-		cfg8 = 0xb7;
-	else
-		cfg8 = 0x37;
+		aux_cfg[8] = 0xb7;
 
 	writel(0xfc, edp->edp + DP_PHY_MODE);
 
-	writel(0x00, edp->edp + DP_PHY_AUX_CFG0);
-	writel(0x13, edp->edp + DP_PHY_AUX_CFG1);
-	writel(0x24, edp->edp + DP_PHY_AUX_CFG2);
-	writel(0x00, edp->edp + DP_PHY_AUX_CFG3);
-	writel(0x0a, edp->edp + DP_PHY_AUX_CFG4);
-	writel(0x26, edp->edp + DP_PHY_AUX_CFG5);
-	writel(0x0a, edp->edp + DP_PHY_AUX_CFG6);
-	writel(0x03, edp->edp + DP_PHY_AUX_CFG7);
-	writel(cfg8, edp->edp + DP_PHY_AUX_CFG8);
-	writel(0x03, edp->edp + DP_PHY_AUX_CFG9);
+	for (int i = 0; i < DP_AUX_CFG_SIZE; i++)
+		writel(aux_cfg[i], edp->edp + DP_PHY_AUX_CFG(i));
 
 	writel(PHY_AUX_STOP_ERR_MASK | PHY_AUX_DEC_ERR_MASK |
 	       PHY_AUX_SYNC_ERR_MASK | PHY_AUX_ALIGN_ERR_MASK |
@@ -519,16 +508,19 @@ static const struct phy_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,
 };
 
 static const struct qcom_edp_phy_cfg sc8280xp_dp_phy_cfg = {
+	.aux_cfg = edp_phy_aux_cfg_v4,
 	.swing_pre_emph_cfg = &dp_phy_swing_pre_emph_cfg,
 	.ver_ops = &qcom_edp_phy_ops_v4,
 };
 
 static const struct qcom_edp_phy_cfg sc8280xp_edp_phy_cfg = {
 	.is_edp = true,
+	.aux_cfg = edp_phy_aux_cfg_v4,
 	.swing_pre_emph_cfg = &edp_phy_swing_pre_emph_cfg,
 	.ver_ops = &qcom_edp_phy_ops_v4,
 };
@@ -707,6 +699,7 @@ static const struct phy_ver_ops qcom_edp_phy_ops_v6 = {
 };
 
 static struct qcom_edp_phy_cfg x1e80100_phy_cfg = {
+	.aux_cfg = edp_phy_aux_cfg_v4,
 	.swing_pre_emph_cfg = &dp_phy_swing_pre_emph_cfg,
 	.ver_ops = &qcom_edp_phy_ops_v6,
 };
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH v5 3/5] phy: qcom: edp: Add support for eDP PHY on SA8775P
  2024-10-18  7:07 [PATCH v5 0/5] Add support for DisplayPort on SA8775P platform Soutrik Mukhopadhyay
  2024-10-18  7:07 ` [PATCH v5 1/5] dt-bindings: phy: Add eDP PHY compatible for sa8775p Soutrik Mukhopadhyay
  2024-10-18  7:07 ` [PATCH v5 2/5] phy: qcom: edp: Introduce aux_cfg array for version specific aux settings Soutrik Mukhopadhyay
@ 2024-10-18  7:07 ` Soutrik Mukhopadhyay
  2024-10-18  7:07 ` [PATCH v5 4/5] dt-bindings: display: msm: dp-controller: document SA8775P compatible Soutrik Mukhopadhyay
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 9+ messages in thread
From: Soutrik Mukhopadhyay @ 2024-10-18  7:07 UTC (permalink / raw)
  To: vkoul, kishon, konradybcio, andersson, simona, dmitry.baryshkov,
	abel.vesa, robdclark, quic_abhinavk, sean, marijn.suijten,
	airlied, daniel, maarten.lankhorst, mripard, tzimmermann, robh,
	krzk+dt, conor+dt, quic_khsieh, konrad.dybcio, quic_parellan,
	quic_bjorande
  Cc: Soutrik Mukhopadhyay, linux-arm-msm, linux-phy, linux-kernel,
	dri-devel, freedreno, devicetree, quic_riteshk, quic_vproddut

Add support for eDP PHY v5 found on the Qualcomm SA8775P platform.

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Soutrik Mukhopadhyay <quic_mukhopad@quicinc.com>
---
v2: Fixed review comments from Dmitry
	- Reused edp_swing_hbr_rbr and edp_swing_hbr2_hbr3 for v5.

v3: No change

v4: No change

v5: No change

---
 drivers/phy/qualcomm/phy-qcom-edp.c | 33 +++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/drivers/phy/qualcomm/phy-qcom-edp.c b/drivers/phy/qualcomm/phy-qcom-edp.c
index 2ecff164ec44..f1b51018683d 100644
--- a/drivers/phy/qualcomm/phy-qcom-edp.c
+++ b/drivers/phy/qualcomm/phy-qcom-edp.c
@@ -183,6 +183,31 @@ static const u8 edp_phy_aux_cfg_v4[10] = {
 	0x00, 0x13, 0x24, 0x00, 0x0a, 0x26, 0x0a, 0x03, 0x37, 0x03
 };
 
+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 }
+};
+
+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 }
+};
+
+static const struct qcom_edp_swing_pre_emph_cfg edp_phy_swing_pre_emph_cfg_v5 = {
+	.swing_hbr_rbr = &edp_swing_hbr_rbr,
+	.swing_hbr3_hbr2 = &edp_swing_hbr2_hbr3,
+	.pre_emphasis_hbr_rbr = &edp_pre_emp_hbr_rbr_v5,
+	.pre_emphasis_hbr3_hbr2 = &edp_pre_emp_hbr2_hbr3_v5,
+};
+
+static const 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);
@@ -507,6 +532,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,
@@ -1101,6 +1133,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


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH v5 4/5] dt-bindings: display: msm: dp-controller: document SA8775P compatible
  2024-10-18  7:07 [PATCH v5 0/5] Add support for DisplayPort on SA8775P platform Soutrik Mukhopadhyay
                   ` (2 preceding siblings ...)
  2024-10-18  7:07 ` [PATCH v5 3/5] phy: qcom: edp: Add support for eDP PHY on SA8775P Soutrik Mukhopadhyay
@ 2024-10-18  7:07 ` Soutrik Mukhopadhyay
  2024-10-18  7:07 ` [PATCH v5 5/5] drm/msm/dp: Add DisplayPort controller for SA8775P Soutrik Mukhopadhyay
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 9+ messages in thread
From: Soutrik Mukhopadhyay @ 2024-10-18  7:07 UTC (permalink / raw)
  To: vkoul, kishon, konradybcio, andersson, simona, dmitry.baryshkov,
	abel.vesa, robdclark, quic_abhinavk, sean, marijn.suijten,
	airlied, daniel, maarten.lankhorst, mripard, tzimmermann, robh,
	krzk+dt, conor+dt, quic_khsieh, konrad.dybcio, quic_parellan,
	quic_bjorande
  Cc: Soutrik Mukhopadhyay, linux-arm-msm, linux-phy, linux-kernel,
	dri-devel, freedreno, devicetree, quic_riteshk, quic_vproddut

Add compatible string for the DisplayPort controller found on the
Qualcomm SA8775P platform.

Acked-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Soutrik Mukhopadhyay <quic_mukhopad@quicinc.com>
---
v2: No change

v3: No change

v4: No change

v5: No change

---
 Documentation/devicetree/bindings/display/msm/dp-controller.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/display/msm/dp-controller.yaml b/Documentation/devicetree/bindings/display/msm/dp-controller.yaml
index 97993feda193..a212f335d5ff 100644
--- a/Documentation/devicetree/bindings/display/msm/dp-controller.yaml
+++ b/Documentation/devicetree/bindings/display/msm/dp-controller.yaml
@@ -17,6 +17,7 @@ properties:
   compatible:
     oneOf:
       - enum:
+          - qcom,sa8775p-dp
           - qcom,sc7180-dp
           - qcom,sc7280-dp
           - qcom,sc7280-edp
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH v5 5/5] drm/msm/dp: Add DisplayPort controller for SA8775P
  2024-10-18  7:07 [PATCH v5 0/5] Add support for DisplayPort on SA8775P platform Soutrik Mukhopadhyay
                   ` (3 preceding siblings ...)
  2024-10-18  7:07 ` [PATCH v5 4/5] dt-bindings: display: msm: dp-controller: document SA8775P compatible Soutrik Mukhopadhyay
@ 2024-10-18  7:07 ` Soutrik Mukhopadhyay
  2024-10-18 10:08 ` [PATCH v5 0/5] Add support for DisplayPort on SA8775P platform Dmitry Baryshkov
  2024-10-21 12:17 ` Dmitry Baryshkov
  6 siblings, 0 replies; 9+ messages in thread
From: Soutrik Mukhopadhyay @ 2024-10-18  7:07 UTC (permalink / raw)
  To: vkoul, kishon, konradybcio, andersson, simona, dmitry.baryshkov,
	abel.vesa, robdclark, quic_abhinavk, sean, marijn.suijten,
	airlied, daniel, maarten.lankhorst, mripard, tzimmermann, robh,
	krzk+dt, conor+dt, quic_khsieh, konrad.dybcio, quic_parellan,
	quic_bjorande
  Cc: Soutrik Mukhopadhyay, linux-arm-msm, linux-phy, linux-kernel,
	dri-devel, freedreno, devicetree, quic_riteshk, quic_vproddut

The Qualcomm SA8775P platform comes with 2 DisplayPort controllers
for each mdss, having different base offsets than the previous
SoCs. The support for all 4 DPTX have been added here, and
validation of only MDSS0 DPTX0 and DPTX1 have been conducted.

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Soutrik Mukhopadhyay <quic_mukhopad@quicinc.com>
---
v2: No change

v3: Fixed review comments from Konrad and Bjorn
	-Added all the necessary DPTX controllers for this platform.

v4: Updated commit message to mention specifically about the validation
    of MDSS0 DPTX0 and DPTX1.

v5: Aligned the register starting address for display port as part of
    device description with respect to other targets.

---
 drivers/gpu/drm/msm/dp/dp_display.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/drivers/gpu/drm/msm/dp/dp_display.c b/drivers/gpu/drm/msm/dp/dp_display.c
index e1228fb093ee..c34362bc16ba 100644
--- a/drivers/gpu/drm/msm/dp/dp_display.c
+++ b/drivers/gpu/drm/msm/dp/dp_display.c
@@ -118,6 +118,14 @@ struct msm_dp_desc {
 	bool wide_bus_supported;
 };
 
+static const struct msm_dp_desc sa8775p_dp_descs[] = {
+	{ .io_start = 0x0af54000, .id = MSM_DP_CONTROLLER_0, .wide_bus_supported = true },
+	{ .io_start = 0x0af5c000, .id = MSM_DP_CONTROLLER_1, .wide_bus_supported = true },
+	{ .io_start = 0x22154000, .id = MSM_DP_CONTROLLER_2, .wide_bus_supported = true },
+	{ .io_start = 0x2215c000, .id = MSM_DP_CONTROLLER_3, .wide_bus_supported = true },
+	{}
+};
+
 static const struct msm_dp_desc sc7180_dp_descs[] = {
 	{ .io_start = 0x0ae90000, .id = MSM_DP_CONTROLLER_0, .wide_bus_supported = true },
 	{}
@@ -162,6 +170,7 @@ static const struct msm_dp_desc x1e80100_dp_descs[] = {
 };
 
 static const struct of_device_id dp_dt_match[] = {
+	{ .compatible = "qcom,sa8775p-dp", .data = &sa8775p_dp_descs },
 	{ .compatible = "qcom,sc7180-dp", .data = &sc7180_dp_descs },
 	{ .compatible = "qcom,sc7280-dp", .data = &sc7280_dp_descs },
 	{ .compatible = "qcom,sc7280-edp", .data = &sc7280_dp_descs },
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [PATCH v5 0/5] Add support for DisplayPort on SA8775P platform
  2024-10-18  7:07 [PATCH v5 0/5] Add support for DisplayPort on SA8775P platform Soutrik Mukhopadhyay
                   ` (4 preceding siblings ...)
  2024-10-18  7:07 ` [PATCH v5 5/5] drm/msm/dp: Add DisplayPort controller for SA8775P Soutrik Mukhopadhyay
@ 2024-10-18 10:08 ` Dmitry Baryshkov
  2024-10-18 10:10   ` Konrad Dybcio
  2024-10-21 12:17 ` Dmitry Baryshkov
  6 siblings, 1 reply; 9+ messages in thread
From: Dmitry Baryshkov @ 2024-10-18 10:08 UTC (permalink / raw)
  To: Soutrik Mukhopadhyay
  Cc: vkoul, kishon, konradybcio, andersson, simona, abel.vesa,
	robdclark, quic_abhinavk, sean, marijn.suijten, airlied, daniel,
	maarten.lankhorst, mripard, tzimmermann, robh, krzk+dt, conor+dt,
	quic_khsieh, konrad.dybcio, quic_parellan, quic_bjorande,
	linux-arm-msm, linux-phy, linux-kernel, dri-devel, freedreno,
	devicetree, quic_riteshk, quic_vproddut

On Fri, Oct 18, 2024 at 12:37:01PM +0530, Soutrik Mukhopadhyay wrote:
> This series adds support for the DisplayPort controller
> and eDP PHY v5 found on the Qualcomm SA8775P platform.
> 
> ---
> v2: Fixed review comments from Dmitry and Bjorn
> 	- Made aux_cfg array as const.
> 	- Reused edp_swing_hbr_rbr and edp_swing_hbr2_hbr3 for v5.
> 
> v3: Fixed review comments from Dmitry, Konrad and Bjorn
> 	- Used a for loop to write the dp_phy_aux_cfg registers.
> 	- Pre-defined the aux_cfg size to prevent any magic numbers.
> 	- Added all the necessary DPTX controllers for this platform.
> 
> v4: Fixed review comments from Dmitry and Krzysztof
> 	- Removed the "reviewed by" and kept only the "acked by" for 
> 	  patch 1.
> 	- Updated the commit message of patch 5 to mention specifically
> 	  about the validation of "only" MDSS0 DPTX0 and DPTX1.
> 
> v5: Fixed review comment from Dmitry in patch 5
> 	- Aligned the register starting address for display port as part 
> 	  of device description with respect to other targets.
> 
> Below patches are applied:
> 
> [1/5] dt-bindings: phy: Add eDP PHY compatible for sa8775p
>       commit: 7adb3d221a4d6a4f5e0793c3bd35f1168934035c
> [2/5] phy: qcom: edp: Introduce aux_cfg array for version specific aux settings
>       commit: 913463587d528d766a8e12c7790995e273ec84fb
> [3/5] phy: qcom: edp: Add support for eDP PHY on SA8775P
>       commit: 3f12bf16213c30d8e645027efd94a19c13ee0253

Please in future skip applied patches instead of including them into the
series.  No need to resend the series just for this issue though.

> 
> ---
> 
> Soutrik Mukhopadhyay (5):
>   dt-bindings: phy: Add eDP PHY compatible for sa8775p
>   phy: qcom: edp: Introduce aux_cfg array for version specific aux
>     settings
>   phy: qcom: edp: Add support for eDP PHY on SA8775P
>   dt-bindings: display: msm: dp-controller: document SA8775P compatible
>   drm/msm/dp: Add DisplayPort controller for SA8775P
> 
>  .../bindings/display/msm/dp-controller.yaml   |  1 +
>  .../devicetree/bindings/phy/qcom,edp-phy.yaml |  1 +
>  drivers/gpu/drm/msm/dp/dp_display.c           |  9 +++
>  drivers/phy/qualcomm/phy-qcom-edp.c           | 74 +++++++++++++------
>  4 files changed, 61 insertions(+), 24 deletions(-)
> 
> -- 
> 2.17.1
> 

-- 
With best wishes
Dmitry

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH v5 0/5] Add support for DisplayPort on SA8775P platform
  2024-10-18 10:08 ` [PATCH v5 0/5] Add support for DisplayPort on SA8775P platform Dmitry Baryshkov
@ 2024-10-18 10:10   ` Konrad Dybcio
  0 siblings, 0 replies; 9+ messages in thread
From: Konrad Dybcio @ 2024-10-18 10:10 UTC (permalink / raw)
  To: Dmitry Baryshkov, Soutrik Mukhopadhyay
  Cc: vkoul, kishon, konradybcio, andersson, simona, abel.vesa,
	robdclark, quic_abhinavk, sean, marijn.suijten, airlied, daniel,
	maarten.lankhorst, mripard, tzimmermann, robh, krzk+dt, conor+dt,
	quic_khsieh, konrad.dybcio, quic_parellan, quic_bjorande,
	linux-arm-msm, linux-phy, linux-kernel, dri-devel, freedreno,
	devicetree, quic_riteshk, quic_vproddut

On 18.10.2024 12:08 PM, Dmitry Baryshkov wrote:
> On Fri, Oct 18, 2024 at 12:37:01PM +0530, Soutrik Mukhopadhyay wrote:
>> This series adds support for the DisplayPort controller
>> and eDP PHY v5 found on the Qualcomm SA8775P platform.
>>
>> ---
>> v2: Fixed review comments from Dmitry and Bjorn
>> 	- Made aux_cfg array as const.
>> 	- Reused edp_swing_hbr_rbr and edp_swing_hbr2_hbr3 for v5.
>>
>> v3: Fixed review comments from Dmitry, Konrad and Bjorn
>> 	- Used a for loop to write the dp_phy_aux_cfg registers.
>> 	- Pre-defined the aux_cfg size to prevent any magic numbers.
>> 	- Added all the necessary DPTX controllers for this platform.
>>
>> v4: Fixed review comments from Dmitry and Krzysztof
>> 	- Removed the "reviewed by" and kept only the "acked by" for 
>> 	  patch 1.
>> 	- Updated the commit message of patch 5 to mention specifically
>> 	  about the validation of "only" MDSS0 DPTX0 and DPTX1.
>>
>> v5: Fixed review comment from Dmitry in patch 5
>> 	- Aligned the register starting address for display port as part 
>> 	  of device description with respect to other targets.
>>
>> Below patches are applied:
>>
>> [1/5] dt-bindings: phy: Add eDP PHY compatible for sa8775p
>>       commit: 7adb3d221a4d6a4f5e0793c3bd35f1168934035c
>> [2/5] phy: qcom: edp: Introduce aux_cfg array for version specific aux settings
>>       commit: 913463587d528d766a8e12c7790995e273ec84fb
>> [3/5] phy: qcom: edp: Add support for eDP PHY on SA8775P
>>       commit: 3f12bf16213c30d8e645027efd94a19c13ee0253
> 
> Please in future skip applied patches instead of including them into the
> series.  No need to resend the series just for this issue though.

(you would normally do this by rebasing your tree against -next
and having git rebase-skip the ones already present)

Konrad

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH v5 0/5] Add support for DisplayPort on SA8775P platform
  2024-10-18  7:07 [PATCH v5 0/5] Add support for DisplayPort on SA8775P platform Soutrik Mukhopadhyay
                   ` (5 preceding siblings ...)
  2024-10-18 10:08 ` [PATCH v5 0/5] Add support for DisplayPort on SA8775P platform Dmitry Baryshkov
@ 2024-10-21 12:17 ` Dmitry Baryshkov
  6 siblings, 0 replies; 9+ messages in thread
From: Dmitry Baryshkov @ 2024-10-21 12:17 UTC (permalink / raw)
  To: vkoul, kishon, konradybcio, andersson, simona, abel.vesa,
	robdclark, quic_abhinavk, sean, marijn.suijten, airlied,
	maarten.lankhorst, mripard, tzimmermann, robh, krzk+dt, conor+dt,
	quic_khsieh, quic_parellan, quic_bjorande, Simona Vetter,
	Soutrik Mukhopadhyay
  Cc: linux-arm-msm, linux-phy, linux-kernel, dri-devel, freedreno,
	devicetree, quic_riteshk, quic_vproddut


On Fri, 18 Oct 2024 12:37:01 +0530, Soutrik Mukhopadhyay wrote:
> This series adds support for the DisplayPort controller
> and eDP PHY v5 found on the Qualcomm SA8775P platform.
> 

Applied, thanks!

[4/5] dt-bindings: display: msm: dp-controller: document SA8775P compatible
      https://gitlab.freedesktop.org/lumag/msm/-/commit/c51ff89a8139
[5/5] drm/msm/dp: Add DisplayPort controller for SA8775P
      https://gitlab.freedesktop.org/lumag/msm/-/commit/dcb380d19e58

Best regards,
-- 
Dmitry Baryshkov <dmitry.baryshkov@linaro.org>

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-10-21 12:17 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-18  7:07 [PATCH v5 0/5] Add support for DisplayPort on SA8775P platform Soutrik Mukhopadhyay
2024-10-18  7:07 ` [PATCH v5 1/5] dt-bindings: phy: Add eDP PHY compatible for sa8775p Soutrik Mukhopadhyay
2024-10-18  7:07 ` [PATCH v5 2/5] phy: qcom: edp: Introduce aux_cfg array for version specific aux settings Soutrik Mukhopadhyay
2024-10-18  7:07 ` [PATCH v5 3/5] phy: qcom: edp: Add support for eDP PHY on SA8775P Soutrik Mukhopadhyay
2024-10-18  7:07 ` [PATCH v5 4/5] dt-bindings: display: msm: dp-controller: document SA8775P compatible Soutrik Mukhopadhyay
2024-10-18  7:07 ` [PATCH v5 5/5] drm/msm/dp: Add DisplayPort controller for SA8775P Soutrik Mukhopadhyay
2024-10-18 10:08 ` [PATCH v5 0/5] Add support for DisplayPort on SA8775P platform Dmitry Baryshkov
2024-10-18 10:10   ` Konrad Dybcio
2024-10-21 12:17 ` Dmitry Baryshkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox