From nobody Wed Dec 17 12:42:23 2025 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 C4053C4167B for ; Mon, 27 Nov 2023 16:20:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234074AbjK0QUT (ORCPT ); Mon, 27 Nov 2023 11:20:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234006AbjK0QUL (ORCPT ); Mon, 27 Nov 2023 11:20:11 -0500 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B330EEA for ; Mon, 27 Nov 2023 08:20:16 -0800 (PST) Received: by mail-ed1-x535.google.com with SMTP id 4fb4d7f45d1cf-5441305cbd1so5831292a12.2 for ; Mon, 27 Nov 2023 08:20:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701102015; x=1701706815; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=wScVN9GJ+E8NH1QgW/pZgzNPoRc7lXT0Ko7dLMF2kn0=; b=tBb5eVloyVgCUvzVDCzmI3mmhG7Kb4yf2YsEBHuryVc0w2nZwSNIc3oOObzOxbTHy1 FRgLv5TzVo2mhuFVJW201KboRsXYtK5wsalt3JEt4bwnv1474Ul+cpPtF3oQdNseTaMA FCrKCxnX/AEtmsRDTxUk1stKMf3eU1Z9NaWNl4Wk1kTO9caBBjY4uUiNwHd21Qa5mtW4 i/FziCY0QUkbKrLg/vnErvmzqAMgSqVgz+lNfsixPm53TvkJkiKlbBGJH2zvcXOti3BP DyvUVfNhAu5xLl7XTh5l1xYg0DgIMxZYcBOwSYpehrKGxgxZ4qDR3C4BqlAcy08mlXak QCjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701102015; x=1701706815; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wScVN9GJ+E8NH1QgW/pZgzNPoRc7lXT0Ko7dLMF2kn0=; b=BRRd4n93BMIHc9ri+qAM7Wn5B18Jlij7bliBlh/A8nm4y0vIVXGWd4OG2+WVRWdpTc PaOHhWs5kecR4AsvNSEbZvCR0VHKm8aaDQ6WihcJBaR9kxjU4FZegIMxpondp+7rtu9l EC3XibP1vmrYmW8qiREet3Lr43V+7qIbLXp6xQZK/l3HLDnZmD3+va/BV/FDuIMMGS4U kTBxMS9DTglzEsFAYSfrrZqXulgyIZHbm0nIwD6CSFZ7YbS8FBs91x/v+zX8O/ewkLIa fstoTXYYlTZs2wavq/h4tHZCVA9aBNcJk2tfFhfr7/koynyvs+2mwWzLy7F4HYqVOh49 rO2Q== X-Gm-Message-State: AOJu0YyTOXWkhQ+OXDRmimoYFKDcmvNJ4HeAWM6Mk+hizK8zzS09o93+ BYJMsCXa/LDW5J52Mdo8CSflQqP7PaLUtvPhAaI= X-Google-Smtp-Source: AGHT+IGy0Fk2mPPN0sXHr17CQkC/+bQ81dI1bsK9vUcJe9XfJ34BTBR2CPBJZ9FdvdCitB42Tjln+g== X-Received: by 2002:a17:906:3290:b0:9c1:66cc:1d7d with SMTP id 16-20020a170906329000b009c166cc1d7dmr7796734ejw.64.1701102014921; Mon, 27 Nov 2023 08:20:14 -0800 (PST) Received: from [10.167.154.1] (178235187180.dynamic-4-waw-k-2-3-0.vectranet.pl. [178.235.187.180]) by smtp.gmail.com with ESMTPSA id m12-20020a1709062acc00b009c3828fec06sm5734760eje.81.2023.11.27.08.20.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 08:20:14 -0800 (PST) From: Konrad Dybcio Date: Mon, 27 Nov 2023 17:20:04 +0100 Subject: [PATCH 2/6] arm64: dts: qcom: sm8450: Add GPU nodes MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20231127-topic-a7xx_dt-v1-2-a228b8122ebf@linaro.org> References: <20231127-topic-a7xx_dt-v1-0-a228b8122ebf@linaro.org> In-Reply-To: <20231127-topic-a7xx_dt-v1-0-a228b8122ebf@linaro.org> To: Will Deacon , Robin Murphy , Joerg Roedel , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andy Gross , Bjorn Andersson Cc: Marijn Suijten , Neil Armstrong , Dmitry Baryshkov , linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1701102008; l=7123; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=I5oAq4yvU3S7sBbp5DBP75jCv9QJAYvsZHzH8XavMSU=; b=HoaVPcrRvjXrREUWeLaJt3R2+uJce6mBb18Ppr+odKdWMibsFYokteuvpay3z5ROgGRGAbOrn dlbTW4nz8kMCq0TN9SpOcjf9dm0DocD7Sairm1/44Z/7BgYh9MDJGHm X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the required nodes to support the A730 GPU. Signed-off-by: Konrad Dybcio Reviewed-by: Neil Armstrong --- arch/arm64/boot/dts/qcom/sm8450.dtsi | 202 +++++++++++++++++++++++++++++++= ++++ 1 file changed, 202 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8450.dtsi b/arch/arm64/boot/dts/qco= m/sm8450.dtsi index bde9c1093384..e9664672c160 100644 --- a/arch/arm64/boot/dts/qcom/sm8450.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8450.dtsi @@ -8,6 +8,7 @@ #include #include #include +#include #include #include #include @@ -18,6 +19,7 @@ #include #include #include +#include #include #include #include @@ -2019,6 +2021,206 @@ tcsr: syscon@1fc0000 { reg =3D <0x0 0x1fc0000 0x0 0x30000>; }; =20 + gpu: gpu@3d00000 { + compatible =3D "qcom,adreno-730.1", "qcom,adreno"; + reg =3D <0x0 0x03d00000 0x0 0x40000>, + <0x0 0x03d9e000 0x0 0x1000>, + <0x0 0x03d61000 0x0 0x800>; + reg-names =3D "kgsl_3d0_reg_memory", + "cx_mem", + "cx_dbgc"; + + interrupts =3D ; + + iommus =3D <&adreno_smmu 0 0x400>, + <&adreno_smmu 1 0x400>; + + operating-points-v2 =3D <&gpu_opp_table>; + + qcom,gmu =3D <&gmu>; + + status =3D "disabled"; + + zap-shader { + memory-region =3D <&gpu_micro_code_mem>; + }; + + gpu_opp_table: opp-table { + compatible =3D "operating-points-v2"; + + opp-818000000 { + opp-hz =3D /bits/ 64 <818000000>; + opp-level =3D ; + }; + + opp-791000000 { + opp-hz =3D /bits/ 64 <791000000>; + opp-level =3D ; + }; + + opp-734000000 { + opp-hz =3D /bits/ 64 <734000000>; + opp-level =3D ; + }; + + opp-640000000 { + opp-hz =3D /bits/ 64 <640000000>; + opp-level =3D ; + }; + + opp-599000000 { + opp-hz =3D /bits/ 64 <599000000>; + opp-level =3D ; + }; + + opp-545000000 { + opp-hz =3D /bits/ 64 <545000000>; + opp-level =3D ; + }; + + opp-492000000 { + opp-hz =3D /bits/ 64 <492000000>; + opp-level =3D ; + }; + + opp-421000000 { + opp-hz =3D /bits/ 64 <421000000>; + opp-level =3D ; + }; + + opp-350000000 { + opp-hz =3D /bits/ 64 <350000000>; + opp-level =3D ; + }; + + opp-317000000 { + opp-hz =3D /bits/ 64 <317000000>; + opp-level =3D ; + }; + + opp-285000000 { + opp-hz =3D /bits/ 64 <285000000>; + opp-level =3D ; + }; + + opp-220000000 { + opp-hz =3D /bits/ 64 <220000000>; + opp-level =3D ; + }; + }; + }; + + gmu: gmu@3d6a000 { + compatible =3D "qcom,adreno-gmu-730.1", "qcom,adreno-gmu"; + reg =3D <0x0 0x03d6a000 0x0 0x35000>, + <0x0 0x03d50000 0x0 0x10000>, + <0x0 0x0b290000 0x0 0x10000>; + reg-names =3D "gmu", "rscc", "gmu_pdc"; + + interrupts =3D , + ; + interrupt-names =3D "hfi", "gmu"; + + clocks =3D <&gpucc GPU_CC_AHB_CLK>, + <&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_HUB_CX_INT_CLK>, + <&gpucc GPU_CC_DEMET_CLK>; + clock-names =3D "ahb", + "gmu", + "cxo", + "axi", + "memnoc", + "hub", + "demet"; + + power-domains =3D <&gpucc GPU_CX_GDSC>, + <&gpucc GPU_GX_GDSC>; + power-domain-names =3D "cx", + "gx"; + + iommus =3D <&adreno_smmu 5 0x400>; + + qcom,qmp =3D <&aoss_qmp>; + + operating-points-v2 =3D <&gmu_opp_table>; + + gmu_opp_table: opp-table { + compatible =3D "operating-points-v2"; + + opp-500000000 { + opp-hz =3D /bits/ 64 <500000000>; + opp-level =3D ; + }; + + opp-200000000 { + opp-hz =3D /bits/ 64 <200000000>; + opp-level =3D ; + }; + }; + }; + + gpucc: clock-controller@3d90000 { + compatible =3D "qcom,sm8450-gpucc"; + reg =3D <0x0 0x03d90000 0x0 0xa000>; + clocks =3D <&rpmhcc RPMH_CXO_CLK>, + <&gcc GCC_GPU_GPLL0_CLK_SRC>, + <&gcc GCC_GPU_GPLL0_DIV_CLK_SRC>; + #clock-cells =3D <1>; + #reset-cells =3D <1>; + #power-domain-cells =3D <1>; + }; + + adreno_smmu: iommu@3da0000 { + compatible =3D "qcom,sm8450-smmu-500", "qcom,adreno-smmu", + "qcom,smmu-500", "arm,mmu-500"; + reg =3D <0x0 0x03da0000 0x0 0x40000>; + #iommu-cells =3D <2>; + #global-interrupts =3D <1>; + interrupts =3D , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + clocks =3D <&gpucc GPU_CC_CX_GMU_CLK>, + <&gpucc GPU_CC_HUB_CX_INT_CLK>, + <&gpucc GPU_CC_HLOS1_VOTE_GPU_SMMU_CLK>, + <&gcc GCC_GPU_MEMNOC_GFX_CLK>, + <&gcc GCC_GPU_SNOC_DVM_GFX_CLK>, + <&gpucc GPU_CC_AHB_CLK>; + clock-names =3D "gmu", + "hub", + "hlos", + "bus", + "iface", + "ahb"; + power-domains =3D <&gpucc GPU_CX_GDSC>; + dma-coherent; + }; + usb_1_hsphy: phy@88e3000 { compatible =3D "qcom,sm8450-usb-hs-phy", "qcom,usb-snps-hs-7nm-phy"; --=20 2.43.0