Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp104100rbb; Fri, 23 Feb 2024 13:23:34 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV6mz0guRHLHToEX6n62eCqzbKHP65gI8CKefA8h9KhFCfOIYYIYI8aAYLxxzhza4ppwkoxCUZJvQMIL+9gppAQYGgm5zEk4u/g+BvY7Q== X-Google-Smtp-Source: AGHT+IHuD4v9iA7QNezHhQ4E4U5GdMPbHdtwXuc4cSZi7Z0MjhTW9TvqfJnrNbH/j1VZcAcyBcAS X-Received: by 2002:a1f:dd44:0:b0:4c9:7e57:a6ce with SMTP id u65-20020a1fdd44000000b004c97e57a6cemr1222425vkg.11.1708723414651; Fri, 23 Feb 2024 13:23:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708723414; cv=pass; d=google.com; s=arc-20160816; b=oD1+IFUsTRHFUw0rvJf1c2umenVSce6v+crb1Stby1anPu6ZDiaBuaK0dwYvtZprf3 lWNDrQU6zOQp6cnr2xXMtLtDaLVhMfxVvR91deu+OWwGGnvbGY2w9TO90PwzhD40DtXu LHtpQxVTHt/s3sRRnWA5+EDsmedvg5FyxqxQE5j4qPVVWgYLQ0kTiNDkr6t6MEwDYow1 CBT8+p/VDxcgU0RdIFWvlEUDtnJvva9f/uh0plTl9j+ett2heDTJveY1AJuAmJxrlxyR mZ3yYYpxDm8bPgDJZo7Sx0/jqHfU20qdD38t+fSvDqUxgowtP0LrvzjWj1CTTL9UOdwz kRGQ== 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=owKhM76CwHPxarxv0Z7L+zq4KR4DDb0PXsONEpcHO3I=; fh=YLXTMvueWXcSQmjb3Omc6dbX4QVJ8H8G+Gx6O35z9Ro=; b=lHuYNFV36QUYz5k7qSng/nx6qkV5nA9SWNH2HPNiKhabvtjUPFY/I0kwUU+i10Dmfr Swv+SCz64GQ/zDgzDF+Ukxak0QHpAO4g4Geu1ykRBhlZ3+k+UluJ0DhcUTaVi+Ey/hRY OgdLHf7RJP+2KfW0Zs+tUQM2YKMTH/OJiytSXTpqX/sHykXqtnMc4d4FoA5xdiLgBP6Q wD1KDJMIBdFzgUyF4bTfV/VfZCOILXMCeBPhKZJzgHji6UTgfik1YX7regRQ3alEhBY6 1FOwDSzoIW+v4LZCmCff+Lt4pyVWdirbcklxpDfujz106MYjMWd0ypnCIYAl6JYzAvMu 56sg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PXHGLlnv; 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-79202-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79202-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id r17-20020a056214125100b0068f2eed6059si16019383qvv.234.2024.02.23.13.23.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 13:23:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79202-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PXHGLlnv; 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-79202-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79202-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 5A8521C23C7E for ; Fri, 23 Feb 2024 21:23:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C8BA114EFE8; Fri, 23 Feb 2024 21:22:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="PXHGLlnv" Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) (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 B7D5414DFF0 for ; Fri, 23 Feb 2024 21:22:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708723324; cv=none; b=TIHgw3i7Y1FSjXZMJ7hlrONqPFGgmpYzPhLVEog7Y/V1GVt9EFaxmN/CKHn+tt0yPcdWWJwkLKEUBW0OZ68oFhufVPBaPuvKidd8HzLoqT+YEUiyGTB4z6MbEQWxsHsWcGpO3Uv07xy36O4FZLook3OWDlOiXOhsolivPkDbM2w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708723324; c=relaxed/simple; bh=AoSgDuu9pjteMsq9KiBmOosymRfNqx1ANKwVdseppF0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=PnHn+meXrTdRDxXQrCZkdSUjwhMr3gE4SnJ4rQq6QINM3nDZJNAu4YfoRW+lHinxcFi06yvfIL2IT/4xy3vm678I0Tmjsy4oPChEiD11nFU4gq5xtN4NjleGt8v7kOqGVzMbtd9rE3x3YR3ZN7mC95JNJX9Oke7ydVT1bzcROeQ= 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=PXHGLlnv; arc=none smtp.client-ip=209.85.218.52 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-ej1-f52.google.com with SMTP id a640c23a62f3a-a3f5808b0dfso177101266b.1 for ; Fri, 23 Feb 2024 13:22:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708723320; x=1709328120; 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=owKhM76CwHPxarxv0Z7L+zq4KR4DDb0PXsONEpcHO3I=; b=PXHGLlnvdbv1X8YeHEpt/oVTy5iQPXc3x2t5qyrdReXUCuGGunQpB3WT1LnM1vQ3YZ nVDyNT5Wv4ccnpr/1HGhV+LwjU+yyPTibCQ7dzP8IQtnxyLUR7CIyIGWXoVp47T9vJxY YwMtLM7qBJgk5prglcAqIIMb1/JYPyDdf6unKNEDQTi1Je/gztvqrSI3htisvS0Ic0qR cE/tSCs9cgM0bft0BWJ5vW6YaPG8SSTQWSxNay4UhkgsE7E6LJ9OHW8TiHqI9U8Bltn2 l7513EfS1an2U25quy2VBU+X8s4zxEYCGOyS0xf3QyVokCrnzaR/2+BYwqBBWoCjgcii IG3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708723320; x=1709328120; 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=owKhM76CwHPxarxv0Z7L+zq4KR4DDb0PXsONEpcHO3I=; b=ptsAopE05IlacgCPIboZcr9gOfoN+RHpr86GX0K+qM7a6Qr1n9LQ1m043FMGkjtaS0 uB1jUUKfG/Pge02TX3fI0O0JE6zok5/2NtjmPLlTOY9k5ILbU02DnNmzhIAGkNxkuaSe O6QC8OmKibmD5prnYbnrE7ffE3AYXAxvFHsnfqSQtGiE6XKgbAsKtKC8MDBbI8p7/Cc0 jKiMQkY+R1crwGbLmaA990YrXTL5PgsVs8pCQ3cmpYtkLAqivK3G9ZAOxre/98tmeuAu x89FsAqFOZsH9/0YoFzb1TCRiSaekqNorwm0SLmiMWrNWj3wZwb/Tu0zS4oGlduKQ9p9 HlIA== X-Forwarded-Encrypted: i=1; AJvYcCXWYFC++T0flrK+9tMIOtZdFq3Xfvxd8DlqsoLBYZDZv9JaFRaBH4sFfCIPy23KM3N6LOr82F5hk2a/DohG8fQnnaBouoYNr9QkKQCB X-Gm-Message-State: AOJu0Yx8Vwk5DnYlKUwCPMKDe91n9WkSQb7GRzGq1+YJ0DhOIG4oSNBh HV3HsOObjtTFuX/+XGQwtPGZvMUwHmrZ5FNLbYO9/B+NheNqy2ZSutbOTCfj4YI= X-Received: by 2002:a17:906:b2d1:b0:a3e:19cc:16a with SMTP id cf17-20020a170906b2d100b00a3e19cc016amr527297ejb.52.1708723320308; Fri, 23 Feb 2024 13:22:00 -0800 (PST) Received: from [10.167.154.1] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id mj8-20020a170906af8800b00a3ee9305b02sm4091226ejb.20.2024.02.23.13.21.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 13:21:59 -0800 (PST) From: Konrad Dybcio Date: Fri, 23 Feb 2024 22:21:42 +0100 Subject: [PATCH v2 6/7] 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: <20240219-topic-rb1_gpu-v2-6-2d3d6a0db040@linaro.org> References: <20240219-topic-rb1_gpu-v2-0-2d3d6a0db040@linaro.org> In-Reply-To: <20240219-topic-rb1_gpu-v2-0-2d3d6a0db040@linaro.org> To: Will Deacon , Robin Murphy , Joerg Roedel , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , David Airlie , Daniel Vetter Cc: Marijn Suijten , linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1708723303; l=5480; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=AoSgDuu9pjteMsq9KiBmOosymRfNqx1ANKwVdseppF0=; b=rP3BbPYu9Lk0i4cMD3ouuvpURtk1wBNHdPNoJxFyAalf/lctsjCLsdDya1DgWkHJfUmqVqpW6 23HA+QF3miCALjkE2YfHcWwJaJdRYegaMRt4WOov53lOqIB1trfz9gN 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 89beac833d43..ec5aef5d9c69 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 @@ -737,6 +738,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 { @@ -1383,6 +1389,154 @@ usb_dwc3: usb@4e00000 { }; }; + 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.43.2