From patchwork Wed Mar 27 02:04:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 13605479 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 1C430CD1283 for ; Wed, 27 Mar 2024 02:05:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:CC:To:In-Reply-To:References:Message-ID :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=uVZWiBmYeVsgWm317zp8Lvq20cHul1EIqj3BtTzC+Lc=; b=0KKhJ43rZt3k/F OpSb1g62P75Nyp02n4pFN7m0p+CaD6ieWVWdVS/Dm0Xf1lfoumfBX8/6uw9ovg01yj8AAGK28EtpT 1jzTlXok2cJOHs5jpmAJbN8f2NvCF4MPKAjzPR7Q76hhi0Vgx6wsb4O2Skm9tMYLMTuzRij3Oo+R3 bFkBhOcO3jlq/cEvXkad+aX9IgcwEBDfPjtDvW9WqjIpI/4TpbLl/AXQE+9+UA/KY56d6/7OeyL3c b+DZvSwqCnFgffdc2j55VsLE+W0I74EI5t5mOlnQnXAOS7QX0rw0dmLJzM/sLj5s/Upg4Pkb5xEKn BX3hQdcM/NRnKNSfR7jg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rpIet-000000079tu-3awD; Wed, 27 Mar 2024 02:04:55 +0000 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rpIeg-000000079oR-1SN8 for linux-arm-kernel@lists.infradead.org; Wed, 27 Mar 2024 02:04:45 +0000 Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 42R0tRsT024156; Wed, 27 Mar 2024 02:04:31 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:date:subject:mime-version:content-type :content-transfer-encoding:message-id:references:in-reply-to:to :cc; s=qcppdkim1; bh=OA4HTGE3gk5yXf2lZJ9Uk1ZR1AxJF8BlqYBnZRsloV8 =; b=OmzOQpgOnKeqq7byHiyz3/+vwNBYLgBS4DiWRxmSjJt8B4+O7lvdIzxt9Ye 9NNHZVCkO9eoFR/cxujTEF37s1QQqS8fV7gzkkvgTZ9C0uKvaR6gczIil7F8j9WF SDVeGjKnij+osnGr0iU/CvpKc0MxMt9POE1qKKS8QeZywbSWNZr8SjczepS4eV7a xySlcGzAZpMOObAflUZcs5h7wbyoF5Cni5eulvZ7v+/dO0voPOB54U/DuLEhx2xI +xUVnUgFMZ2HUk1NEo6fq5S3oiGZMkgRI7vzhPe1TubLE9c2PLehoFCJcrdTMtlE 1hQ1D/9Um5x5ZIxo2FKj9SlkAHA== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3x4780gbf0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 27 Mar 2024 02:04:30 +0000 (GMT) Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 42R24TRx012225 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 27 Mar 2024 02:04:29 GMT Received: from [169.254.0.1] (10.49.16.6) 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.1118.40; Tue, 26 Mar 2024 19:04:29 -0700 From: Bjorn Andersson Date: Tue, 26 Mar 2024 19:04:18 -0700 Subject: [PATCH v2 1/6] arm64: dts: qcom: sc7280: Enable MDP turbo mode MIME-Version: 1.0 Message-ID: <20240326-rb3gen2-dp-connector-v2-1-a9f1bc32ecaf@quicinc.com> References: <20240326-rb3gen2-dp-connector-v2-0-a9f1bc32ecaf@quicinc.com> In-Reply-To: <20240326-rb3gen2-dp-connector-v2-0-a9f1bc32ecaf@quicinc.com> To: , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Catalin Marinas , Will Deacon , Dmitry Baryshkov CC: , , , , Douglas Anderson , Abhinav Kumar , Bjorn Andersson X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1711505069; l=1047; i=quic_bjorande@quicinc.com; s=20230915; h=from:subject:message-id; bh=PH3agPVcu0oRlNkvdU1AcR2OvLC0h7VlusCgUGbWUQk=; b=MgIUmDhiEgicryNajAoVbvLkS3dRSe/Q056wfsQ24Zn4H4nreljRKaUFie14TnsrHmHfB6eq/ ppq+RWJQbCqBekN+Tp+yHb6ouIOxV2wmMEQKBzmha2HPMNlk3HpEzex X-Developer-Key: i=quic_bjorande@quicinc.com; a=ed25519; pk=VkhObtljigy9k0ZUIE1Mvr0Y+E1dgBEH9WoLQnUtbIM= X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01c.na.qualcomm.com (10.47.97.35) 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: 6GMQsUpAR1sNcUkqroR15R5iYDhCwiKC X-Proofpoint-GUID: 6GMQsUpAR1sNcUkqroR15R5iYDhCwiKC X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-03-26_12,2024-03-21_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 adultscore=0 impostorscore=0 lowpriorityscore=0 malwarescore=0 mlxlogscore=917 bulkscore=0 mlxscore=0 phishscore=0 clxscore=1015 spamscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2403210001 definitions=main-2403270012 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240326_190442_503153_A867ACEB X-CRM114-Status: GOOD ( 11.63 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The max frequency listed in the DPU opp-table is 506MHz, this is not sufficient to drive a 4k@60 display, resulting in constant underrun. Add the missing MDP_CLK turbo frequency of 608MHz to the opp-table to fix this. Acked-by: Douglas Anderson Reviewed-by: Abhinav Kumar Reviewed-by: Konrad Dybcio Signed-off-by: Bjorn Andersson --- arch/arm64/boot/dts/qcom/sc7280.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qcom/sc7280.dtsi index 41f51d326111..261d2d431faa 100644 --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi @@ -4458,6 +4458,11 @@ opp-506666667 { opp-hz = /bits/ 64 <506666667>; required-opps = <&rpmhpd_opp_nom>; }; + + opp-608000000 { + opp-hz = /bits/ 64 <608000000>; + required-opps = <&rpmhpd_opp_turbo>; + }; }; }; From patchwork Wed Mar 27 02:04:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 13605478 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 D5506C54E67 for ; Wed, 27 Mar 2024 02:05:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:CC:To:In-Reply-To:References:Message-ID :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=CNHn90X9KGTckjBPe5N95fXBMJx9QwHayGe4pNu2TAc=; b=nkKFht7poNiMxD h0dwlJp8eq/rVNtRuXJu25GRXgannthIjnZHjN2Z0EOHjQOFAE/sy2YFk9tDR5njc5KK6p9Nq/70f qEvrUax8zi86cHiCpOi+o7eM5kFieYcviPb4IBImEVodtAOram0bCVXfIPzgGTkCYeUiIapS37lVu 5XH1WpU0bEr9ES+pM4j9y4ISfQCTj+5IWOvVW2Leabksm0BqrTDSXm5ph5YeQhJ84oCtz2PF+auhB oLYKv1Gn+LBhxGeheT/RnlFr9oB9/THm2pX7ZlpIVNOuGNixjANW+3gOCGu18Yt43dqBu3vrnxAZz riayf0qITMmEfw0uPp3Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rpIew-000000079vK-0YyG; Wed, 27 Mar 2024 02:04:58 +0000 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rpIeg-000000079ob-1mm3 for linux-arm-kernel@lists.infradead.org; Wed, 27 Mar 2024 02:04:46 +0000 Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 42R1wBEX024348; Wed, 27 Mar 2024 02:04:31 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:date:subject:mime-version:content-type :content-transfer-encoding:message-id:references:in-reply-to:to :cc; s=qcppdkim1; bh=XyNMUkrl4UKoqNN+iVNqP4IAueZnf1vHjoggBL7N3iM =; b=Dh/QFBNo+1PRzLZjmR0fdaiomQjVe/jBBsIvfWbhO+9D1Zx2gWoft9/fujg Jb10CnEzRPE6IvGAFUKyH9BlSxufKD5hhEgkCDxcvOJFMwP3Ih8F3YO3GMOXpS/1 UxS9zN1UnCfOA79l8G7XWOS/D4O9Io+1BIPRcS09I8toJuBfJN7kAp+PQTBwqW0W 1IOfVxa+RDuRPGEKm+VpfF8TAeC4LepAx8atK+JZQIWmm4BOUzIrFpiFuOXBCaIj Wo+EoEyBkvmNBUD+IeUurHIpK8qz4z3QWT+2Bn/6eS8CYXo8O133ROwKA6wZEUrA 6HegMlL2NPA4Y8ekcweX1sW8VJw== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3x47800c3n-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 27 Mar 2024 02:04:31 +0000 (GMT) Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 42R24Uhu012399 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 27 Mar 2024 02:04:30 GMT Received: from [169.254.0.1] (10.49.16.6) 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.1118.40; Tue, 26 Mar 2024 19:04:29 -0700 From: Bjorn Andersson Date: Tue, 26 Mar 2024 19:04:19 -0700 Subject: [PATCH v2 2/6] arm64: dts: qcom: qcs6490-rb3gen2: Add DP output MIME-Version: 1.0 Message-ID: <20240326-rb3gen2-dp-connector-v2-2-a9f1bc32ecaf@quicinc.com> References: <20240326-rb3gen2-dp-connector-v2-0-a9f1bc32ecaf@quicinc.com> In-Reply-To: <20240326-rb3gen2-dp-connector-v2-0-a9f1bc32ecaf@quicinc.com> To: , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Catalin Marinas , Will Deacon , Dmitry Baryshkov CC: , , , , "Bjorn Andersson" X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1711505069; l=1624; i=quic_bjorande@quicinc.com; s=20230915; h=from:subject:message-id; bh=hKwYk3D5QSMV7OSF+Ca8/FmkQUmQItnqoBqRsQD44MQ=; b=uyyoX2JyVCf3Z+6XMWRRwxQJ8gO8t8fYVIYbHPEdWu9EVLJuv4ouDCYCW6BDxRM4ZlbYQX6iY 1sKdq8u8EB5DDtjqwXVQ1GyDXr0p7H5C/nedZ0gXSd7mvEvHkwuVFab X-Developer-Key: i=quic_bjorande@quicinc.com; a=ed25519; pk=VkhObtljigy9k0ZUIE1Mvr0Y+E1dgBEH9WoLQnUtbIM= X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01c.na.qualcomm.com (10.47.97.35) 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: yuXJxLpOoN0TFYQWdnmaDDu0ErL9_yJ4 X-Proofpoint-GUID: yuXJxLpOoN0TFYQWdnmaDDu0ErL9_yJ4 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-03-26_12,2024-03-21_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 suspectscore=0 malwarescore=0 lowpriorityscore=0 priorityscore=1501 spamscore=0 phishscore=0 adultscore=0 mlxscore=0 bulkscore=0 impostorscore=0 mlxlogscore=949 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2403210001 definitions=main-2403270012 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240326_190442_740900_85AA4011 X-CRM114-Status: GOOD ( 11.30 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The RB3Gen2 board comes with a mini DP connector, describe this, enable MDSS, DP controller and the PHY that drives this. Signed-off-by: Bjorn Andersson Reviewed-by: Konrad Dybcio Reviewed-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts | 40 ++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts b/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts index 63ebe0774f1d..f90bf3518e98 100644 --- a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts +++ b/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts @@ -39,6 +39,20 @@ chosen { stdout-path = "serial0:115200n8"; }; + dp-connector { + compatible = "dp-connector"; + label = "DP"; + type = "mini"; + + hpd-gpios = <&tlmm 60 GPIO_ACTIVE_HIGH>; + + port { + dp_connector_in: endpoint { + remote-endpoint = <&mdss_edp_out>; + }; + }; + }; + reserved-memory { xbl_mem: xbl@80700000 { reg = <0x0 0x80700000 0x0 0x100000>; @@ -471,6 +485,25 @@ &gcc { ; }; +&mdss { + status = "okay"; +}; + +&mdss_edp { + status = "okay"; +}; + +&mdss_edp_out { + data-lanes = <0 1 2 3>; + link-frequencies = /bits/ 64 <1620000000 2700000000 5400000000 8100000000>; + + remote-endpoint = <&dp_connector_in>; +}; + +&mdss_edp_phy { + status = "okay"; +}; + &qupv3_id_0 { status = "okay"; }; @@ -511,3 +544,10 @@ &usb_1_qmpphy { &wifi { memory-region = <&wlan_fw_mem>; }; + +/* PINCTRL - ADDITIONS TO NODES IN PARENT DEVICE TREE FILES */ + +&edp_hot_plug_det { + function = "gpio"; + bias-disable; +}; From patchwork Wed Mar 27 02:04:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 13605474 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 40CC1CD11DD for ; Wed, 27 Mar 2024 02:05:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:CC:To:In-Reply-To:References:Message-ID :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=+uZFKIoOHTitinKBXQ+CcNOKLcisFGgfCp3UKwcneLA=; b=UCI326wLrsgyLs SChMKRA5JRB/AZhC+BOekjtT1lA6XZnWr2xTYssIjshWHc+dTEzOxDSxsTkmP2hFCLl0/Zh+EgBu8 rdE42k87hqP4pulxLl57Jjy890ED1Q2o3qL7uAsTfglfFmyPZm0X6eGvC4J3zjYYiT1r3qJtL0FTG 1dHWtNiGgNHAUCniBDkg/3lsECNskUpgd1wkTC5ZZz7WOAhCon+QMSQCT4KSx13KjUaISuWGWDd3D FEEXl/qgToLP9O/MiCNMA9Fg+BwcQTUt/PKCn31JT4G/1zn+mSY0i6drnq5tsvOMnq2mNd61bB0vR BMSKVF3CftCXCnHVbIYg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rpIej-000000079rZ-2pYg; Wed, 27 Mar 2024 02:04:45 +0000 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rpIeg-000000079oQ-1Ryx for linux-arm-kernel@lists.infradead.org; Wed, 27 Mar 2024 02:04:43 +0000 Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 42R0Tid1019760; Wed, 27 Mar 2024 02:04:31 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:date:subject:mime-version:content-type :content-transfer-encoding:message-id:references:in-reply-to:to :cc; s=qcppdkim1; bh=RSiZS1eVBzwonBiGx/3biM0BhrxixAuWSSq1VEY8GeI =; b=NqA4C7xchNTOLuu6I5wFfAOuzrAb+QEJdQ8UQPGjyIUnSz9RTXyAlDmteDv f4HypLjFKpWMJ7Yuaf+XtY/TwPutKuyVmMVv5yX/kPKaPicidC7SKdmjqufN2xoG zfJ0JP47q0El/jpcGD7qEbGwZuplMSJFkx3yZlaG3TFBAC/4AH1O84U491/yqxpl 532GYZM9Jg+HIBNqFHfHLF1ysGll4N6HsOSED4uUaYh0Tmw7bQD1Rb88oGNRjwrZ 3QWucw669zqzpUy2V4kTJnfgnneca02q6MZIpjKUZEHUmMBBoBprU0Dd/WseSN99 PG01J3hDjefVOF6oli6vvS3srEA== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3x4782rbgj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 27 Mar 2024 02:04:31 +0000 (GMT) Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 42R24Uei012490 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 27 Mar 2024 02:04:30 GMT Received: from [169.254.0.1] (10.49.16.6) 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.1118.40; Tue, 26 Mar 2024 19:04:30 -0700 From: Bjorn Andersson Date: Tue, 26 Mar 2024 19:04:20 -0700 Subject: [PATCH v2 3/6] arm64: dts: qcom: qcs6490-rb3gen2: Enable adsp and cdsp MIME-Version: 1.0 Message-ID: <20240326-rb3gen2-dp-connector-v2-3-a9f1bc32ecaf@quicinc.com> References: <20240326-rb3gen2-dp-connector-v2-0-a9f1bc32ecaf@quicinc.com> In-Reply-To: <20240326-rb3gen2-dp-connector-v2-0-a9f1bc32ecaf@quicinc.com> To: , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Catalin Marinas , Will Deacon , Dmitry Baryshkov CC: , , , , "Bjorn Andersson" X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1711505069; l=833; i=quic_bjorande@quicinc.com; s=20230915; h=from:subject:message-id; bh=UcA5fpODFuXRXze3of7NZl/yRckbmHg59bEwRvNw+5k=; b=gX+LBpPP/9ppX+IG84hsrHiqE42tdpxe2uPNtf0IRyKdsal8ixQq+5nzi9FBKHBtMCjOxSG09 MjTZgg/WtPrDI6NPlnObn0m6B1gXtBSwB2OiSclUZG7/n4iBKNvpW1h X-Developer-Key: i=quic_bjorande@quicinc.com; a=ed25519; pk=VkhObtljigy9k0ZUIE1Mvr0Y+E1dgBEH9WoLQnUtbIM= X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01c.na.qualcomm.com (10.47.97.35) 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: DnCoExS9qmUtWfwKFsN-_5f5k95X4cGh X-Proofpoint-ORIG-GUID: DnCoExS9qmUtWfwKFsN-_5f5k95X4cGh X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-03-26_12,2024-03-21_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 lowpriorityscore=0 impostorscore=0 clxscore=1015 bulkscore=0 spamscore=0 malwarescore=0 mlxlogscore=805 adultscore=0 suspectscore=0 mlxscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2403210001 definitions=main-2403270012 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240326_190442_483496_1F2184E3 X-CRM114-Status: GOOD ( 11.68 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Define firmware paths and enable the ADSP and CDSP remoteprocs. Signed-off-by: Bjorn Andersson Reviewed-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts b/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts index f90bf3518e98..5b267a94a282 100644 --- a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts +++ b/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts @@ -508,6 +508,16 @@ &qupv3_id_0 { status = "okay"; }; +&remoteproc_adsp { + firmware-name = "qcom/qcs6490/adsp.mbn"; + status = "okay"; +}; + +&remoteproc_cdsp { + firmware-name = "qcom/qcs6490/cdsp.mbn"; + status = "okay"; +}; + &tlmm { gpio-reserved-ranges = <32 2>, /* ADSP */ <48 4>; /* NFC */ From patchwork Wed Mar 27 02:04:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 13605475 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 1A3F8CD11DD for ; Wed, 27 Mar 2024 02:05:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:CC:To:In-Reply-To:References:Message-ID :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=rFyQ0lgXLuU1Kz67YgZvXKTvXik8OKrxpLP9cMwFbSU=; b=S+V9x29CmlMfOH IBuhEi3pfJtgjK/N2WlPBnKu0GCIoiWKPpK6rUTmhZaUL1PrlLym2eHPMBXXUqF4gIp7s2BaZf/DM fxQPy6JYsHrHwdeeT7RLphI2se/06MaxlO0hzWOGy7tcINWNWbFame8ZtwWVsiT6UsI3E+h2QyFk1 gDx7+FJeiEtyRP0u1y7CMniya8d+uUWgss582JpnifEzkExf5WMGWR8Y23RPT76xETlQ7sIUFZn/3 SvoLzkKhBwP9+yxA76b8B6o9gTgm8/Ln2lOxZWjXpMAaotBTaVShqwvx5kmk5JNeD/TNob/9PlrFT qQHR56c+nsgKIpxcuqpQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rpIeq-000000079tE-3wDp; Wed, 27 Mar 2024 02:04:54 +0000 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rpIeg-000000079od-1SBG for linux-arm-kernel@lists.infradead.org; Wed, 27 Mar 2024 02:04:45 +0000 Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 42R1o4aW032726; Wed, 27 Mar 2024 02:04:31 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:date:subject:mime-version:content-type :content-transfer-encoding:message-id:references:in-reply-to:to :cc; s=qcppdkim1; bh=AYiI7olk1kWz4JEe8So4zIwLR4wK6tGFf5eCXaa6pYI =; b=A1zdoEob3UejTrceCUBX/tyJlKO5TyKdZM10CNNjPk+uJdSX4D5+ji3Q7Ay SHyejo3Jf6FL3zxmieJzVVwTwfIojKQFsL/vZZrRcWMriV8Hml5THMLbVHat7geK aNt28wQy9u6bGtKQWhDu4vF8+JDX0FtI8uzKyY4d9+HoL0uyUWuduWShcNyORXnZ 7R3OP5DWCDty12fGHrfwvfJV50J0i8pSe8IhcBWWxBzPx6MWQk8e/Yxgl0U961dN 0s2GI++O9BEGl6W7MksfMzTzXJvzKoHulXfQDoVDEoNSP8pvsn3XTy0XgOulBRMF L/KsLHN1vfPCIC5CreR2iND1iNg== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3x4780gbw2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 27 Mar 2024 02:04:31 +0000 (GMT) Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 42R24UHa030762 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 27 Mar 2024 02:04:30 GMT Received: from [169.254.0.1] (10.49.16.6) 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.1118.40; Tue, 26 Mar 2024 19:04:30 -0700 From: Bjorn Andersson Date: Tue, 26 Mar 2024 19:04:21 -0700 Subject: [PATCH v2 4/6] arm64: dts: qcom: qcs6490-rb3gen2: Introduce USB redriver MIME-Version: 1.0 Message-ID: <20240326-rb3gen2-dp-connector-v2-4-a9f1bc32ecaf@quicinc.com> References: <20240326-rb3gen2-dp-connector-v2-0-a9f1bc32ecaf@quicinc.com> In-Reply-To: <20240326-rb3gen2-dp-connector-v2-0-a9f1bc32ecaf@quicinc.com> To: , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Catalin Marinas , Will Deacon , Dmitry Baryshkov CC: , , , , "Bjorn Andersson" X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1711505069; l=958; i=quic_bjorande@quicinc.com; s=20230915; h=from:subject:message-id; bh=2q3XmdhCrp5V0Qh058jRSaSu37Y4N5p7jL1h2CErt+Q=; b=IMY0mnWRcbRU/mm9djEMzMkf672fYfNSC5lkOG2ZaPrEzcxB7w/fBuHRUYsykJ2zRWWQsVYav Cmk6s0p+l2SD63OVh3y0NsuGCVA2ijKTOWSg0KvLIRr8IPVn3UrFkcV X-Developer-Key: i=quic_bjorande@quicinc.com; a=ed25519; pk=VkhObtljigy9k0ZUIE1Mvr0Y+E1dgBEH9WoLQnUtbIM= X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01c.na.qualcomm.com (10.47.97.35) 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: iw_8KntqAIAt5MrWcYno1sgPcL_Qr3Rh X-Proofpoint-ORIG-GUID: iw_8KntqAIAt5MrWcYno1sgPcL_Qr3Rh X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-03-26_12,2024-03-21_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 lowpriorityscore=0 clxscore=1015 malwarescore=0 bulkscore=0 priorityscore=1501 mlxlogscore=998 adultscore=0 phishscore=0 mlxscore=0 impostorscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2403210001 definitions=main-2403270012 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240326_190442_495589_9F7C3C44 X-CRM114-Status: GOOD ( 11.57 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The RB3gen2 has a USB redriver on APPS_I2C, enable the bus and introduce the redriver. The plumbing with other components is kept separate for clarity. Reviewed-by: Dmitry Baryshkov Signed-off-by: Bjorn Andersson Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts b/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts index 5b267a94a282..2f94b1b865e7 100644 --- a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts +++ b/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts @@ -485,6 +485,20 @@ &gcc { ; }; +&i2c1 { + status = "okay"; + + typec-mux@1c { + compatible = "onnn,nb7vpq904m"; + reg = <0x1c>; + + vcc-supply = <&vreg_l18b_1p8>; + + retimer-switch; + orientation-switch; + }; +}; + &mdss { status = "okay"; }; From patchwork Wed Mar 27 02:04:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 13605477 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 985B0CD11DF for ; Wed, 27 Mar 2024 02:05:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:CC:To:In-Reply-To:References:Message-ID :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=PQhAcKgA7ACpH210nYZQBqOQPdbMog6EAWo/GbX5pXc=; b=Kv8RRtHDam3xVz CnZjPq6XtyQ7pAVd7tgxOQG12LhLkUYWZ68JGc8KSd47FO3Vfxgcg9mwfSLRsLWpkIXEwpYgOF5T3 lfET3UPnDKY2wtuNs7q+e2Qb4V+d9PcXcXafAqjh/inkGgCqRLLbAOeTFxpuSmeslM2qh0cCGTXK+ bGeV3SSoYt35N9iaD4142mxYdkcXBWZXss5KEscJvJGzY/W7rwjMEvAnfNsblBxWR1YCxrwUBH+gc S3klni5F06o1emKOtmpqEqke5HSX9PlV79uaeXcagfjOXrir18FlCfOxgCluuSUoS6HaoGCcQFPbb 69mI1HtzvdEUEKhdcagA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rpIex-000000079wn-2kKl; Wed, 27 Mar 2024 02:04:59 +0000 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rpIeg-000000079oX-1SGs for linux-arm-kernel@lists.infradead.org; Wed, 27 Mar 2024 02:04:46 +0000 Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 42R0vMFv007068; Wed, 27 Mar 2024 02:04:32 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:date:subject:mime-version:content-type :content-transfer-encoding:message-id:references:in-reply-to:to :cc; s=qcppdkim1; bh=Vn6DHxH5I3mpqtRE76okvSiRFpsnCvtZEsnXkw5zqSA =; b=AUd2myosQm1C1UbeDb9erYyySFiRqyxEV+5s4yNylbxDHe8hDL6ws6HqGPm 3KaxTBODFrGXR4kGhqVZjRT2xgEmO4p3MLYiUI+eRvH9itS5w2hduchudVAscWjg yrU7hqqziaPyLa97iI2+opyuHL8u/WqeD2bm2r0XEu9AzXy1SiJ4HhKXvUktdvZt 13mfLvOeIytjG5qcADzdSOkTwOgoUu0NSBMfTHfJH1LqnwJ9JWmkHt3MpkplMZS7 1Yh5xCMtuY4VjkLt4XbOjIpbh5gXfJSz9UpjZDDKTyy3T/ad3xmPGmBbO4ga2sde vNwhdsEDSgCkOWJlNWD34CrS1+A== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3x477yrc4r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 27 Mar 2024 02:04:32 +0000 (GMT) Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 42R24Vbx026034 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 27 Mar 2024 02:04:31 GMT Received: from [169.254.0.1] (10.49.16.6) 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.1118.40; Tue, 26 Mar 2024 19:04:30 -0700 From: Bjorn Andersson Date: Tue, 26 Mar 2024 19:04:22 -0700 Subject: [PATCH v2 5/6] arm64: dts: qcom: qcs6490-rb3gen2: Enable USB Type-C display MIME-Version: 1.0 Message-ID: <20240326-rb3gen2-dp-connector-v2-5-a9f1bc32ecaf@quicinc.com> References: <20240326-rb3gen2-dp-connector-v2-0-a9f1bc32ecaf@quicinc.com> In-Reply-To: <20240326-rb3gen2-dp-connector-v2-0-a9f1bc32ecaf@quicinc.com> To: , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Catalin Marinas , Will Deacon , Dmitry Baryshkov CC: , , , , "Neil Armstrong" , Krishna Kurapati PSSNV , Bjorn Andersson X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1711505069; l=3323; i=quic_bjorande@quicinc.com; s=20230915; h=from:subject:message-id; bh=dAecBa0rlCk54e2xFyJlDhnoPk4dL5t352mXh8HQVrc=; b=668dROWww8ZilxwWqBtSjHpBFERaaRP6Jaj9Qy1b3Os8a+wTIxiAOHOJzhdmUWGjkEmi3ALlc /WIIkJ3biBKA5t1L/rNz9ss0vte1M3OWOnJQYYLA7kaWm3Ov8Zi3pCL X-Developer-Key: i=quic_bjorande@quicinc.com; a=ed25519; pk=VkhObtljigy9k0ZUIE1Mvr0Y+E1dgBEH9WoLQnUtbIM= X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01c.na.qualcomm.com (10.47.97.35) 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: 4h6P0ktqqm2_PDJ3X7H-LniMzDkmt4ke X-Proofpoint-ORIG-GUID: 4h6P0ktqqm2_PDJ3X7H-LniMzDkmt4ke X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-03-26_12,2024-03-21_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 priorityscore=1501 phishscore=0 adultscore=0 mlxscore=0 spamscore=0 lowpriorityscore=0 malwarescore=0 suspectscore=0 impostorscore=0 mlxlogscore=999 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2403210001 definitions=main-2403270012 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240326_190442_620272_700919EC X-CRM114-Status: GOOD ( 12.93 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org With the ADSP remoteproc loaded pmic_glink can be introduced and together with the redriver wired up to provide role and orientation switching signals as well as USB Type-C display on the RB3gen2. Reviewed-by: Neil Armstrong Tested-By: Krishna Kurapati PSSNV Signed-off-by: Bjorn Andersson Reviewed-by: Konrad Dybcio Reviewed-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts | 107 ++++++++++++++++++++++++++- 1 file changed, 106 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts b/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts index 2f94b1b865e7..3cc19ccff90c 100644 --- a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts +++ b/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts @@ -135,6 +135,49 @@ debug_vm_mem: debug-vm@d0600000 { }; }; + pmic-glink { + compatible = "qcom,qcm6490-pmic-glink", "qcom,pmic-glink"; + + #address-cells = <1>; + #size-cells = <0>; + + connector@0 { + compatible = "usb-c-connector"; + reg = <0>; + power-role = "dual"; + data-role = "dual"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + pmic_glink_hs_in: endpoint { + remote-endpoint = <&usb_1_dwc3_hs>; + }; + }; + + port@1 { + reg = <1>; + + pmic_glink_ss_in: endpoint { + remote-endpoint = <&redriver_usb_con_ss>; + }; + }; + + port@2 { + reg = <2>; + + pmic_glink_sbu_in: endpoint { + remote-endpoint = <&redriver_usb_con_sbu>; + }; + }; + }; + }; + }; + vph_pwr: vph-pwr-regulator { compatible = "regulator-fixed"; regulator-name = "vph_pwr"; @@ -496,6 +539,36 @@ typec-mux@1c { retimer-switch; orientation-switch; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + redriver_usb_con_ss: endpoint { + remote-endpoint = <&pmic_glink_ss_in>; + }; + }; + + port@1 { + reg = <1>; + + redriver_phy_con_ss: endpoint { + remote-endpoint = <&usb_dp_qmpphy_out>; + data-lanes = <0 1 2 3>; + }; + }; + + port@2 { + reg = <2>; + + redriver_usb_con_sbu: endpoint { + remote-endpoint = <&pmic_glink_sbu_in>; + }; + }; + }; }; }; @@ -503,6 +576,15 @@ &mdss { status = "okay"; }; +&mdss_dp { + status = "okay"; +}; + +&mdss_dp_out { + data-lanes = <0 1>; + remote-endpoint = <&usb_dp_qmpphy_dp_in>; +}; + &mdss_edp { status = "okay"; }; @@ -547,7 +629,16 @@ &usb_1 { }; &usb_1_dwc3 { - dr_mode = "peripheral"; + dr_mode = "otg"; + usb-role-switch; +}; + +&usb_1_dwc3_hs { + remote-endpoint = <&pmic_glink_hs_in>; +}; + +&usb_1_dwc3_ss { + remote-endpoint = <&usb_dp_qmpphy_usb_ss_in>; }; &usb_1_hsphy { @@ -562,9 +653,23 @@ &usb_1_qmpphy { vdda-phy-supply = <&vreg_l6b_1p2>; vdda-pll-supply = <&vreg_l1b_0p912>; + orientation-switch; + status = "okay"; }; +&usb_dp_qmpphy_out { + remote-endpoint = <&redriver_phy_con_ss>; +}; + +&usb_dp_qmpphy_usb_ss_in { + remote-endpoint = <&usb_1_dwc3_ss>; +}; + +&usb_dp_qmpphy_dp_in { + remote-endpoint = <&mdss_dp_out>; +}; + &wifi { memory-region = <&wlan_fw_mem>; }; From patchwork Wed Mar 27 02:04:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 13605476 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 C1EDEC54E67 for ; Wed, 27 Mar 2024 02:05:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:CC:To:In-Reply-To:References:Message-ID :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=MV12vkAG48rjqIBwbj6K41nT9oo8fLogyADski5kfvc=; b=25m+WqBRVTDTvJ eBgtvZeGvdS5l3kWOXOSyWhV6ud/tAuSyfzpz2O5NjkXsOx1i3fjc27y2cjrpJxATSAvFYjhHT5hO Yq6JIXNLemXe0y8AO4YCwtUL1LiamMda8b5kImdbn31r265jZ+WNJPqWal2wI4xqYUQ/t0zSEXZmA DwpwbqbjLZLiLUlThazAc/JX9uQMpdJTnRZz013DOfUk6P1j8P/MHoLFihmZMpq+GvVhaNq/VHvm4 lgZFhmcAZnQ93flTaJKa3h3d5iFqCR+u9FvAvhJ+oy2mw7bBO//YqpZhxJwlFKw0I+h/cgWdbdmyb Waxr/ZTSQqj7a6aWOvgA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rpIev-000000079uh-0eYZ; Wed, 27 Mar 2024 02:04:57 +0000 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rpIeg-000000079oY-1Rqu for linux-arm-kernel@lists.infradead.org; Wed, 27 Mar 2024 02:04:46 +0000 Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 42R0Yx1o022470; Wed, 27 Mar 2024 02:04:32 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:date:subject:mime-version:content-type :content-transfer-encoding:message-id:references:in-reply-to:to :cc; s=qcppdkim1; bh=NXtVgefK4raQ7faPqjNggnc9tYgAinpwX/+19HWeAgw =; b=d+CFBINCH8idOKWeWMinfcjd5FvlzQfqP+GdTZTClZZJTKzNhBca1lEaoNp 5CPztrnefQavU5J0ud2+jdAfNErVAMipDdHzNE3sTohvSQ1lSJWiKGCMxhtDcERE naY2o7dhi6GBy74B+wcJWdpoR7QHLXq7yQiuF670stdEgQYvDjyUFfWMTE9Fq2Oa LMlQjzwkI1UeNzmAh8Yjev6uKwQjpctmpOFzXKruXIsMyxedqaLC7Rt2E17ZiBIe 6XcxQdAQ8S8dmS6deOstprhx8MWCk/YdobcGlAjloCx3BMq5lkQ7mDgPFeXRnxix vybF+KgNzOaQYJSJtwBu2+HqVHw== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3x477yrc4s-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 27 Mar 2024 02:04:32 +0000 (GMT) Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 42R24VMA027983 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 27 Mar 2024 02:04:31 GMT Received: from [169.254.0.1] (10.49.16.6) 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.1118.40; Tue, 26 Mar 2024 19:04:31 -0700 From: Bjorn Andersson Date: Tue, 26 Mar 2024 19:04:23 -0700 Subject: [PATCH v2 6/6] arm64: defconfig: Enable sc7280 display and gpu clock controllers MIME-Version: 1.0 Message-ID: <20240326-rb3gen2-dp-connector-v2-6-a9f1bc32ecaf@quicinc.com> References: <20240326-rb3gen2-dp-connector-v2-0-a9f1bc32ecaf@quicinc.com> In-Reply-To: <20240326-rb3gen2-dp-connector-v2-0-a9f1bc32ecaf@quicinc.com> To: , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Catalin Marinas , Will Deacon , Dmitry Baryshkov CC: , , , , "Bjorn Andersson" X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1711505069; l=956; i=quic_bjorande@quicinc.com; s=20230915; h=from:subject:message-id; bh=kYZZCT+tVZo+wzi0+UGkVOFjutWFIRGaQL+n6olgMg0=; b=zkorffrQN9mVJC8RuXXwtfcolWMKRUwtUWWDvACQ24nysSOgx3ebbpq/n6xIw91LeWeCC/FRO T1T3C7weM+/CTWJP6fSlcry1ZRiQqoRWR6qDCfaBdJZU13DyJqyPKQk X-Developer-Key: i=quic_bjorande@quicinc.com; a=ed25519; pk=VkhObtljigy9k0ZUIE1Mvr0Y+E1dgBEH9WoLQnUtbIM= X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01c.na.qualcomm.com (10.47.97.35) 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: gkvihbcHLx--v0QnJq73ln0SJ_QwFeYC X-Proofpoint-ORIG-GUID: gkvihbcHLx--v0QnJq73ln0SJ_QwFeYC X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-03-26_12,2024-03-21_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 priorityscore=1501 phishscore=0 adultscore=0 mlxscore=0 spamscore=0 lowpriorityscore=0 malwarescore=0 suspectscore=0 impostorscore=0 mlxlogscore=919 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2403210001 definitions=main-2403270012 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240326_190442_642373_A03C6168 X-CRM114-Status: GOOD ( 10.48 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Enable the SC7280 display and gpu clock controllers to enable display support on the QCS6490 RB3gen2. Reviewed-by: Dmitry Baryshkov Signed-off-by: Bjorn Andersson --- arch/arm64/configs/defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 6c45a465a071..a25a28e6117b 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -1287,6 +1287,7 @@ CONFIG_QCM_DISPCC_2290=m CONFIG_QCS_GCC_404=y CONFIG_QDU_GCC_1000=y CONFIG_SC_CAMCC_8280XP=m +CONFIG_SC_DISPCC_7280=m CONFIG_SC_DISPCC_8280XP=m CONFIG_SA_GCC_8775P=y CONFIG_SA_GPUCC_8775P=m @@ -1294,6 +1295,7 @@ CONFIG_SC_GCC_7180=y CONFIG_SC_GCC_7280=y CONFIG_SC_GCC_8180X=y CONFIG_SC_GCC_8280XP=y +CONFIG_SC_GPUCC_7280=m CONFIG_SC_GPUCC_8280XP=m CONFIG_SC_LPASSCC_8280XP=m CONFIG_SDM_CAMCC_845=m