Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp596325pxb; Wed, 25 Aug 2021 10:16:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwUUXEHYiad5oiRaOO2Za/Wbc9VsIlx5zcRtSaf0iNRoNC0SIp5nDTolhbLFEtvhUJQYNVZ X-Received: by 2002:a6b:e616:: with SMTP id g22mr37726189ioh.67.1629911762463; Wed, 25 Aug 2021 10:16:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629911762; cv=none; d=google.com; s=arc-20160816; b=dJ500irN3v/LI9Y117FZm2CbMm2vACkPNlk+Hic83aj/Jp8qHh9MLE8581cdl1zCN9 BwWbvxSss92It5Fmp3dwnu6D56wB1p5pYKwao4C4BF9iXu8WfsKM7jDOeUVWxub51awp 8VVWPv7xJ7a8AYsVsI8M08AIsHVwPzX2b8CCquVZmCKlGjrIxXtBRueHFRDjWqalQpGj oytk5m7mO2xVZtLN6JFNNbc0chHnG+zJhOkKP8biqR1z9iHHq++1epDl9oU+Zfr/eE3o gU1/bwLOqFe6Z38t+WDrrVqRlPRugHsw35FIJbHTPFCB3kDxbn4q5QZMXcIa8IJbiW9u VNWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:user-agent:from :references:in-reply-to:mime-version:dkim-signature; bh=UCTcnsSbnb2BZPV5ZPemMMiSns8GwhF8Z8WDFU9MAlI=; b=oPD0wNGx2IN4iMs30XfZ0ixs9ofVU4DhkL7ttlth2o2JPhLbZSxKtGd9zwmint5oz6 QRXJ3VMwZWPK63XFMaK6Hab2ZE6crhz2cuWYelVz1sl07iKY9wVPeBaia0cVok0ODmw4 eYAd0Gxh3O928fyG3yLJjcO2ChnuUtrvwUhppAPg9sO4jbJzJpHnoah+ZLckYbsn8zen n+T4w0HUGKR/sMkpOakNCp5EDafEvqCDhlibrBVFNVfjZhaP2zFtCMUns2jpHwnJeayJ TPdzPJrpA0BBGmfcZeSLFrC4nLPmJZMeJ42iHzjobeynShHC3SF6Wv843k4YV2p+PF1H fUwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Ibh57Mm8; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t1si252011ioj.70.2021.08.25.10.15.50; Wed, 25 Aug 2021 10:16:02 -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=@chromium.org header.s=google header.b=Ibh57Mm8; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241023AbhHYRO3 (ORCPT + 99 others); Wed, 25 Aug 2021 13:14:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242218AbhHYRON (ORCPT ); Wed, 25 Aug 2021 13:14:13 -0400 Received: from mail-ot1-x32b.google.com (mail-ot1-x32b.google.com [IPv6:2607:f8b0:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E0FEEC061757 for ; Wed, 25 Aug 2021 10:13:27 -0700 (PDT) Received: by mail-ot1-x32b.google.com with SMTP id x10-20020a056830408a00b004f26cead745so55770821ott.10 for ; Wed, 25 Aug 2021 10:13:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:in-reply-to:references:from:user-agent:date:message-id :subject:to:cc; bh=UCTcnsSbnb2BZPV5ZPemMMiSns8GwhF8Z8WDFU9MAlI=; b=Ibh57Mm8xpQqtAjHZeGcPf8lxPMd2widHCoILjnCYnTqer/uKN4ADjUsOUz/d8yeOn JSABs5wZGdIApigvNsHdWChYLvkAAtKABlqdFHzntcL38IXkoEf5VBY9P0iet573RMyT 0mRFTWy4GCeiC1ANUzQ3PzLdIqEpqXZRaGZlo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from :user-agent:date:message-id:subject:to:cc; bh=UCTcnsSbnb2BZPV5ZPemMMiSns8GwhF8Z8WDFU9MAlI=; b=QV8PfOy4Oepl5bJ/Iz5kDZ/gYy3ogMyYzt6p0MytXvEPJhxrmh/JsDcc2t5zuJK11S gmMJ9hScv6Qxqi2QVXkvoHgUXm987qRuV/jlS77GV1p5j4MMxcGhqpn8qnKtLm2nDYEa QIjEQnsp8gAmWBRK+6p0m+MipocabvNJYswMPCYmoyD1amkthZyMnuuf2Sa9n+swZm1r d7sSR0M3URBMSLjA+kvSHpCbELvCODbpQ4YaDFSt31kbqty4zKjQadnyf1bVJBRfw9jm 5vevZQsjzs7tlaAATWxVXafR6tY+bLT15VSG33HlWkGIAAdf9Drq0PDU+CaKOM2xhx6f +/VA== X-Gm-Message-State: AOAM533DPMc45lIoF36dDwjYT14hgFP78p/ybNd5IkXS+lTKNN0Iv5ZJ tW8Yh7OWFSsPWKBma0ClNXJIEuLAkp2CZhhzo9vK9Q== X-Received: by 2002:a05:6830:2473:: with SMTP id x51mr31010415otr.34.1629911607276; Wed, 25 Aug 2021 10:13:27 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 25 Aug 2021 17:13:26 +0000 MIME-Version: 1.0 In-Reply-To: <1629847226-10112-1-git-send-email-khsieh@codeaurora.org> References: <1629847226-10112-1-git-send-email-khsieh@codeaurora.org> From: Stephen Boyd User-Agent: alot/0.9.1 Date: Wed, 25 Aug 2021 17:13:26 +0000 Message-ID: Subject: Re: [PATCH] arm64: dts: qcom: sc7280: Add Display Port node To: Kuogee Hsieh , agross@kernel.org, bjorn.andersson@linaro.org, devicetree@vger.kernel.org, robdclark@gmail.com, robh+dt@kernel.org, sean@poorly.run, vkoul@kernel.org Cc: abhinavk@codeaurora.org, aravindh@codeaurora.org, mkrishn@codeaurora.org, kalyan_t@codeaurora.org, rajeevny@codeaurora.org, freedreno@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Kuogee Hsieh (2021-08-24 16:20:26) > Add display port supported node for sc7280. Also correct dp-phy node > tx/rx/pcs/tx2/rx2 base reg address to fix aux channel read/write > failure issue. > > Signed-off-by: Kuogee Hsieh > --- > arch/arm64/boot/dts/qcom/sc7280-idp2.dts | 9 +++ Please split the idp diff from the sc7280.dts diff so that there are two patches instead of one. It helps with ignoring the idp diff. > arch/arm64/boot/dts/qcom/sc7280.dtsi | 98 +++++++++++++++++++++++++++++--- > 2 files changed, 100 insertions(+), 7 deletions(-) > > diff --git a/arch/arm64/boot/dts/qcom/sc7280-idp2.dts b/arch/arm64/boot/dts/qcom/sc7280-idp2.dts > index b1cf70e..4aea369 100644 > --- a/arch/arm64/boot/dts/qcom/sc7280-idp2.dts > +++ b/arch/arm64/boot/dts/qcom/sc7280-idp2.dts > @@ -202,3 +202,12 @@ ap_h1_spi: &spi14 {}; > backlight = <&backlight>; > }; > }; > + > +&msm_dp { > + status = "okay"; > + pinctrl-names = "default"; > + pinctrl-0 = <&dp_hot_plug_det>; > + data-lanes = <0 1>; > + vdda-1p2-supply = <&vreg_l6b_1p2>; > + vdda-0p9-supply = <&vreg_l1b_0p8>; > +}; > diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qcom/sc7280.dtsi > index c29226b..a350d84 100644 > --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi > +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi > @@ -2918,15 +2918,11 @@ > dp_phy: dp-phy@88ea200 { > reg = <0 0x088ea200 0 0x200>, > <0 0x088ea400 0 0x200>, > - <0 0x088eac00 0 0x400>, > + <0 0x088eaa00 0 0x200>, > <0 0x088ea600 0 0x200>, > - <0 0x088ea800 0 0x200>, > - <0 0x088eaa00 0 0x100>; > + <0 0x088ea800 0 0x200>; So this was wrong? Best to split that out into another patch with the appropriate Fixes tag. > #phy-cells = <0>; > #clock-cells = <1>; > - clocks = <&gcc GCC_USB3_PRIM_PHY_PIPE_CLK>; > - clock-names = "pipe0"; > - clock-output-names = "usb3_phy_pipe_clk_src"; And then mention this part in the commit text of the fixing patch. > }; > }; > > @@ -3389,6 +3392,74 @@ > }; > }; > }; > + > + msm_dp: displayport-controller@ae90000 { > + status = "disabled"; > + compatible = "qcom,sc7180-dp"; Can we add qcom,sc7280-dp as well? Just in case anything is wrong with sc7280 specifically. > + > + reg = <0 0x0ae90000 0 0x1400>; > + > + interrupt-parent = <&mdss>; > + interrupts = <12 IRQ_TYPE_NONE>; Drop IRQ_TYPE_NONE per the binding it is one cell, not two. > + > + 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"; Can we get clock-names on one line matching the clocks property please? That makes it easier to match it up between the two properties. > + #clock-cells = <1>; > + assigned-clocks = <&dispcc DISP_CC_MDSS_DP_LINK_CLK_SRC>, > + <&dispcc DISP_CC_MDSS_DP_PIXEL_CLK_SRC>; > + assigned-clock-parents = <&dp_phy 0>, <&dp_phy 1>; > + phys = <&dp_phy>; > + phy-names = "dp"; > + > + operating-points-v2 = <&dp_opp_table>; > + power-domains = <&rpmhpd SC7180_CX>; > + > + #sound-dai-cells = <0>; Nitpick: Newline here. > + 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 { }; > + }; > + }; > + > + dp_opp_table: dp-opp-table { 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>; > + }; > + }; > + }; > }; > > dispcc: clock-controller@af00000 { > @@ -3398,7 +3469,8 @@ > <&gcc GCC_DISP_GPLL0_CLK_SRC>, > <&dsi_phy 0>, > <&dsi_phy 1>, > - <0>, <0>, > + <&dp_phy 0>, > + <&dp_phy 1>, > <&msm_edp 0>, > <&msm_edp 1>; > clock-names = "bi_tcxo", "gcc_disp_gpll0_clk", > @@ -3525,6 +3597,18 @@ > }; > }; > > + dp_hot_plug_det: dp-hot-plug-det { > + pinmux { > + pins = "gpio47"; > + function = "dp_hot"; > + }; > + > + pinconf { > + pins = "gpio47"; > + bias-disable; > + }; Combine these two nodes (pinmux and pinconf) into one please. dp_hot_plug_det: dp-hot-plug-det { pins = "gpio47"; function = "dp_hot"; bias-disable; }; > + }; > + > qspi_clk: qspi-clk { > pins = "gpio14"; > function = "qspi_clk";