Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 309DCC6FD20 for ; Tue, 21 Mar 2023 20:51:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230009AbjCUUvp (ORCPT ); Tue, 21 Mar 2023 16:51:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229891AbjCUUvn (ORCPT ); Tue, 21 Mar 2023 16:51:43 -0400 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E9594A1CC for ; Tue, 21 Mar 2023 13:51:38 -0700 (PDT) Received: by mail-lf1-x12b.google.com with SMTP id bi9so20737278lfb.12 for ; Tue, 21 Mar 2023 13:51:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679431896; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=eKWhu/7fxkKK1XhIKWyiKLRoNftSH0tG13Cl4ydh5kE=; b=YWyfDTdk3ZLPMeCcQdUtXZeSjbsAcurRnXz9ikuqmlauXD5e4hMi8wqGI1w4wOwUsC Xknw9QNDDWsWXRY6/oZIuecHdxPkeVNxBqTeoQuuoOqvwm56KeV2kqrurxA0v2tBSZ9F +KGJ+s0ZWUZ30aZPSiSeptskNCb1ymiq3eTRvLdCug3LmDK6FZKmR1jUAAPJzRJeyHgp ILhpL7lgct28YU8agmpgE4Av9Z/9THQoM7o367h46k2y/JoRbbGAH2Zf5G+tb53t1lHC Q0m2GWhVUtVEUJZ0IkMXafnwpFdVUbuuW9SdGPWSFJPEQOoxAEiFM/9JXcdrmwakZNa7 6Pcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679431896; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=eKWhu/7fxkKK1XhIKWyiKLRoNftSH0tG13Cl4ydh5kE=; b=wC55Jn60cePW634NRNlR7YQpKbIJEss/sLrVixyJ2r9UZEDSWHpdE5fd+n7yrnn5gj uNHoPTpIHlO3mLF7wH/eq9Liitw3FeCY++s37HkHlQq/VPR8GgvgBrosnIxbYW11a0wU pqc6x8SS8i02RSgNuqOIPUisz/9Z/tLaJvWP6wOJAp4nzEAcTIdUhbDAIwwXe4FxTLwx WTjFp9Tii9KT9gsSUK0SE2CkQMMt77B6AkJ6zouXEXIZTb34EHRnzbB9ZkGnogUFeioX KknQl5m2mB9wXnEmpw3YqJOes/9WK5Tew9WlN5y3ZIn8CKw4cq/p/432IqoLo/AeR4e9 Rhhg== X-Gm-Message-State: AO0yUKW8V9V7oJOLsiaeR9WcFfKbo66IbCgEKUTczaebgPlNP6+km4m/ jdKykAne/hmnCAgBH1/dpPKMZA== X-Google-Smtp-Source: AK7set+NLZEYdMSH+1uGPF9bttBCNzvYGp4nyjMPrmc4asW1hTHH4rA1OHm0X7nNb/Q0nT1c6OcsGw== X-Received: by 2002:a05:6512:68:b0:4cb:2aa:9e58 with SMTP id i8-20020a056512006800b004cb02aa9e58mr1217358lfo.13.1679431896402; Tue, 21 Mar 2023 13:51:36 -0700 (PDT) Received: from [192.168.1.101] (abym238.neoplus.adsl.tpnet.pl. [83.9.32.238]) by smtp.gmail.com with ESMTPSA id y17-20020ac24211000000b004ddaea30ba6sm2293727lfh.235.2023.03.21.13.51.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 21 Mar 2023 13:51:35 -0700 (PDT) Message-ID: Date: Tue, 21 Mar 2023 21:51:34 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH v6 5/5] arm64: dts: qcom: sm8450: add dp controller Content-Language: en-US To: Neil Armstrong , Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Kuogee Hsieh , Andy Gross , Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230206-topic-sm8450-upstream-dp-controller-v6-0-d78313cbc41d@linaro.org> <20230206-topic-sm8450-upstream-dp-controller-v6-5-d78313cbc41d@linaro.org> From: Konrad Dybcio In-Reply-To: <20230206-topic-sm8450-upstream-dp-controller-v6-5-d78313cbc41d@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 17.03.2023 16:06, Neil Armstrong wrote: > Add the Display Port controller subnode to the MDSS node. > > Signed-off-by: Neil Armstrong > --- > arch/arm64/boot/dts/qcom/sm8450.dtsi | 79 ++++++++++++++++++++++++++++++++++++ > 1 file changed, 79 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sm8450.dtsi b/arch/arm64/boot/dts/qcom/sm8450.dtsi > index 97ce5fe0e9b0..da6d1881ef60 100644 > --- a/arch/arm64/boot/dts/qcom/sm8450.dtsi > +++ b/arch/arm64/boot/dts/qcom/sm8450.dtsi > @@ -2751,6 +2751,13 @@ dpu_intf2_out: endpoint { > }; > }; > > + port@2 { > + reg = <2>; > + dpu_intf0_out: endpoint { > + remote-endpoint = <&mdss_dp0_in>; > + }; > + }; > + > }; > > mdp_opp_table: opp-table { > @@ -2783,6 +2790,78 @@ opp-500000000 { > }; > }; > > + mdss_dp0: displayport-controller@ae90000 { > + compatible = "qcom,sm8450-dp", "qcom,sm8350-dp"; > + reg = <0 0xae90000 0 0x200>, > + <0 0xae90200 0 0x200>, > + <0 0xae90400 0 0xc00>, > + <0 0xae91000 0 0x400>, > + <0 0xae91400 0 0x400>; > + interrupt-parent = <&mdss>; > + interrupts = <12>; > + clocks = <&dispcc DISP_CC_MDSS_AHB_CLK>, > + <&dispcc DISP_CC_MDSS_DPTX0_AUX_CLK>, > + <&dispcc DISP_CC_MDSS_DPTX0_LINK_CLK>, > + <&dispcc DISP_CC_MDSS_DPTX0_LINK_INTF_CLK>, > + <&dispcc DISP_CC_MDSS_DPTX0_PIXEL0_CLK>; > + clock-names = "core_iface", > + "core_aux", > + "ctrl_link", > + "ctrl_link_iface", I applied this locally and noticed line has 2x 8 spaces.. Bjorn, could you please take care of that when applying? Konrad > + "stream_pixel"; > + > + assigned-clocks = <&dispcc DISP_CC_MDSS_DPTX0_LINK_CLK_SRC>, > + <&dispcc DISP_CC_MDSS_DPTX0_PIXEL0_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 SM8450_MMCX>; > + > + status = "disabled"; > + > + ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + port@0 { > + reg = <0>; > + mdss_dp0_in: endpoint { > + remote-endpoint = <&dpu_intf0_out>; > + }; > + }; > + }; > + > + 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,sm8450-dsi-ctrl", "qcom,mdss-dsi-ctrl"; > reg = <0 0x0ae94000 0 0x400>; >