From patchwork Mon Dec 11 15:44:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 752582 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="RzP/+6pi" Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32C97DC for ; Mon, 11 Dec 2023 07:44:53 -0800 (PST) Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-50bee606265so4780174e87.2 for ; Mon, 11 Dec 2023 07:44:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702309491; x=1702914291; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=MNYp3d1ic8j7Eae+I7H4QEOmaR7sG5mmr/TaRL+G3z8=; b=RzP/+6piVt8ToHWqTbixGPd9TIzAHYv+spPxoMHxw19KtVI2nco2pyeSzJ5Ozbb6Tz MT4vUFz0EntTncFEE3BeQqhOcCLNoJsTCVNIe6MP8lc+nT2pgRMNH5YEmNyUD+S2fRsu 9yt8ImeiBpsH71EUojVIua4BlKamECZkACz2gJFVBS/IxLLRzPZ/dwk8sSU7s5hMR0nk vxo4bx8XWoCtsN1JGQNJewK7YVFQKWM5U3ox3Ur+0KsBDXyEDmcAImwbLTZCcOwUForq ysQMTXK7Rz5YcMB0Y9qZU4nlpUGF/qxw48kK/GG/PDoGJF+2poAHRdGSUwmwXwKZAUx8 Gk+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702309491; x=1702914291; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=MNYp3d1ic8j7Eae+I7H4QEOmaR7sG5mmr/TaRL+G3z8=; b=nQ5HzQfsmclh8Bt4LO26+SoamX751uwNr7EoEPUXvYX5JhoRn4KyKd8Yy7zsYeGG52 NMf0qM6TuD/mWHWd700Oyu2zKcDlVQ1vOnMNT8wg4ONOtBl4T2bqY2z5hC/WQOCK3Ule tbihSAofl5/9js5Im0qP95BDEEaG8HdAXf9BiA+Hqm5sz4N3vGyqqf4K+c70MmdpViWd 4Pv7ozpoyODsQ828OaLmlWW5tbLFf9clOT2XMXCzfPaDAMkdygxuqa4yeEgCrIGObAzh zJ05encpi1UyZBL9Y/ZpTKcWGei+XyQ0FHkyjAZjhfr2NGKcPjGSreEeE3P++/THCFNr x7mQ== X-Gm-Message-State: AOJu0YxS16zL8+s1A3kKKnMDFXFlQm/8ibme1rfLWc27Ndp9cDmrzQ/A OlBeMysEc406RqZO2XycxK1YAQ== X-Google-Smtp-Source: AGHT+IEPhjRdxX0vWq+O/5MYm7iFvVBoRYb1DWpclK2rqE2+cX1sDsaLSrwyBXh97IRC8C9TGc+J6g== X-Received: by 2002:a05:6512:4025:b0:50d:f85c:49f0 with SMTP id br37-20020a056512402500b0050df85c49f0mr1561785lfb.130.1702309491494; Mon, 11 Dec 2023 07:44:51 -0800 (PST) Received: from umbar.unikie.fi ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id c5-20020ac244a5000000b0050aa6e2ae87sm1109646lfm.2.2023.12.11.07.44.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 07:44:50 -0800 (PST) From: Dmitry Baryshkov To: Rob Clark , Sean Paul , Abhinav Kumar , Marijn Suijten Cc: Stephen Boyd , David Airlie , Daniel Vetter , Bjorn Andersson , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org Subject: [PATCH v2 5/8] arm64: dts: qcom: sm8150: add DisplayPort controller Date: Mon, 11 Dec 2023 18:44:42 +0300 Message-Id: <20231211154445.3666732-6-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231211154445.3666732-1-dmitry.baryshkov@linaro.org> References: <20231211154445.3666732-1-dmitry.baryshkov@linaro.org> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add device tree node for the DisplayPort controller and link it to the display controller interface. Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sm8150.dtsi | 87 ++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi index 153c531c1d41..ea7c92c0e405 100644 --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi @@ -3712,6 +3712,13 @@ dpu_intf2_out: endpoint { remote-endpoint = <&mdss_dsi1_in>; }; }; + + port@2 { + reg = <2>; + dpu_intf0_out: endpoint { + remote-endpoint = <&mdss_dp_in>; + }; + }; }; mdp_opp_table: opp-table { @@ -3739,6 +3746,86 @@ opp-460000000 { }; }; + mdss_dp: displayport-controller@ae90000 { + compatible = "qcom,sm8150-dp", "qcom,sm8350-dp"; + reg = <0 0xae90000 0 0x200>, + <0 0xae90200 0 0x200>, + <0 0xae90400 0 0x600>, + <0 0x0ae90a00 0 0x600>, + <0 0x0ae91000 0 0x600>; + + interrupt-parent = <&mdss>; + interrupts = <12>; + clocks = <&dispcc DISP_CC_MDSS_AHB_CLK>, + <&dispcc DISP_CC_MDSS_DP_AUX_CLK>, + <&dispcc DISP_CC_MDSS_DP_LINK_CLK>, + <&dispcc DISP_CC_MDSS_DP_LINK_INTF_CLK>, + <&dispcc DISP_CC_MDSS_DP_PIXEL_CLK>; + clock-names = "core_iface", + "core_aux", + "ctrl_link", + "ctrl_link_iface", + "stream_pixel"; + + assigned-clocks = <&dispcc DISP_CC_MDSS_DP_LINK_CLK_SRC>, + <&dispcc DISP_CC_MDSS_DP_PIXEL_CLK_SRC>; + assigned-clock-parents = <&usb_1_qmpphy QMP_USB43DP_DP_LINK_CLK>, + <&usb_1_qmpphy QMP_USB43DP_DP_VCO_DIV_CLK>; + + phys = <&usb_1_qmpphy QMP_USB43DP_DP_PHY>; + phy-names = "dp"; + + #sound-dai-cells = <0>; + + operating-points-v2 = <&dp_opp_table>; + power-domains = <&rpmhpd SM8250_MMCX>; + + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + mdss_dp_in: endpoint { + remote-endpoint = <&dpu_intf0_out>; + }; + }; + + port@1 { + reg = <1>; + + mdss_dp_out: endpoint { + }; + }; + }; + + dp_opp_table: opp-table { + compatible = "operating-points-v2"; + + opp-160000000 { + opp-hz = /bits/ 64 <160000000>; + required-opps = <&rpmhpd_opp_low_svs>; + }; + + opp-270000000 { + opp-hz = /bits/ 64 <270000000>; + required-opps = <&rpmhpd_opp_svs>; + }; + + opp-540000000 { + opp-hz = /bits/ 64 <540000000>; + required-opps = <&rpmhpd_opp_svs_l1>; + }; + + opp-810000000 { + opp-hz = /bits/ 64 <810000000>; + required-opps = <&rpmhpd_opp_nom>; + }; + }; + }; + mdss_dsi0: dsi@ae94000 { compatible = "qcom,sm8150-dsi-ctrl", "qcom,mdss-dsi-ctrl"; reg = <0 0x0ae94000 0 0x400>;