From patchwork Wed Oct 26 03:26:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 11047 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp32656wru; Tue, 25 Oct 2022 20:28:46 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6JmCXW7k1aTT94veZ/8XIs8ME0UhhVUElFCN6L8+ilLSMNiDY9ozqCVaBvGta0AheBfTtw X-Received: by 2002:a17:90b:3847:b0:20d:c41f:de7a with SMTP id nl7-20020a17090b384700b0020dc41fde7amr1840154pjb.85.1666754926673; Tue, 25 Oct 2022 20:28:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666754926; cv=none; d=google.com; s=arc-20160816; b=GmENqT27Yd/9rBMjaLOX5xa9NIfJGN1JuhmdBAcbcH8OJekOsw2zNxdJPUyavi24ik STNGiCzPWy/LOKnI2rneh+ftBSQc0SnJaQhxPHJZv0ZITYB7fZXxYG4zoAlq6fSWbj5D Zi8+ZMYbKIyRSeTRnioaMn2b11qFb+xIodM5kUKlJK3/PLAhMUJOEDJI+fwMTAwBMpAi dF8ue14dN3s/ZNAEP7NRbssnkdm0LjgqZLoBd77Gay0NwZRoF25rHqKWwYZy2lWYdFYL FRWWqigU8gpnqkbkfLi9Jq3Ij1aKriHuXNmimuypakImv4tNUXUrkWYxHsc0ptAPWxZb bMXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=/upZmrhPFG3tKcoak6uc6uUJiMAQygJrnko3uvOQ1rA=; b=MncV17l63bs7ILZcy0+ZFTFlyanr/56Cbo42gLNxitYdyjrj7URC2NB9u3Qu9d1Sr8 P1ZCK3L4YK07OtKpX8VJpOZgksFzjEfL7urPooOpvqgd6vSwubZ66QgqDpu2ldOfjCCE SCnuMMoOMkYnDmHTL9i91kmpLdVw8IfmiUMH1BwFGKNw0EuOwhqiNkLbQEeiefio+ggT NnnWYwiJn2qs+02jDdsuf0qTO5j39w9uGx3E6T16RP52dR4x//U2QkaTWRrz6t7j6mK1 XhpBrxviNuB4j68D35WJgFny0Kd9oZsNJstZlHgvsGmn3XvLVzjyWP/ateKIlu/M3NQM IFJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=kKSZ591L; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d18-20020a056a00199200b0056bc627dbeesi5689651pfl.124.2022.10.25.20.28.34; Tue, 25 Oct 2022 20:28:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=kKSZ591L; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233094AbiJZD17 (ORCPT + 99 others); Tue, 25 Oct 2022 23:27:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232906AbiJZD0p (ORCPT ); Tue, 25 Oct 2022 23:26:45 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2368C6BD60; Tue, 25 Oct 2022 20:26:45 -0700 (PDT) Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 29Q3FL4s028550; Wed, 26 Oct 2022 03:26:39 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=qcppdkim1; bh=/upZmrhPFG3tKcoak6uc6uUJiMAQygJrnko3uvOQ1rA=; b=kKSZ591L7LFICstRTSeVB6O9l4Sph71VUjJhZoJ9ynC+C906o/Oi+S3FuHg36qhz5His cOoHS6LeyncYXwXjUGPO+JmmRoEA9/B8lABjXMlwrKS/rS4knUMM+CLv9tbT5S/H/um1 WWGUgHYQq9BczJhIxSnd85V8llpvGn58R+osRJDptCXKHCfYmbwJmVJX0ZT+Dc+CzXlP F6i1MvcFy75JEfiyHie4+wWxaVWnIgqQFSXCWYAL1AIDug+Zhdjjskwp1WNXzYA1qVVW 9G0mmky0eSKiAOS9XXYes6kglXfgHVXdd2fG9bqKYHeKyWZ4dSIoVw+VUcZF0XDrom29 4w== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3keapma7uf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 26 Oct 2022 03:26:38 +0000 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 29Q3Qbg3011481 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 26 Oct 2022 03:26:37 GMT Received: from th-lint-050.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.986.29; Tue, 25 Oct 2022 20:26:37 -0700 From: Bjorn Andersson To: Rob Clark , Abhinav Kumar , Dmitry Baryshkov CC: Sean Paul , David Airlie , "Daniel Vetter" , Rob Herring , "Krzysztof Kozlowski" , Bjorn Andersson , Konrad Dybcio , "Kuogee Hsieh" , Sankeerth Billakanti , Johan Hovold , , , , , Subject: [PATCH v3 11/12] arm64: dts: qcom: sc8280xp-crd: Enable EDP Date: Tue, 25 Oct 2022 20:26:23 -0700 Message-ID: <20221026032624.30871-12-quic_bjorande@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221026032624.30871-1-quic_bjorande@quicinc.com> References: <20221026032624.30871-1-quic_bjorande@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) 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: 96Ra2E6qTN62ucxetq1kcnB08aGwMriN X-Proofpoint-ORIG-GUID: 96Ra2E6qTN62ucxetq1kcnB08aGwMriN X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-10-25_15,2022-10-25_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 clxscore=1015 malwarescore=0 mlxlogscore=880 spamscore=0 bulkscore=0 adultscore=0 impostorscore=0 lowpriorityscore=0 priorityscore=1501 mlxscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2210260016 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747719213931607794?= X-GMAIL-MSGID: =?utf-8?q?1747719213931607794?= From: Bjorn Andersson The SC8280XP CRD has a EDP display on MDSS0 DP3, enable relevant nodes and link it together with the backlight control. Signed-off-by: Bjorn Andersson Signed-off-by: Bjorn Andersson --- Changes since v2: - New patch on list arch/arm64/boot/dts/qcom/sc8280xp-crd.dts | 49 ++++++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts b/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts index 07e80dfe575d..bc906bcb26a4 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts +++ b/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts @@ -20,7 +20,7 @@ aliases { serial0 = &qup2_uart17; }; - backlight { + backlight: backlight { compatible = "pwm-backlight"; pwms = <&pmc8280c_lpg 3 1000000>; enable-gpios = <&pmc8280_1_gpios 8 GPIO_ACTIVE_HIGH>; @@ -184,6 +184,53 @@ vreg_l9d: ldo9 { }; }; +&dispcc0 { + status = "okay"; +}; + +&mdss0 { + status = "okay"; +}; + +&mdss0_dp3 { + compatible = "qcom,sc8280xp-edp"; + status = "okay"; + + data-lanes = <0 1 2 3>; + + aux-bus { + panel { + compatible = "edp-panel"; + + backlight = <&backlight>; + + ports { + port { + edp_panel_in: endpoint { + remote-endpoint = <&mdss0_dp3_out>; + }; + }; + }; + }; + }; + + ports { + port@1 { + reg = <1>; + mdss0_dp3_out: endpoint { + remote-endpoint = <&edp_panel_in>; + }; + }; + }; +}; + +&mdss0_dp3_phy { + status = "okay"; + + vdda-phy-supply = <&vreg_l6b>; + vdda-pll-supply = <&vreg_l3b>; +}; + &pmc8280c_lpg { status = "okay"; };