Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp312276lqt; Thu, 6 Jun 2024 04:37:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXEKWgqpUP7ceX2c3RPF2TPeX9TJ4nAl34ZfH7BWLGBKf67Cnl4J+FGo92pRp8DRmwoU/urdCXDURhID/j5wuGoHt2D5TcQeAugoN0dAw== X-Google-Smtp-Source: AGHT+IHKgWLwWwhudvuAuaxaAPa6FvSy+kExIsK1w9PLgv4sLC42bTujL5ZoihZsQu0TpxXI6Gmu X-Received: by 2002:a92:ca0b:0:b0:374:9c67:1de3 with SMTP id e9e14a558f8ab-374b1f58191mr53303695ab.23.1717673833506; Thu, 06 Jun 2024 04:37:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717673833; cv=pass; d=google.com; s=arc-20160816; b=Bp8Jt3OkzI/hD+2R0ZNUTSrJu19FJ5q3kzWH2HCnekBkw9Dg8aEc1okV1RidCdKG4B ABEAkLSwvFTvufo1n8yLrEdNPRbc1pJandAiF75mpuIPpm8OZKu1d3OJ9xH6IeOF5y0f M6JfHMbCTlhaUbKxsBbsRLPWH1BiFsAazFEszexJTmgmLQ0+MZmTdVIsvuKuSTb/7A1G UOqwzeZrOfXxo97nKeAZ7FhKgOWBRyaEZ/ik7spAPEFfpLAl9fbzgbqcLyJ7xUCJO2hG 3BIdR9pksx1m1QSySsBOyufvLjC6/l2VraSPWNfOREfHWHHBxxjSVPUiH1nDJrRuQ6xB jvng== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=4AALcZ2Ku6h2Uz9lkb57i7tD7jzgv1De3ydwjkcYX8M=; fh=WUmPbHCXoIzp8HjFF+sZbozWGevfN3GjQnNl3P8TEOg=; b=ay8SLXNfrcTYbIkyV6lEHNSH6GGrf3+TKnez58G+6c9iSzQnpB0fIP9Mn5v0Ew058x l1KVgEzYWC6VsnRRYmAL1PXo9iR46tRo4wgYia9CCrnxtMhHQ0viIyhL5YdllWu0B+xl qenI0lEmPwiKBIG6B1vQHSh6WqjkoFSf7OmzOX+lcNbK+Znuy0E88E/UawI+1YgsUd1t 1vOYBepKTDlYQHli5b/X1jRpRm0v15Xe2vf3+oshNIbrsPOlOvU0G2J2qXYWOeTF5w3O 7QpyLyiuph4y70xiZLbQ/kUsS3Weq6PcESMY1ZDGIVPq1+rJw8HdtvZJqhwM+BNZfppK DS5w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zpcJ5utk; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-204184-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204184-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6de294fa768si1019542a12.705.2024.06.06.04.37.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 04:37:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-204184-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zpcJ5utk; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-204184-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204184-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id AD9CA286F44 for ; Thu, 6 Jun 2024 11:36:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9D748195F12; Thu, 6 Jun 2024 11:36:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="zpcJ5utk" Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com [209.85.167.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A3B7C195B06 for ; Thu, 6 Jun 2024 11:36:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717673773; cv=none; b=iB+m29m965TipW3mVoE8yvyfLEe+zqgQ73RMYE2OK40KXDLh0ozPrX0VSpU75JqX/srw9DB9Mtt72o6wMti+WC+z3NEPj2oSjRLMxwP8tMIwk2Jd83NIELiVX3y6yjmpaPIhuJb2ByuCkzsNqCIc7N7GcE5PTV25AsFJZ3qtn28= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717673773; c=relaxed/simple; bh=oEkR0OJ7HbU+SvpCsJqIooT/mtFwOiyIxsWq7bfXgKs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=CvQSS6e6Y5OTaOIJ4ZHUz6qbRSNCNB/mCmOW477L20LpF08JcWZrgCn50yLaiPKfRMllelwHmOENZ5w4VHfGLSV8fDvNIplO4ecjMxDNzQ+ANhjbjNPjq/6yu/Bl09C25xgr96336H1HHNfzdVr1DnRBqMWKMephmzAIv9g29nQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=zpcJ5utk; arc=none smtp.client-ip=209.85.167.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f46.google.com with SMTP id 2adb3069b0e04-52b98fb5c32so1366426e87.1 for ; Thu, 06 Jun 2024 04:36:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717673770; x=1718278570; 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=4AALcZ2Ku6h2Uz9lkb57i7tD7jzgv1De3ydwjkcYX8M=; b=zpcJ5utk5r36O3d0qv9SMNR/ZqMEruWMG4M81ER4p8YJ9RsibyTU5l97QHSfGFI2Sy x+x41qxLphSkE5S6TNCbnXnM1Op5FGS1goRRvzxMgLNkSZCKbwqgGP+3/CcqwzogYe5q XkXOdHPkdeTMiw33g5c/2BH409m9AfMDH/hhKwZwQt0yRcT5O16up3+Ll3SfPRrwJfmN 7iXwzGGzcMSCewf7IsZgrsY3gBF3LL3KxxvNBpKjBHuWH9UkuLtHAwDAIzDKMiqa39jn cwITL1v3GO4yfAqgBLrHw3wqCbt94Cx+1uG8cwVcCkSuNEow6IYkaKUeTLKl1qJLoQPz AceA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717673770; x=1718278570; 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=4AALcZ2Ku6h2Uz9lkb57i7tD7jzgv1De3ydwjkcYX8M=; b=tP+Q3ljAHAUrfO7HWXvPy2K4xnnJdj83RUhpq2NmqzizO4BC6LE4iQ911VQ6Y0PzOj gQb7tgjZGlG6neyehO85hKVo2r9tQ+V0scunEcC9O7KSFPi4AU4IzUSehi2nGwSVfPXY kE3bTb+YqN1Q2TenfV+Ba6tT8DxGV1Lc0K6WPB8L6gqfJOLinCb4hg5GSz7Mm0EznObV G3sUY5xLFACKQORJ0VgvUNy8H39o7UuRieoCqoon5AuEgLdODAUqjNT0tQ6kH/BmxSqN qOIWzFM+PObtxnHDYsb51EzpVQhFXEhtpZo9aMSdufcqzMHtP9sGL96q6vtMFtr3XqUX Ob4w== X-Forwarded-Encrypted: i=1; AJvYcCUHSzPExjBzmCqIGz3qwtQUwYW5KuzcL1aKUXX8nbIWG+reTbl8qpxJhHivGz+ylV1jntlN5xK9QsLcJ8oebPck1BQNTp3U8BMD70CV X-Gm-Message-State: AOJu0Yyjsg0EHQZR1wC+g2GBxjwqkXkkmwIUvJLf8wvuIR7KkjC23ZdB HfKKzggI34ewfaN63FkD6HNZ0s8haBuxVml0kr4sg+cxYHCNnVhZ6ILj1YKBSs0= X-Received: by 2002:a05:6512:3b8d:b0:52b:9a53:83d1 with SMTP id 2adb3069b0e04-52bab50b1b6mr4278918e87.56.1717673769744; Thu, 06 Jun 2024 04:36:09 -0700 (PDT) Received: from [192.168.128.139] (078088045245.garwolin.vectranet.pl. [78.88.45.245]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6c80581c05sm84014866b.7.2024.06.06.04.36.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 04:36:09 -0700 (PDT) From: Konrad Dybcio Date: Thu, 06 Jun 2024 13:36:03 +0200 Subject: [PATCH v4 4/5] arm64: dts: qcom: qcm2290: Add GPU nodes Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240606-topic-rb1_gpu-v4-4-4bc0c19da4af@linaro.org> References: <20240606-topic-rb1_gpu-v4-0-4bc0c19da4af@linaro.org> In-Reply-To: <20240606-topic-rb1_gpu-v4-0-4bc0c19da4af@linaro.org> To: Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Krzysztof Kozlowski Cc: Marijn Suijten , Konrad Dybcio , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio , Dmitry Baryshkov X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1717673761; l=5480; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=oEkR0OJ7HbU+SvpCsJqIooT/mtFwOiyIxsWq7bfXgKs=; b=Dwt92DIyZ+6++wATwwrQLT9y8Jtb0EcswLGK71pRAvbovJuiXi+ACqvOGzli4GzR0Si9gIexN lpGxe+0K2EHAM5OKTBTRF82Vt2wCzcqeEHKeqiC8ilvAMz2d5rz8bFt X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= Describe the GPU hardware on the QCM2290. Reviewed-by: Dmitry Baryshkov Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/qcm2290.dtsi | 154 ++++++++++++++++++++++++++++++++++ 1 file changed, 154 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qcm2290.dtsi b/arch/arm64/boot/dts/qcom/qcm2290.dtsi index 106110a9f551..99d98afb1b2c 100644 --- a/arch/arm64/boot/dts/qcom/qcm2290.dtsi +++ b/arch/arm64/boot/dts/qcom/qcm2290.dtsi @@ -7,6 +7,7 @@ #include #include +#include #include #include #include @@ -758,6 +759,11 @@ qusb2_hstx_trim: hstx-trim@25b { reg = <0x25b 0x1>; bits = <1 4>; }; + + gpu_speed_bin: gpu-speed-bin@2006 { + reg = <0x2006 0x2>; + bits = <5 8>; + }; }; pmu@1b8e300 { @@ -1425,6 +1431,154 @@ usb_dwc3_ss: endpoint { }; }; + gpu: gpu@5900000 { + compatible = "qcom,adreno-07000200", "qcom,adreno"; + reg = <0x0 0x05900000 0x0 0x40000>; + reg-names = "kgsl_3d0_reg_memory"; + + interrupts = ; + + clocks = <&gpucc GPU_CC_GX_GFX3D_CLK>, + <&gpucc GPU_CC_AHB_CLK>, + <&gcc GCC_BIMC_GPU_AXI_CLK>, + <&gcc GCC_GPU_MEMNOC_GFX_CLK>, + <&gpucc GPU_CC_CX_GMU_CLK>, + <&gpucc GPU_CC_CXO_CLK>; + clock-names = "core", + "iface", + "mem_iface", + "alt_mem_iface", + "gmu", + "xo"; + + interconnects = <&bimc MASTER_GFX3D RPM_ALWAYS_TAG + &bimc SLAVE_EBI1 RPM_ALWAYS_TAG>; + interconnect-names = "gfx-mem"; + + iommus = <&adreno_smmu 0 1>, + <&adreno_smmu 2 0>; + operating-points-v2 = <&gpu_opp_table>; + power-domains = <&rpmpd QCM2290_VDDCX>; + qcom,gmu = <&gmu_wrapper>; + + nvmem-cells = <&gpu_speed_bin>; + nvmem-cell-names = "speed_bin"; + #cooling-cells = <2>; + + status = "disabled"; + + zap-shader { + memory-region = <&pil_gpu_mem>; + }; + + gpu_opp_table: opp-table { + compatible = "operating-points-v2"; + + /* TODO: Scale RPM_SMD_BIMC_GPU_CLK w/ turbo freqs */ + opp-1123200000 { + opp-hz = /bits/ 64 <1123200000>; + required-opps = <&rpmpd_opp_turbo_plus>; + opp-peak-kBps = <6881000>; + opp-supported-hw = <0x3>; + turbo-mode; + }; + + opp-1017600000 { + opp-hz = /bits/ 64 <1017600000>; + required-opps = <&rpmpd_opp_turbo>; + opp-peak-kBps = <6881000>; + opp-supported-hw = <0x3>; + turbo-mode; + }; + + opp-921600000 { + opp-hz = /bits/ 64 <921600000>; + required-opps = <&rpmpd_opp_nom_plus>; + opp-peak-kBps = <6881000>; + opp-supported-hw = <0x3>; + }; + + opp-844800000 { + opp-hz = /bits/ 64 <844800000>; + required-opps = <&rpmpd_opp_nom>; + opp-peak-kBps = <6881000>; + opp-supported-hw = <0x7>; + }; + + opp-672000000 { + opp-hz = /bits/ 64 <672000000>; + required-opps = <&rpmpd_opp_svs_plus>; + opp-peak-kBps = <3879000>; + opp-supported-hw = <0xf>; + }; + + opp-537600000 { + opp-hz = /bits/ 64 <537600000>; + required-opps = <&rpmpd_opp_svs>; + opp-peak-kBps = <2929000>; + opp-supported-hw = <0xf>; + }; + + opp-355200000 { + opp-hz = /bits/ 64 <355200000>; + required-opps = <&rpmpd_opp_low_svs>; + opp-peak-kBps = <1720000>; + opp-supported-hw = <0xf>; + }; + }; + }; + + gmu_wrapper: gmu@596a000 { + compatible = "qcom,adreno-gmu-wrapper"; + reg = <0x0 0x0596a000 0x0 0x30000>; + reg-names = "gmu"; + power-domains = <&gpucc GPU_CX_GDSC>, + <&gpucc GPU_GX_GDSC>; + power-domain-names = "cx", + "gx"; + }; + + gpucc: clock-controller@5990000 { + compatible = "qcom,qcm2290-gpucc"; + reg = <0x0 0x05990000 0x0 0x9000>; + clocks = <&gcc GCC_GPU_CFG_AHB_CLK>, + <&rpmcc RPM_SMD_XO_CLK_SRC>, + <&gcc GCC_GPU_GPLL0_CLK_SRC>, + <&gcc GCC_GPU_GPLL0_DIV_CLK_SRC>; + power-domains = <&rpmpd QCM2290_VDDCX>; + required-opps = <&rpmpd_opp_low_svs>; + #clock-cells = <1>; + #reset-cells = <1>; + #power-domain-cells = <1>; + }; + + adreno_smmu: iommu@59a0000 { + compatible = "qcom,qcm2290-smmu-500", "qcom,adreno-smmu", + "qcom,smmu-500", "arm,mmu-500"; + reg = <0x0 0x059a0000 0x0 0x10000>; + interrupts = , + , + , + , + , + , + , + , + ; + + clocks = <&gcc GCC_GPU_MEMNOC_GFX_CLK>, + <&gpucc GPU_CC_HLOS1_VOTE_GPU_SMMU_CLK>, + <&gcc GCC_GPU_SNOC_DVM_GFX_CLK>; + clock-names = "mem", + "hlos", + "iface"; + + power-domains = <&gpucc GPU_CX_GDSC>; + + #global-interrupts = <1>; + #iommu-cells = <2>; + }; + mdss: display-subsystem@5e00000 { compatible = "qcom,qcm2290-mdss"; reg = <0x0 0x05e00000 0x0 0x1000>; -- 2.45.2