Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1410699rwd; Wed, 31 May 2023 13:37:07 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5vrW7tR+PLxoqQIvp+IzP4TZKM/xSM18PNzbJg4H4bcifta77IbPCHJvGi6r+wh8dRupEA X-Received: by 2002:a05:6a20:a19a:b0:10c:4e7f:1a5a with SMTP id r26-20020a056a20a19a00b0010c4e7f1a5amr5514563pzk.49.1685565426684; Wed, 31 May 2023 13:37:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685565426; cv=none; d=google.com; s=arc-20160816; b=PTqOUxKtwdS8A3+2AqLe8UUzrxWBbWVcCUjTGDDPsj+/f/RBrZbdKbPzfyYPghXrsD S6cEm54LUidM6FOyx/RyQT36umw8mIWDRs6X/LQK8P04FVrVoLpFYYOGIdb+gA+KjaYQ 1JkHrBulxJEKl2iaIBI+Mf59e9Km/7a3cw+ikfnJFaj1DlmDHhV4fFw5QaWxjPHuGwtc 6gR8DzaLDayj+o7NgZ1JtNxcyaB56FwivTqBwa3IG7aUnK5qNHS44jpiiGqE8RJsLqlH EJR2Hs6GX5wKK+9FcYrwnFohLe2eqpeE+foxAcNqzvrpXU2HBg7yGAC5+ntsyacpzUZm C2uA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=rEvGZ02uQmi1NDtQLEnYY/SSajwD3OKCwjA8p7aWJcg=; b=DAgDmGFFSKhg32UYtLCdrtA0+O42rMt9mpM0wmoL4Conpmct46nT9p8UTVcsH+Kv6V gLjyIlpLIgwv3lSeZ3BpZq1pp4J5t5oNXIFhgq5Y5DQS1sFOcZPDcqdYWdPsfo8HzXfu Q+u4g/NAPN89RcM9XYNIXmMUjnyYgNSDI83MCpeIVwTQdqPWcOF9pibbAW327aFwwDx9 1nyCEMLKJaCiQ0Y+2g9sBpGgJ0gBjLRCGFm/Tr9I1hdbxCR5gaJsn42kzu4S7PhxHIcU pGw2qxur9Vljg3YTaucw0eLtBeWTqe1P4oB/ZbNdlUJvlYwlzc3WDznkDYj8znOip50I DvkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DfzrF7PP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 143-20020a630095000000b0053fc757bb04si1655975pga.545.2023.05.31.13.36.51; Wed, 31 May 2023 13:37:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DfzrF7PP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229706AbjEaUWc (ORCPT + 99 others); Wed, 31 May 2023 16:22:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230163AbjEaUWb (ORCPT ); Wed, 31 May 2023 16:22:31 -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 85C5E126 for ; Wed, 31 May 2023 13:22:28 -0700 (PDT) Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-4f004cc54f4so7434231e87.3 for ; Wed, 31 May 2023 13:22:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685564547; x=1688156547; 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=rEvGZ02uQmi1NDtQLEnYY/SSajwD3OKCwjA8p7aWJcg=; b=DfzrF7PP8SkwhpYi9MLpu5aPKMGkMmsGiYtGUxbNAs5gDXa0GgwkLgBe8i3m7B4vci X1pLcT4w25Mmkbm84jU+Dk9ijSPiBs540ToLLr0KKqANs8vDLdxovrTjK1kbd1BFQU30 zGpLZ5mN1uHZ/L+/B+13ND/6taY2/1jTeCM2XlF2Srnha9mDZyK3uNWVG4fF8CWFz/f2 clqOZ0YLSh2UPdOoHNY/Kh1eC3sCUc9mkC6LUkfwhG+VrhBvsPTt7YK5BQWgSD9Yht76 H/NEjOiaYIcQ0/p+emwrSEUkKcqMSbnDWeiLtggSFt2p6x0ParZFRd9HIBYl3F5zh5SU 46zQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685564547; x=1688156547; 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=rEvGZ02uQmi1NDtQLEnYY/SSajwD3OKCwjA8p7aWJcg=; b=NeaWr/FueTHDUO+kDtJ+4gfJM9ty0wwggZFparFlzsX1wyWaiiWZFnx2k19ldKqUsv alPiq/xxExwJx/77SGsziizaDKtCXWZMsKeO2uFAFCIWcUaAyp5mShUOP0VDKXjDSg0K tofyVWOArZ7Ilxi5FBuLOFHEjDyVKoX9O4lgOPQkHYYJrysxFOtlVasfCsmKW+9nTY1G GriJmexZ0LgeF8C9NfNgQuo2Th7AkQWMPZbsCdKj9K8yv5EhikKjQKWX493MlrBKq2n6 wtQZ96lVE34SptA0+6XKqoY6u9wAtJR0rXqcKsI3HN9I/7fek8Z4vdpMNYAwU5D3MDxU +PZg== X-Gm-Message-State: AC+VfDyo3BkYZk0wf3nP2M7DV7SyMUnc1JcyApNGdsh7dAOhu1HO3Sbu MH+oiiAa7UrYF0py12BQfB+56w== X-Received: by 2002:a19:7616:0:b0:4eb:c85:bdc2 with SMTP id c22-20020a197616000000b004eb0c85bdc2mr114419lff.2.1685564546718; Wed, 31 May 2023 13:22:26 -0700 (PDT) Received: from [192.168.1.101] (abyj77.neoplus.adsl.tpnet.pl. [83.9.29.77]) by smtp.gmail.com with ESMTPSA id p3-20020a19f003000000b004f4589808ddsm827451lfc.305.2023.05.31.13.22.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 31 May 2023 13:22:26 -0700 (PDT) Message-ID: <3eba155b-8b98-d7a3-ed07-fa20974c8499@linaro.org> Date: Wed, 31 May 2023 22:22:24 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.2 Subject: Re: [PATCH v3 2/3] arm64: dts: qcom: sc8280xp: Add GPU related nodes Content-Language: en-US To: Bjorn Andersson , Bjorn Andersson Cc: Rob Clark , Dmitry Baryshkov , Sean Paul , Akhil P Oommen , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, johan@kernel.org, mani@kernel.org, Steev Klimaszewski References: <20230531030945.4109453-1-quic_bjorande@quicinc.com> <20230531030945.4109453-3-quic_bjorande@quicinc.com> From: Konrad Dybcio In-Reply-To: <20230531030945.4109453-3-quic_bjorande@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 31.05.2023 05:09, Bjorn Andersson wrote: > From: Bjorn Andersson > > Add Adreno SMMU, GPU clock controller, GMU and GPU nodes for the > SC8280XP. > > Tested-by: Steev Klimaszewski > Signed-off-by: Bjorn Andersson > Signed-off-by: Bjorn Andersson > --- Reviewed-by: Konrad Dybcio Konrad > > Changes since v2: > - Added missing opp level (both gpu and gmu) > - Corrected opp-level for highest gpu opp > - Added dma-coherent to gpu smmu > > Note that in order for the GPU driver to probe, the last change > requires: > https://lore.kernel.org/linux-arm-msm/20230410185226.3240336-1-dmitry.baryshkov@linaro.org/ > > Changes since v1: > - Dropped gmu_pdc_seq region from &gmu, as it shouldn't have been used. > - Added missing compatible to &adreno_smmu. > - Dropped aoss_qmp clock in &gmu and &adreno_smmu. > > arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 181 +++++++++++++++++++++++++ > 1 file changed, 181 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi > index 6730349e34f4..00f4df7fdcad 100644 > --- a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi > +++ b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi > @@ -6,6 +6,7 @@ > > #include > #include > +#include > #include > #include > #include > @@ -2340,6 +2341,186 @@ tcsr: syscon@1fc0000 { > reg = <0x0 0x01fc0000 0x0 0x30000>; > }; > > + gpu: gpu@3d00000 { > + compatible = "qcom,adreno-690.0", "qcom,adreno"; > + > + reg = <0 0x03d00000 0 0x40000>, > + <0 0x03d9e000 0 0x1000>, > + <0 0x03d61000 0 0x800>; > + reg-names = "kgsl_3d0_reg_memory", > + "cx_mem", > + "cx_dbgc"; > + interrupts = ; > + iommus = <&adreno_smmu 0 0xc00>, <&adreno_smmu 1 0xc00>; > + operating-points-v2 = <&gpu_opp_table>; > + > + qcom,gmu = <&gmu>; > + interconnects = <&gem_noc MASTER_GFX3D 0 &mc_virt SLAVE_EBI1 0>; > + interconnect-names = "gfx-mem"; > + #cooling-cells = <2>; > + > + status = "disabled"; > + > + gpu_opp_table: opp-table { > + compatible = "operating-points-v2"; > + > + opp-270000000 { > + opp-hz = /bits/ 64 <270000000>; > + opp-level = ; > + opp-peak-kBps = <451000>; > + }; > + > + opp-410000000 { > + opp-hz = /bits/ 64 <410000000>; > + opp-level = ; > + opp-peak-kBps = <1555000>; > + }; > + > + opp-500000000 { > + opp-hz = /bits/ 64 <500000000>; > + opp-level = ; > + opp-peak-kBps = <1555000>; > + }; > + > + opp-547000000 { > + opp-hz = /bits/ 64 <547000000>; > + opp-level = ; > + opp-peak-kBps = <1555000>; > + }; > + > + opp-606000000 { > + opp-hz = /bits/ 64 <606000000>; > + opp-level = ; > + opp-peak-kBps = <2736000>; > + }; > + > + opp-640000000 { > + opp-hz = /bits/ 64 <640000000>; > + opp-level = ; > + opp-peak-kBps = <2736000>; > + }; > + > + opp-655000000 { > + opp-hz = /bits/ 64 <655000000>; > + opp-level = ; > + opp-peak-kBps = <2736000>; > + }; > + > + opp-690000000 { > + opp-hz = /bits/ 64 <690000000>; > + opp-level = ; > + opp-peak-kBps = <2736000>; > + }; > + }; > + }; > + > + gmu: gmu@3d6a000 { > + compatible = "qcom,adreno-gmu-690.0", "qcom,adreno-gmu"; > + reg = <0 0x03d6a000 0 0x34000>, > + <0 0x03de0000 0 0x10000>, > + <0 0x0b290000 0 0x10000>; > + reg-names = "gmu", "rscc", "gmu_pdc"; > + interrupts = , > + ; > + interrupt-names = "hfi", "gmu"; > + clocks = <&gpucc GPU_CC_CX_GMU_CLK>, > + <&gpucc GPU_CC_CXO_CLK>, > + <&gcc GCC_DDRSS_GPU_AXI_CLK>, > + <&gcc GCC_GPU_MEMNOC_GFX_CLK>, > + <&gpucc GPU_CC_AHB_CLK>, > + <&gpucc GPU_CC_HUB_CX_INT_CLK>, > + <&gpucc GPU_CC_HLOS1_VOTE_GPU_SMMU_CLK>; > + clock-names = "gmu", > + "cxo", > + "axi", > + "memnoc", > + "ahb", > + "hub", > + "smmu_vote"; > + power-domains = <&gpucc GPU_CC_CX_GDSC>, > + <&gpucc GPU_CC_GX_GDSC>; > + power-domain-names = "cx", > + "gx"; > + iommus = <&adreno_smmu 5 0xc00>; > + operating-points-v2 = <&gmu_opp_table>; > + > + status = "disabled"; > + > + gmu_opp_table: opp-table { > + compatible = "operating-points-v2"; > + > + opp-200000000 { > + opp-hz = /bits/ 64 <200000000>; > + opp-level = ; > + }; > + > + opp-500000000 { > + opp-hz = /bits/ 64 <500000000>; > + opp-level = ; > + }; > + }; > + }; > + > + gpucc: clock-controller@3d90000 { > + compatible = "qcom,sc8280xp-gpucc"; > + reg = <0 0x03d90000 0 0x9000>; > + clocks = <&rpmhcc RPMH_CXO_CLK>, > + <&gcc GCC_GPU_GPLL0_CLK_SRC>, > + <&gcc GCC_GPU_GPLL0_DIV_CLK_SRC>; > + clock-names = "bi_tcxo", > + "gcc_gpu_gpll0_clk_src", > + "gcc_gpu_gpll0_div_clk_src"; > + > + power-domains = <&rpmhpd SC8280XP_GFX>; > + #clock-cells = <1>; > + #reset-cells = <1>; > + #power-domain-cells = <1>; > + > + status = "disabled"; > + }; > + > + adreno_smmu: iommu@3da0000 { > + compatible = "qcom,sc8280xp-smmu-500", "qcom,adreno-smmu", > + "qcom,smmu-500", "arm,mmu-500"; > + reg = <0 0x03da0000 0 0x20000>; > + #iommu-cells = <2>; > + #global-interrupts = <2>; > + interrupts = , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + ; > + > + clocks = <&gcc GCC_GPU_MEMNOC_GFX_CLK>, > + <&gcc GCC_GPU_SNOC_DVM_GFX_CLK>, > + <&gpucc GPU_CC_AHB_CLK>, > + <&gpucc GPU_CC_HLOS1_VOTE_GPU_SMMU_CLK>, > + <&gpucc GPU_CC_CX_GMU_CLK>, > + <&gpucc GPU_CC_HUB_CX_INT_CLK>, > + <&gpucc GPU_CC_HUB_AON_CLK>; > + clock-names = "gcc_gpu_memnoc_gfx_clk", > + "gcc_gpu_snoc_dvm_gfx_clk", > + "gpu_cc_ahb_clk", > + "gpu_cc_hlos1_vote_gpu_smmu_clk", > + "gpu_cc_cx_gmu_clk", > + "gpu_cc_hub_cx_int_clk", > + "gpu_cc_hub_aon_clk"; > + > + power-domains = <&gpucc GPU_CC_CX_GDSC>; > + dma-coherent; > + > + status = "disabled"; > + }; > + > usb_0_hsphy: phy@88e5000 { > compatible = "qcom,sc8280xp-usb-hs-phy", > "qcom,usb-snps-hs-5nm-phy";