Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4119643pxb; Tue, 2 Nov 2021 04:34:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEsT26dDuliWiVZ1ZmYSpV0OdDPmZjE/nX4IsFpIFr2qurGrsZNdLf0gDzkWFm55/C3QDb X-Received: by 2002:a17:906:17c5:: with SMTP id u5mr44559054eje.431.1635852876763; Tue, 02 Nov 2021 04:34:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635852876; cv=none; d=google.com; s=arc-20160816; b=aabdGATanwQZ+TOFGnslVCEz5coX9qhk1iUfgZZyxoyGuXIk4m84J0nyyoc9ghIlpL 59nyR07OgJqKtTVwMP1CiHlkVDtQ28eni1p/nSUoD9BLdMZ5OSkTJ2VS6G/FNpFB00Mx 9xS1CJrGMUxhv6WvBO0Pej8s+/cyVl403EWXntvgB8SEKicf3vT0JGjMTcDtLOZA/g/t +Ls9gCJY5xGGH3HGP1/k09DvnagBLOFxm2XGIKTPurmfX7b10o0c3xgYmsa3JVJ0hz3Q L4wi2qTzZUKU/HNHdGCYTahBaaBtq+iMCiRbyDcpnOMUmcAmqUE05PmsnDKbyNC58+f8 0wyQ== 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=kn6KtaBXVIY+7YfuzLPWQlu+f2XwY9qPSna2hpG0MRE=; b=NI6uCyF9Jc4HY1dL05c7ksRQeALEEFMgxYIt6Wwz6N7tygRggDfosDJX6qiZGEO844 Y+Igx0+lwGPonTyRSwGQ7sdfcy+Kpku0zGvreiz5ijGBMiPKMYieSHiSss1HwyQi2XaR CCWB4/Vn9xhm+0OJvbmYXIqfQMSqK+WXYzNmngfXNPEGptQfxEvUqx9+zlJnZX+BBgtp unI2wdV4jl/3L1E4GnHykeuYd92/EPXyKSEIWJpAdlb994WOml+/51s0/xDnJP0xlBUn Kjot/bHvUYvQeimlLfjNeQbjo8057wZGayHn+wtmiLoYTUrmHLncyz7GNcYZL1OmouTE beCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=lUQDXMUh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t4si4074084edj.431.2021.11.02.04.34.11; Tue, 02 Nov 2021 04:34:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=lUQDXMUh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S230504AbhKBLem (ORCPT + 99 others); Tue, 2 Nov 2021 07:34:42 -0400 Received: from alexa-out-sd-02.qualcomm.com ([199.106.114.39]:12998 "EHLO alexa-out-sd-02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230096AbhKBLel (ORCPT ); Tue, 2 Nov 2021 07:34:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1635852727; x=1667388727; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=kn6KtaBXVIY+7YfuzLPWQlu+f2XwY9qPSna2hpG0MRE=; b=lUQDXMUh/LhiDe/wW482+LRz1RVMNb3nHj6HCWoaOXknoeeVe9fiDdew lS2nTh8239cZHsM/3+x2P0HQEJ954QvudVWdaB/bNjaPiyl92CSaKYazt ZnX5gmt4LOxUJNpNG7BmK1S8D1qqLHLZplgSejyNcjK/Pte86X1m48K7G 4=; Received: from unknown (HELO ironmsg03-sd.qualcomm.com) ([10.53.140.143]) by alexa-out-sd-02.qualcomm.com with ESMTP; 02 Nov 2021 04:32:07 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg03-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Nov 2021 04:32:06 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.922.7; Tue, 2 Nov 2021 04:32:06 -0700 Received: from sbillaka-linux.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.922.7; Tue, 2 Nov 2021 04:32:01 -0700 From: Sankeerth Billakanti To: , , , CC: Krishna Manikandan , , , , , , , , , Rajeev Nandan Subject: [PATCH v3 2/3] arm64: dts: qcom: sc7280: Add DSI display nodes Date: Tue, 2 Nov 2021 17:01:41 +0530 Message-ID: <1635852702-25822-2-git-send-email-quic_sbillaka@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1635852702-25822-1-git-send-email-quic_sbillaka@quicinc.com> References: <1635852702-25822-1-git-send-email-quic_sbillaka@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Krishna Manikandan Add DSI controller and PHY nodes for sc7280. Signed-off-by: Rajeev Nandan Signed-off-by: Krishna Manikandan Reviewed-by: Matthias Kaehlcke Reviewed-by: Stephen Boyd Signed-off-by: Sankeerth Billakanti --- Changes in v3: - Add the dsi_phy clocks (Kuogee Hsieh) - One clock cell per line (Stephen Boyd) Changes in v2: - Drop flags from interrupts (Stephen Boyd) - Rename dsi-opp-table (Stephen Boyd) - Rename dsi phy node (Stephen Boyd) arch/arm64/boot/dts/qcom/sc7280.dtsi | 111 ++++++++++++++++++++++++++++++++++- 1 file changed, 109 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qcom/sc7280.dtsi index a4536b6..12c4d32 100644 --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi @@ -2691,8 +2691,14 @@ reg = <0 0xaf00000 0 0x20000>; clocks = <&rpmhcc RPMH_CXO_CLK>, <&gcc GCC_DISP_GPLL0_CLK_SRC>, - <0>, <0>, <0>, <0>, <0>, <0>; - clock-names = "bi_tcxo", "gcc_disp_gpll0_clk", + <&dsi_phy 0>, + <&dsi_phy 1>, + <0>, + <0>, + <0>, + <0>; + clock-names = "bi_tcxo", + "gcc_disp_gpll0_clk", "dsi0_phy_pll_out_byteclk", "dsi0_phy_pll_out_dsiclk", "dp_phy_pll_link_clk", @@ -2768,6 +2774,18 @@ status = "disabled"; + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + dpu_intf1_out: endpoint { + remote-endpoint = <&dsi0_in>; + }; + }; + }; + mdp_opp_table: opp-table { compatible = "operating-points-v2"; @@ -2792,6 +2810,95 @@ }; }; }; + + dsi0: dsi@ae94000 { + compatible = "qcom,mdss-dsi-ctrl"; + reg = <0 0x0ae94000 0 0x400>; + reg-names = "dsi_ctrl"; + + interrupt-parent = <&mdss>; + interrupts = <4>; + + clocks = <&dispcc DISP_CC_MDSS_BYTE0_CLK>, + <&dispcc DISP_CC_MDSS_BYTE0_INTF_CLK>, + <&dispcc DISP_CC_MDSS_PCLK0_CLK>, + <&dispcc DISP_CC_MDSS_ESC0_CLK>, + <&dispcc DISP_CC_MDSS_AHB_CLK>, + <&gcc GCC_DISP_HF_AXI_CLK>; + clock-names = "byte", + "byte_intf", + "pixel", + "core", + "iface", + "bus"; + + operating-points-v2 = <&dsi_opp_table>; + power-domains = <&rpmhpd SC7280_CX>; + + phys = <&dsi_phy>; + phy-names = "dsi"; + + #address-cells = <1>; + #size-cells = <0>; + + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + dsi0_in: endpoint { + remote-endpoint = <&dpu_intf1_out>; + }; + }; + + port@1 { + reg = <1>; + dsi0_out: endpoint { + }; + }; + }; + + dsi_opp_table: opp-table { + compatible = "operating-points-v2"; + + opp-187500000 { + opp-hz = /bits/ 64 <187500000>; + required-opps = <&rpmhpd_opp_low_svs>; + }; + + opp-300000000 { + opp-hz = /bits/ 64 <300000000>; + required-opps = <&rpmhpd_opp_svs>; + }; + + opp-358000000 { + opp-hz = /bits/ 64 <358000000>; + required-opps = <&rpmhpd_opp_svs_l1>; + }; + }; + }; + + dsi_phy: phy@ae94400 { + compatible = "qcom,sc7280-dsi-phy-7nm"; + reg = <0 0x0ae94400 0 0x200>, + <0 0x0ae94600 0 0x280>, + <0 0x0ae94900 0 0x280>; + reg-names = "dsi_phy", + "dsi_phy_lane", + "dsi_pll"; + + #clock-cells = <1>; + #phy-cells = <0>; + + clocks = <&dispcc DISP_CC_MDSS_AHB_CLK>, + <&rpmhcc RPMH_CXO_CLK>; + clock-names = "iface", "ref"; + + status = "disabled"; + }; }; pdc: interrupt-controller@b220000 { -- 2.7.4