Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1498831pxb; Fri, 26 Feb 2021 12:19:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJxDGao41W2jk8tsT1NipBdSY7EFmfPLlBoLwShN1JFqLNpHj4g7iDlRqBhxQSKNs8g6bMRL X-Received: by 2002:a50:f113:: with SMTP id w19mr5271623edl.226.1614370770522; Fri, 26 Feb 2021 12:19:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614370770; cv=none; d=google.com; s=arc-20160816; b=Ky4CKdydfykQ/jp6/mTQ4WNnk8n/CauAmAmoOdpqMuxT4sTun831b8QTnCxH6MzmQa MCJbjJ5yQ6NXe8mZAf2POKEFFnPIMLNfCyMGAFgM8nd1n6HFnXRiupjt37ilGWU5wRWd 5Jtn8KVQ+Apn0XxRPAOHSubhK8ZM8L6l67wbPK6NmsoEdOVhDmZSxUtJlsCqe26v3ge2 B1nJLrOsGymnQoJKoUqoeOCRMUdWeCBt2IA9izNFbN+KGot8/m/h9nhCv/6X3vQqj454 AdMxFc5d51iGj3Kg4JMdZ0rUUHyahW72X19l7HZTki2fisVNLwaTBnh3FjibvoItVjlz V0cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=qasr2oxyR+cMUku8k+4zG3CCFLT3gKq0tJO2bxM+COI=; b=v6KM63oCFZy43ikXRiE7HbKL1hslDScLTBNEnAmP+DsHL11Knr9R8nEPTygDlh3vgS wqWxfcDG4SJcyDmEezxlrIC8wJVNC6U4Lcjt7BDs4i5D+A1eV5OyHLGif+V2kalUoeDn /YUqcVxdj+8KQmrFYYvD8ga5mZKsSmGN6RvOK1tOABYq0x7zMt++lxgZcatBh65EM61C JDJPMOO1B8aLREa1cmsoqvpc+rzbi623eQQ+HO61Vi66gmLMkGBL6114FKBRS/YiryYy dhB8sac5okuacWUUjlmcF733Kiwt7Y8zpTCMrSp7wTyHf3CDbFJQ2pqEzE77+yow/brX 6trA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 26si6905869edw.488.2021.02.26.12.19.07; Fri, 26 Feb 2021 12:19:30 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231254AbhBZUQm (ORCPT + 99 others); Fri, 26 Feb 2021 15:16:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230147AbhBZUK7 (ORCPT ); Fri, 26 Feb 2021 15:10:59 -0500 Received: from m-r1.th.seeweb.it (m-r1.th.seeweb.it [IPv6:2001:4b7a:2000:18::170]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28223C06178A; Fri, 26 Feb 2021 12:06:48 -0800 (PST) Received: from localhost.localdomain (abab236.neoplus.adsl.tpnet.pl [83.6.165.236]) by m-r1.th.seeweb.it (Postfix) with ESMTPA id BC36C1F995; Fri, 26 Feb 2021 21:06:45 +0100 (CET) From: Konrad Dybcio To: phone-devel@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, martin.botka@somainline.org, angelogioacchino.delregno@somainline.org, marijn.suijten@somainline.org, Konrad Dybcio , Andy Gross , Bjorn Andersson , Amit Kucheria , Zhang Rui , Daniel Lezcano , Rob Herring , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 29/41] arm64: dts: qcom: sdm660: Add required nodes for DSI1 Date: Fri, 26 Feb 2021 21:03:59 +0100 Message-Id: <20210226200414.167762-30-konrad.dybcio@somainline.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210226200414.167762-1-konrad.dybcio@somainline.org> References: <20210226200414.167762-1-konrad.dybcio@somainline.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Configure the second DSI host/phy and account for them in the mmcc node. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sdm660.dtsi | 101 +++++++++++++++++++++++++-- 1 file changed, 97 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sdm660.dtsi b/arch/arm64/boot/dts/qcom/sdm660.dtsi index 13467e2c708a..eccf6fde16b4 100644 --- a/arch/arm64/boot/dts/qcom/sdm660.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm660.dtsi @@ -141,12 +141,105 @@ &gpucc { compatible = "qcom,gpucc-sdm660"; }; +&mdp { + ports { + port@1 { + reg = <1>; + mdp5_intf2_out: endpoint { + remote-endpoint = <&dsi1_in>; + }; + }; + }; +}; + +&mdss { + dsi1: dsi@c996000 { + compatible = "qcom,mdss-dsi-ctrl"; + reg = <0x0c996000 0x400>; + reg-names = "dsi_ctrl"; + + /* DSI1 shares the OPP table with DSI0 */ + operating-points-v2 = <&dsi_opp_table>; + power-domains = <&rpmpd SDM660_VDDCX>; + + interrupt-parent = <&mdss>; + interrupts = <5 IRQ_TYPE_LEVEL_HIGH>; + + assigned-clocks = <&mmcc BYTE1_CLK_SRC>, + <&mmcc PCLK1_CLK_SRC>; + assigned-clock-parents = <&dsi1_phy 0>, + <&dsi1_phy 1>; + + clocks = <&mmcc MDSS_MDP_CLK>, + <&mmcc MDSS_BYTE1_CLK>, + <&mmcc MDSS_BYTE1_INTF_CLK>, + <&mmcc MNOC_AHB_CLK>, + <&mmcc MDSS_AHB_CLK>, + <&mmcc MDSS_AXI_CLK>, + <&mmcc MISC_AHB_CLK>, + <&mmcc MDSS_PCLK1_CLK>, + <&mmcc MDSS_ESC1_CLK>; + clock-names = "mdp_core", + "byte", + "byte_intf", + "mnoc", + "iface", + "bus", + "core_mmss", + "pixel", + "core"; + + phys = <&dsi1_phy>; + phy-names = "dsi"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + dsi1_in: endpoint { + remote-endpoint = <&mdp5_intf2_out>; + }; + }; + + port@1 { + reg = <1>; + dsi1_out: endpoint { + }; + }; + }; + }; + + dsi1_phy: dsi-phy@c996400 { + compatible = "qcom,dsi-phy-14nm-660"; + reg = <0x0c996400 0x100>, + <0x0c996500 0x300>, + <0x0c996800 0x188>; + reg-names = "dsi_phy", + "dsi_phy_lane", + "dsi_pll"; + + #clock-cells = <1>; + #phy-cells = <0>; + + clocks = <&mmcc MDSS_AHB_CLK>, <&rpmcc RPM_SMD_XO_CLK_SRC>; + clock-names = "iface", "ref"; + }; +}; + &mmcc { compatible = "qcom,mmcc-sdm660"; - /* - * 660 has one more dsi host/phy, which - when implemented - * and tested - should be added to the clocks property. - */ + clocks = <&rpmcc RPM_SMD_XO_CLK_SRC>, + <&sleep_clk>, + <&gcc GCC_MMSS_GPLL0_CLK>, + <&gcc GCC_MMSS_GPLL0_DIV_CLK>, + <&dsi0_phy 1>, + <&dsi0_phy 0>, + <&dsi1_phy 1>, + <&dsi1_phy 0>, + <0>, + <0>; }; &tlmm { -- 2.30.1