Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp26005ybt; Tue, 30 Jun 2020 14:04:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxW5pZOtQlbrysjpKwKBHv4tveIhrfzWSMvaMHOP80XbH2NerN+wiGHBnvRAkf/VEF1IcQq X-Received: by 2002:a17:906:53d4:: with SMTP id p20mr19487539ejo.472.1593550724568; Tue, 30 Jun 2020 13:58:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593550724; cv=none; d=google.com; s=arc-20160816; b=UJEDmo/jQ1CrN2F36l89UB7psMTY7VMu79E3QLyGmwb/KKeFruAhQqR0Gabxmm2iYl ZA3G0diKe4NNlPBukA0FtOZ0m0ZQrBXUm6XYNAhUvFHKeO2h3lwo3Y+vdI4eXdYXhEjt zachAldvyUGV9jzmw3JexTQ1ffgkrkeActwye8oOhnKXrh71TwqL5lKLVXFN5uk7V5ys 3OZV4sngzt4CqrpZrV5pCsCYKq9eig9vPTAvh/iIxjJ+H9eg9CqqsKO5wTQJtWU9FcfJ DHTnfknHtjMbr7xoNtCJli8JJ/aDRQRNt8IG/yQPJzbR7amZUmI7ozoCFLqSiYj7KQae aGqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dmarc-filter:dkim-signature; bh=khdI7KK3P5HEXu5fVmHtaSFBLxX53kdpZO9nigjlUsg=; b=iTpOIzLinnOGGN3dnHsiorzFs3yGjS0S6HQUvesUwqcY/0CRWVaYMEU6A4mnypdo0a 8cQPrfzt0aRfcBtUu8c6KpRw4Xs/fLs3lSWjSzkUQRbBC1PJTlgZgTI+tJU69nNqxAin eU2CEymu1BKOak0aJfyk69eFJeM7iINQF6v+ZxBFy7g+2W2NYTSFec1n9VqGQ2pcJvYQ Q0Mhdv92cnELVipbVfpjfhA4Z7G0Q+pbSUwrMUgMWTD0Om1iomF5YZWn1wVnWmRIFFA8 5Rm0WgA2WUNtCN6TIWKyH4YsPh8wmFYWXOZCNEwA09hoUYFDzrPpGg6uIwAoyRHSTb1u SMTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=YFZmn6CK; 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 z11si2353454edr.395.2020.06.30.13.58.22; Tue, 30 Jun 2020 13:58:44 -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=fail header.i=@mg.codeaurora.org header.s=smtp header.b=YFZmn6CK; 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 S1728801AbgF3TwM (ORCPT + 99 others); Tue, 30 Jun 2020 15:52:12 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:60175 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728449AbgF3TwM (ORCPT ); Tue, 30 Jun 2020 15:52:12 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1593546731; h=Content-Transfer-Encoding: MIME-Version: Message-Id: Date: Subject: Cc: To: From: Sender; bh=khdI7KK3P5HEXu5fVmHtaSFBLxX53kdpZO9nigjlUsg=; b=YFZmn6CKwEzCrbXZhhliA+vJ6ZCZ7Y9+k+LNLpL2NA1CN2p6PpXt3k9AOoGA6bX5ftl0flN/ jl3MLQ6Et6Fjhr7LK0liqH7D+pWOEIzIrpqJ5MMZ6UUawdakRSS6d8k5ed8bBgdJ//uGNDXz AENpMW49r1ISv5KY80GZr6g8LZs= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n19.prod.us-west-2.postgun.com with SMTP id 5efb97e85866879c76f8cffa (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 30 Jun 2020 19:52:08 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 65414C433C6; Tue, 30 Jun 2020 19:52:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from linuxdisplay-lab-04.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: tanmay) by smtp.codeaurora.org (Postfix) with ESMTPSA id DBF0AC433C6; Tue, 30 Jun 2020 19:52:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org DBF0AC433C6 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=tanmay@codeaurora.org From: Tanmay Shah To: swboyd@chromium.org, seanpaul@chromium.org Cc: agross@kernel.org, bjorn.andersson@linaro.org, robh+dt@kernel.org, sam@ravnborg.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, robdclark@gmail.com, aravindh@codeaurora.org, abhinavk@codeaurora.org, chandanu@codeaurora.org, varar@codeaurora.org, Tanmay Shah Subject: [PATCH v3] arm64: dts: qcom: sc7180: Add Display Port dt node Date: Tue, 30 Jun 2020 12:51:51 -0700 Message-Id: <20200630195151.347-1-tanmay@codeaurora.org> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add DP device node on sc7180. Changes in v2: - Add assigned-clocks and assigned-clock-parents - Remove cell-index and pixel_rcg - Change compatible to qcom,sc7180-dp Changes in v3: - Update commit text - Make DP child node of MDSS - Remove data-lanes property from SOC dts - Disable DP node in SOC dts - Assign DP to Port2 in MDP node - Add MDSS AHB clock in DP device node This patch depends-on: https://patchwork.freedesktop.org/series/78953/ Signed-off-by: Tanmay Shah --- arch/arm64/boot/dts/qcom/sc7180.dtsi | 49 ++++++++++++++++++++++++++-- 1 file changed, 47 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sc7180.dtsi b/arch/arm64/boot/dts/qcom/sc7180.dtsi index 31b9217bb5bf..271d55db62ab 100644 --- a/arch/arm64/boot/dts/qcom/sc7180.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7180.dtsi @@ -2371,6 +2371,13 @@ dpu_intf1_out: endpoint { remote-endpoint = <&dsi0_in>; }; }; + + port@2 { + reg = <2>; + dpu_intf0_out: endpoint { + remote-endpoint = <&dp_in>; + }; + }; }; }; @@ -2440,6 +2447,44 @@ dsi_phy: dsi-phy@ae94400 { status = "disabled"; }; + + msm_dp: displayport-controller@ae90000{ + status = "disabled"; + compatible = "qcom,sc7180-dp"; + + reg = <0 0xae90000 0 0x1400>; + reg-names = "dp_controller"; + + interrupt-parent = <&mdss>; + interrupts = <12 0>; + + 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"; + #clock-cells = <1>; + assigned-clocks = <&dispcc DISP_CC_MDSS_DP_PIXEL_CLK_SRC>; + assigned-clock-parents = <&msm_dp 1>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + port@0 { + reg = <0>; + dp_in: endpoint { + remote-endpoint = <&dpu_intf0_out>; + }; + }; + + port@1 { + reg = <1>; + dp_out: endpoint { }; + }; + }; + }; }; dispcc: clock-controller@af00000 { @@ -2449,8 +2494,8 @@ dispcc: clock-controller@af00000 { <&gcc GCC_DISP_GPLL0_CLK_SRC>, <&dsi_phy 0>, <&dsi_phy 1>, - <0>, - <0>; + <&msm_dp 0>, + <&msm_dp 1>; clock-names = "bi_tcxo", "gcc_disp_gpll0_clk_src", "dsi0_phy_pll_out_byteclk", -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project