From patchwork Wed Feb 12 07:12:24 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yongxing Mou X-Patchwork-Id: 13971274 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C5D88C0219E for ; Wed, 12 Feb 2025 07:15:56 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 492BB10E7D3; Wed, 12 Feb 2025 07:15:56 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=quicinc.com header.i=@quicinc.com header.b="EgCb+7uG"; dkim-atps=neutral Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by gabe.freedesktop.org (Postfix) with ESMTPS id C0EBE10E7C8; Wed, 12 Feb 2025 07:15:54 +0000 (UTC) Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 51C5xCN4006113; Wed, 12 Feb 2025 07:15:49 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= 22LPV32tFRSPNvTVkyVUSsvfBCHZ0Gz9jWXuDADGHK8=; b=EgCb+7uGncOfRDK4 jTrRUrSCR9WKA1k+QBJN9twqUmYmw/PooXFD0ZREkcuyGNJMzQBjGx4hNu0Tz0Dg X4H1iBqHiN+thbYU6wNx6rlGxDxqWzVGaGdunX7gipqz3StA7AVZMTn5hBK5MekP cGkC/7ostWn0k7cFZ2MXIeHoEz94T5dKCNHTYIRTNWUdV+EqtW8blVGRrUzWMVdp eNRwzhb7OeT7IoX1vLHReDVuGipjes4T4Fw+dy2BFv7UuZ0pR9jzm3SOMWPw0/G+ qwsvyXDe190QHT8Ia1JM5EJxudxkBs9Q3Y8sBa2d8NMZfluglCX8kPZ8/NcHqiAX GOAssw== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 44qe5mxmtq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 12 Feb 2025 07:15:48 +0000 (GMT) Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA02.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 51C7FlHP032521 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 12 Feb 2025 07:15:47 GMT Received: from cse-cd01-lnx.ap.qualcomm.com (10.80.80.8) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Tue, 11 Feb 2025 23:15:41 -0800 From: Yongxing Mou Date: Wed, 12 Feb 2025 15:12:24 +0800 Subject: [PATCH 1/4] dt-bindings: display/msm: Redocument the dp-controller for QCS8300 MIME-Version: 1.0 Message-ID: <20250212-mst_qcs8300-v1-1-38a8aa08394b@quicinc.com> References: <20250212-mst_qcs8300-v1-0-38a8aa08394b@quicinc.com> In-Reply-To: <20250212-mst_qcs8300-v1-0-38a8aa08394b@quicinc.com> To: Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , Marijn Suijten , David Airlie , Simona Vetter , "Maarten Lankhorst" , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Kuogee Hsieh , "Bjorn Andersson" , Konrad Dybcio CC: , , , , , Yongxing Mou X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1739344531; l=1318; i=quic_yongmou@quicinc.com; s=20241121; h=from:subject:message-id; bh=oZwn6CQcPkfn2HChYyQw5Jok2/iQojiyJ+cd40C1/5c=; b=xNQurVyXTxc5lSjSCACTsIXgtyY4UvyhOB6BgOIgC9c0WkZtShZXe0qusuIJ62JY1htQkCduM P924mS3PqSJBNvfqffuasEyGGBZ3kTLl7P0/VUgIXzX82dEqkXwdDrg X-Developer-Key: i=quic_yongmou@quicinc.com; a=ed25519; pk=zeCnFRUqtOQMeFvdwex2M5o0Yf67UHYfwCyBRQ3kFbU= X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: _BtGSiwRmso42GRshz2ARUljJ28jUp9s X-Proofpoint-ORIG-GUID: _BtGSiwRmso42GRshz2ARUljJ28jUp9s X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-02-12_02,2025-02-11_01,2024-11-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 priorityscore=1501 clxscore=1015 suspectscore=0 mlxscore=0 lowpriorityscore=0 phishscore=0 impostorscore=0 malwarescore=0 spamscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2501170000 definitions=main-2502120055 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" We need to enable mst for qcs8300, dp0 controller will support 2 streams output. So not reuse sm8650 dp controller driver and will add a new driver patch for qcs8300 mst feature. Modify the corresponding dt-bingding file to compatible with the qcs8300-dp. Signed-off-by: Yongxing Mou --- Documentation/devicetree/bindings/display/msm/dp-controller.yaml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/display/msm/dp-controller.yaml b/Documentation/devicetree/bindings/display/msm/dp-controller.yaml index 359e364d79b20469d41cd8416a55b6a5d5c7d8ce..59075d7f05147f1f477f236a76fee6ec5d8c5ad8 100644 --- a/Documentation/devicetree/bindings/display/msm/dp-controller.yaml +++ b/Documentation/devicetree/bindings/display/msm/dp-controller.yaml @@ -18,6 +18,7 @@ properties: compatible: oneOf: - enum: + - qcom,qcs8300-dp - qcom,sa8775p-dp - qcom,sc7180-dp - qcom,sc7280-dp @@ -37,10 +38,6 @@ properties: - qcom,sm8450-dp - qcom,sm8550-dp - const: qcom,sm8350-dp - - items: - - enum: - - qcom,qcs8300-dp - - const: qcom,sm8650-dp reg: minItems: 4 From patchwork Wed Feb 12 07:12:25 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yongxing Mou X-Patchwork-Id: 13971275 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D7464C02198 for ; Wed, 12 Feb 2025 07:16:00 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 49FFE10E7C2; Wed, 12 Feb 2025 07:16:00 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=quicinc.com header.i=@quicinc.com header.b="FHuxsoN5"; dkim-atps=neutral Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by gabe.freedesktop.org (Postfix) with ESMTPS id CC7A710E7C9; Wed, 12 Feb 2025 07:15:58 +0000 (UTC) Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 51BIsUee023550; Wed, 12 Feb 2025 07:15:54 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= NtxMYbrmGm3Am6NCss6g/K9ylYMpqOw8phPMywkaQcY=; b=FHuxsoN5PXiUJVnB 7BURrw7o8mjPEJWRozQEaRdAvnrNt+xB33qE4b1L66Ky0f4jlWCIXEBpk6xeQHSa nf4JSadYyMUEWDTazBaTcUmnHwfj43me/cSUtXJ7rGQR5NmnUcrlKEqCOzg5XFFC kgL+ASYzrMPA3Zn19fRwZqIY+0+Gv9qTdmBOdVwYKFSMYF6ypp0C3gUN73WHWQVe zEEv8wyMz8O9lZJeZmeoljPJCW0AoW3cKVTK9timtfusT2/DoV9KPPobcPCJBehX bANlGWJzGw2O9vLiZxgN/yiaAw/lohEMv2fMDohbVj2aWfqzSBkqsxGudhfpkaIh TtCdOg== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 44r4b5u5tr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 12 Feb 2025 07:15:54 +0000 (GMT) Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA05.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 51C7FrJo005638 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 12 Feb 2025 07:15:53 GMT Received: from cse-cd01-lnx.ap.qualcomm.com (10.80.80.8) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Tue, 11 Feb 2025 23:15:47 -0800 From: Yongxing Mou Date: Wed, 12 Feb 2025 15:12:25 +0800 Subject: [PATCH 2/4] dt-bindings: display/msm: Add stream 1 pixel clock for QCS8300 MIME-Version: 1.0 Message-ID: <20250212-mst_qcs8300-v1-2-38a8aa08394b@quicinc.com> References: <20250212-mst_qcs8300-v1-0-38a8aa08394b@quicinc.com> In-Reply-To: <20250212-mst_qcs8300-v1-0-38a8aa08394b@quicinc.com> To: Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , Marijn Suijten , David Airlie , Simona Vetter , "Maarten Lankhorst" , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Kuogee Hsieh , "Bjorn Andersson" , Konrad Dybcio CC: , , , , , Yongxing Mou X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1739344532; l=2551; i=quic_yongmou@quicinc.com; s=20241121; h=from:subject:message-id; bh=i5qxzghiObgnfgP7s3hIV1doM8HkGQ6bZe5wA3GtJy0=; b=10GYxHZJILOA27lgroDksU1EHwwit/dbsfKcgOMLTGVMu9VCJWaEId7Lodg2SegpLK7VbIDyt xDrtpA3hn9EC5/iVzzgljaA2ARZv+lmbYh2jd/Uu3diGa5WBjFXtscD X-Developer-Key: i=quic_yongmou@quicinc.com; a=ed25519; pk=zeCnFRUqtOQMeFvdwex2M5o0Yf67UHYfwCyBRQ3kFbU= X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: rDW8kieGBc7um8VC6JA7b7bYbMgoFmW4 X-Proofpoint-GUID: rDW8kieGBc7um8VC6JA7b7bYbMgoFmW4 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-02-12_02,2025-02-11_01,2024-11-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 priorityscore=1501 suspectscore=0 mlxlogscore=999 lowpriorityscore=0 malwarescore=0 impostorscore=0 clxscore=1015 mlxscore=0 bulkscore=0 spamscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2501170000 definitions=main-2502120055 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Support mst for qcs8300 and add the stream 1 clock support in the mdss dt-bindings. Signed-off-by: Yongxing Mou --- .../devicetree/bindings/display/msm/qcom,qcs8300-mdss.yaml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Documentation/devicetree/bindings/display/msm/qcom,qcs8300-mdss.yaml b/Documentation/devicetree/bindings/display/msm/qcom,qcs8300-mdss.yaml index eb7f36387f748793ebf662baded4a13a61b3ce39..610742ceebf8ee5e140a409bfeb92d9f43085214 100644 --- a/Documentation/devicetree/bindings/display/msm/qcom,qcs8300-mdss.yaml +++ b/Documentation/devicetree/bindings/display/msm/qcom,qcs8300-mdss.yaml @@ -53,7 +53,6 @@ patternProperties: compatible: items: - const: qcom,qcs8300-dp - - const: qcom,sm8650-dp required: - compatible @@ -164,7 +163,7 @@ examples: }; displayport-controller@af54000 { - compatible = "qcom,qcs8300-dp", "qcom,sm8650-dp"; + compatible = "qcom,qcs8300-dp"; pinctrl-0 = <&dp_hot_plug_det>; pinctrl-names = "default"; @@ -181,15 +180,18 @@ examples: <&dispcc0 MDSS_DISP_CC_MDSS_DPTX0_AUX_CLK>, <&dispcc0 MDSS_DISP_CC_MDSS_DPTX0_LINK_CLK>, <&dispcc0 MDSS_DISP_CC_MDSS_DPTX0_LINK_INTF_CLK>, - <&dispcc0 MDSS_DISP_CC_MDSS_DPTX0_PIXEL0_CLK>; + <&dispcc0 MDSS_DISP_CC_MDSS_DPTX0_PIXEL0_CLK>, + <&dispcc0 MDSS_DISP_CC_MDSS_DPTX0_PIXEL1_CLK>; clock-names = "core_iface", "core_aux", "ctrl_link", "ctrl_link_iface", - "stream_pixel"; + "stream_pixel", + "stream_1_pixel"; assigned-clocks = <&dispcc0 MDSS_DISP_CC_MDSS_DPTX0_LINK_CLK_SRC>, - <&dispcc0 MDSS_DISP_CC_MDSS_DPTX0_PIXEL0_CLK_SRC>; - assigned-clock-parents = <&mdss_edp_phy 0>, <&mdss_edp_phy 1>; + <&dispcc0 MDSS_DISP_CC_MDSS_DPTX0_PIXEL0_CLK_SRC>, + <&dispcc0 MDSS_DISP_CC_MDSS_DPTX0_PIXEL1_CLK_SRC>; + assigned-clock-parents = <&mdss_edp_phy 0>, <&mdss_edp_phy 1>, <&mdss_edp_phy 1>; phys = <&mdss_edp_phy>; phy-names = "dp"; operating-points-v2 = <&dp_opp_table>; From patchwork Wed Feb 12 07:12:26 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yongxing Mou X-Patchwork-Id: 13971276 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E5637C02198 for ; Wed, 12 Feb 2025 07:16:07 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 60EC610E256; Wed, 12 Feb 2025 07:16:07 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=quicinc.com header.i=@quicinc.com header.b="J4VtgJ83"; dkim-atps=neutral Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by gabe.freedesktop.org (Postfix) with ESMTPS id 30E3C10E256; Wed, 12 Feb 2025 07:16:06 +0000 (UTC) Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 51C0UdPr030555; Wed, 12 Feb 2025 07:16:01 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= dhzKottr+LRsQwy0L+XNzGMpp54hezociQQ9kRAcT2U=; b=J4VtgJ831FVudxdg 1E4VWdBvgEiEpQAyNSIQ5lS0Ii+oC6Mwmp8LmzjCvoDZrOfigYh1VZAKOUKJWmDZ MUKZWvQ+D39IQ9as2QmS28Kd4TVp4HSr/JscIIVxIDHA90YTanRFeWBuk3R646oe RK/eSnJTdLFz3W5i9kZiIIwHM7sT+ZWofq649+UMdArzMMMNKBHbQ6r5oeAoMMbe vQbHxrQgl6SczsUbWnqr5LTe9VnJ7a0ApkysYBJXfHOSi4GWZNVY84V8hSLaGYyx /VHniX5EZPBZFUMF44eIWGZDN2nym4v1N6yv6SY3fcu2mA9f2U5zH0z+8A95q9gF xmtgAQ== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 44qxg9m0tu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 12 Feb 2025 07:16:00 +0000 (GMT) Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA02.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 51C7Fxxj000691 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 12 Feb 2025 07:15:59 GMT Received: from cse-cd01-lnx.ap.qualcomm.com (10.80.80.8) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Tue, 11 Feb 2025 23:15:53 -0800 From: Yongxing Mou Date: Wed, 12 Feb 2025 15:12:26 +0800 Subject: [PATCH 3/4] drm/msm/dp: Populate the max_streams for qcs8300 mst controller MIME-Version: 1.0 Message-ID: <20250212-mst_qcs8300-v1-3-38a8aa08394b@quicinc.com> References: <20250212-mst_qcs8300-v1-0-38a8aa08394b@quicinc.com> In-Reply-To: <20250212-mst_qcs8300-v1-0-38a8aa08394b@quicinc.com> To: Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , Marijn Suijten , David Airlie , Simona Vetter , "Maarten Lankhorst" , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Kuogee Hsieh , "Bjorn Andersson" , Konrad Dybcio CC: , , , , , Yongxing Mou X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1739344534; l=1965; i=quic_yongmou@quicinc.com; s=20241121; h=from:subject:message-id; bh=MQIzh3ziF5d0/tKmlR9+IXcta4eS2hJO/yRwQIK/O0g=; b=lVXIzKJ/Ze2NoCCcq3qD85778CQudhDkisTY+M/nSrdUO3oz2ne9/r3oFRtcYqXyKu1aMtnOZ N1NfV2hOe3KBNIlUSCxbvk9cRY8yKgybgCwkI8lmVSFTyjKiS3mKUOW X-Developer-Key: i=quic_yongmou@quicinc.com; a=ed25519; pk=zeCnFRUqtOQMeFvdwex2M5o0Yf67UHYfwCyBRQ3kFbU= X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: mKJFZMzEt5t5mxenRYUvrcZvDo1DMJMM X-Proofpoint-GUID: mKJFZMzEt5t5mxenRYUvrcZvDo1DMJMM X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-02-12_02,2025-02-11_01,2024-11-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 adultscore=0 mlxscore=0 priorityscore=1501 malwarescore=0 spamscore=0 impostorscore=0 mlxlogscore=999 lowpriorityscore=0 phishscore=0 clxscore=1015 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2501170000 definitions=main-2502120055 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Add support to program 2 streams MST for qcs8300. Previously, the qcs8300 reused the driver of the sm8650's DP controller because they have the same base address, offset, and number of controllers. However, now we need to enable the MST feature for the qcs8300, so we need a new patch The qcs8300 use the same DPU hardware as sa8775p but only have one DPU and dp controller which supports 4 streams MST, but currently we only enable 2 streams MST. It use the intf0 and intf3 to output the data streams of MST0 and MST1. Signed-off-by: Yongxing Mou --- drivers/gpu/drm/msm/dp/dp_display.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/gpu/drm/msm/dp/dp_display.c b/drivers/gpu/drm/msm/dp/dp_display.c index fbbd39d1e53ba3172757105937a528b5c58ea290..fbe4658af1be2ec8c02e8f567667f1dc93ee5537 100644 --- a/drivers/gpu/drm/msm/dp/dp_display.c +++ b/drivers/gpu/drm/msm/dp/dp_display.c @@ -149,6 +149,13 @@ static const unsigned int stream_intf_map_sa_8775p[][DP_STREAM_MAX] = { {} }; +static const struct msm_dp_desc msm_dp_desc_qcs8300[] = { + { .io_start = 0x0af54000, .id = MSM_DP_CONTROLLER_0, .wide_bus_supported = true, .max_streams = 2, + .intf_map = stream_intf_map_sa_8775p[MSM_DP_CONTROLLER_0], + }, + {} +}; + static const struct msm_dp_desc msm_dp_desc_sa8775p[] = { { .io_start = 0x0af54000, .id = MSM_DP_CONTROLLER_0, .wide_bus_supported = true, .max_streams = 2, .intf_map = stream_intf_map_sa_8775p[MSM_DP_CONTROLLER_0], @@ -205,6 +212,7 @@ static const struct msm_dp_desc msm_dp_desc_x1e80100[] = { }; static const struct of_device_id msm_dp_dt_match[] = { + { .compatible = "qcom,qcs8300-dp", .data = &msm_dp_desc_qcs8300 }, { .compatible = "qcom,sa8775p-dp", .data = &msm_dp_desc_sa8775p }, { .compatible = "qcom,sc7180-dp", .data = &msm_dp_desc_sc7180 }, { .compatible = "qcom,sc7280-dp", .data = &msm_dp_desc_sc7280 }, From patchwork Wed Feb 12 07:12:27 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yongxing Mou X-Patchwork-Id: 13971277 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 005F9C0219E for ; Wed, 12 Feb 2025 07:16:14 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6D53910E7C7; Wed, 12 Feb 2025 07:16:14 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=quicinc.com header.i=@quicinc.com header.b="Db8198oC"; dkim-atps=neutral Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by gabe.freedesktop.org (Postfix) with ESMTPS id B501F10E7C5; Wed, 12 Feb 2025 07:16:12 +0000 (UTC) Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 51C3IXqn010299; Wed, 12 Feb 2025 07:16:07 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= nKdCxBfv2lMbXsVO/dbX5oXVc6EO1oBLGX5fenO7Krg=; b=Db8198oCQRKxWT1P KK6GOJ8/JURiBUXOYXngTU9tjqMWZwrjm7wdEeA1sTif74IuXjF1XTE7YCdNU/QT u+fzPDUHG7ePatndQEBsAL+xqCz6lsNXQhN2zoig8cAr9LVrzWzzmJ5C+0mkpWB7 I1W9ynkmUP2yQ2vd+1+qtkyeZFUWHAAby+zQQ5nWj3Q83YzzBiUHX9jah9mmDnLx 3DOIPkfx8aIEnSi8kdsrxBa/WzRzc3B84joM2LFfETUgUteK/yfLq7R0s8NLG+Y5 qK9GszeRwnvFLcZ9ZoIGQuffBdKiM1D/DGh2V+qy4dXx2a9JOF30V9DDNchabNWC B/iiTA== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 44qcs5ey6h-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 12 Feb 2025 07:16:07 +0000 (GMT) Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA01.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 51C7G5aS014438 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 12 Feb 2025 07:16:05 GMT Received: from cse-cd01-lnx.ap.qualcomm.com (10.80.80.8) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Tue, 11 Feb 2025 23:15:59 -0800 From: Yongxing Mou Date: Wed, 12 Feb 2025 15:12:27 +0800 Subject: [PATCH 4/4] arm64: dts: qcom: qcs8300: Add support for stream 1 clk for DP MST MIME-Version: 1.0 Message-ID: <20250212-mst_qcs8300-v1-4-38a8aa08394b@quicinc.com> References: <20250212-mst_qcs8300-v1-0-38a8aa08394b@quicinc.com> In-Reply-To: <20250212-mst_qcs8300-v1-0-38a8aa08394b@quicinc.com> To: Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , Marijn Suijten , David Airlie , Simona Vetter , "Maarten Lankhorst" , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Kuogee Hsieh , "Bjorn Andersson" , Konrad Dybcio CC: , , , , , Yongxing Mou X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1739344535; l=1761; i=quic_yongmou@quicinc.com; s=20241121; h=from:subject:message-id; bh=GNTH8pHgqWxfD+S9tpEYVyPK6aZBiwCm51fjST4Cw8w=; b=x5GebqgIdLYwWe5gSZKV3jJv4StgjIDGRq2C3mAYoMWodWBsyFPESzMkOjcCzbsAdk9MZh/tf T1Gts7ATDflCRUuHVpYSXRa4D5UvItLPyqManOpiX3RuBXZAiqZ70gd X-Developer-Key: i=quic_yongmou@quicinc.com; a=ed25519; pk=zeCnFRUqtOQMeFvdwex2M5o0Yf67UHYfwCyBRQ3kFbU= X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: HVCbnmQuxLo7clZrm2AdKbIyBHXwk1dp X-Proofpoint-GUID: HVCbnmQuxLo7clZrm2AdKbIyBHXwk1dp X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-02-12_02,2025-02-11_01,2024-11-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 impostorscore=0 mlxlogscore=742 phishscore=0 lowpriorityscore=0 spamscore=0 malwarescore=0 adultscore=0 clxscore=1015 mlxscore=0 priorityscore=1501 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2501170000 definitions=main-2502120055 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Add 2 streams MST support for qcs8300. Compatile with qcs8300 dp controller driver and populate the stream clock for qcs8300 DP0 controller in MST mode. Signed-off-by: Yongxing Mou --- arch/arm64/boot/dts/qcom/qcs8300.dtsi | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/qcs8300.dtsi b/arch/arm64/boot/dts/qcom/qcs8300.dtsi index e10db7275accf769500abbebf57a6cbbbc4bf167..5166686981617707ba19245723e9215a53300392 100644 --- a/arch/arm64/boot/dts/qcom/qcs8300.dtsi +++ b/arch/arm64/boot/dts/qcom/qcs8300.dtsi @@ -2865,12 +2865,13 @@ mdss_dp0_phy: phy@aec2a00 { }; mdss_dp0: displayport-controller@af54000 { - compatible = "qcom,qcs8300-dp", "qcom,sm8650-dp"; + compatible = "qcom,qcs8300-dp"; reg = <0x0 0x0af54000 0x0 0x200>, <0x0 0x0af54200 0x0 0x200>, <0x0 0x0af55000 0x0 0xc00>, - <0x0 0x0af56000 0x0 0x400>; + <0x0 0x0af56000 0x0 0x400>, + <0x0 0x0af57000 0x0 0x400>; interrupt-parent = <&mdss>; interrupts = <12>; @@ -2884,10 +2885,13 @@ mdss_dp0: displayport-controller@af54000 { "core_aux", "ctrl_link", "ctrl_link_iface", - "stream_pixel"; + "stream_pixel", + "stream_1_pixel"; assigned-clocks = <&dispcc MDSS_DISP_CC_MDSS_DPTX0_LINK_CLK_SRC>, - <&dispcc MDSS_DISP_CC_MDSS_DPTX0_PIXEL0_CLK_SRC>; + <&dispcc MDSS_DISP_CC_MDSS_DPTX0_PIXEL0_CLK_SRC>, + <&dispcc MDSS_DISP_CC_MDSS_DPTX0_PIXEL1_CLK_SRC>; assigned-clock-parents = <&mdss_dp0_phy 0>, + <&mdss_dp0_phy 1>, <&mdss_dp0_phy 1>; phys = <&mdss_dp0_phy>; phy-names = "dp";