From patchwork Mon Feb 12 10:37:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 199643 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp2346794dyd; Mon, 12 Feb 2024 02:39:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IHS/D8HVPYQsmAn2FIODcTwQFOwJ1VpV/QIMjEz19aGsjcLBnu8fHoF5jb8M2mRCMahw9VR X-Received: by 2002:a17:906:fc06:b0:a3c:3299:9a9f with SMTP id ov6-20020a170906fc0600b00a3c32999a9fmr4668752ejb.13.1707734359143; Mon, 12 Feb 2024 02:39:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707734359; cv=pass; d=google.com; s=arc-20160816; b=qYlpSfCgy1KlizUvCmhpPo5GB9/dZGbv8BFzMYOuZIJzkCyQXPedUcs1LaOicQKgsS 4hTjiQRobnbs3MAOa8TWil0bviuKnSIAqN9O7+zDlJ0RSJe5i1tTo4/CMszbt0NNQ/ti NKbsR6G6qWWaDGw3JLfto2aMKO7TlOiVgUhjx/A4NBOxHhgMnjWkCu2oqnYaOAsg6nAo lLQyEGERXAjSBFHQOXevgjs5lnEyz7M8bppaPNFFg38l/F5sq+4eUaw0Thl0hjoZzzxS jYlIUcUFzVAaCoyJi11bEG1oLk6oZPxy8mNjZ1c0yQlfBRE9g6aok8eCDlvfa4N9uoYg dXgA== 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=1BvdEXroOBmE71hlHUMyNUGGBnmMbDfsjcjkOq7OOqQ=; fh=fOWD0HWJ4u0K2mouGc7VwwzuL9mAXFla3OJua5klI0Q=; b=T6TgvU/8j32z0/jmFz0UV8wsea3DDih9SqvNQPapCkl7XD6St/jNJaRU3heyacLTHb pOVhunWYIRozpkiKkaEH6jhJjnuSMotNpUnIM8czMMeoeQ89SiPY6pCoxlRZm2OJRR4E ZdkxYwYeODHvjoXbllRLNUctlYnL5eRsbB6lGnbi4tmsTapVbRUJ+1+omFhs7WwdK89R JTH6d7KF7gVDJVrDye4B5Cf3z/1Iahh4nFdo/+LvmExWqbIonXV0BLKbXQvYFhZ1Ey0P dD9MRrcWCwvVBzZ2UypuM8ZdFgyLMkm4o2BAtrnd1lobJ1YysxbSnDhV+EnIFTF1sU8d Rsyg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ECmKadgi; 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-61331-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61331-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=2; AJvYcCUXPXFL7L4eC8VP/CtRjmAqfRO4H13WMP2iYI4tx+5CtRQqn7zLUmEYuGHmcYDdxBa/hSwVUQt0EKSWma4F6TUD057JqA== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id r14-20020a170906c28e00b00a3be888b834si56676ejz.620.2024.02.12.02.39.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 02:39:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-61331-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ECmKadgi; 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-61331-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61331-ouuuleilei=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 am.mirrors.kernel.org (Postfix) with ESMTPS id 9470E1F222F6 for ; Mon, 12 Feb 2024 10:39:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BFCAE3A1A0; Mon, 12 Feb 2024 10:37:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ECmKadgi" Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) (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 481CB38DE3 for ; Mon, 12 Feb 2024 10:37:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707734263; cv=none; b=o1011gGsUzSGT/2PeJM/cCZLcS5gXV1sAVUqY08NPp0xgWGCJ68/JPQzD2UqOytIbv0ewCXVhPNQb1eDFVnH5JZHfXhGFjOS8eTtyTSP5JexJ+GcZORermzQBX8tljr6AVOLlo+hVxJCqRhic9gqjaAvmrwT0rewOaIUXCQkQ1k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707734263; c=relaxed/simple; bh=xyLfZPXlw/IodCwjvhXZT5/vJzFVRw7x6bUaOPy/kvc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=EB6Vd+fYLCs5eV/lcIbeYUhH6NgX3uidVvJlEPdBsesuHgveYzlo/ZAq+XHWaGLrGl0Qt1aTEbSwMK8FnCayULKOep3sx6Bbu77zGMGJOGy/62abodkCGQHGvmAxtewW/LuT/rsqMqxhEMw2PRGPVbBLrtilgD22DA3M/VPfzNI= 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=ECmKadgi; arc=none smtp.client-ip=209.85.221.44 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-wr1-f44.google.com with SMTP id ffacd0b85a97d-339289fead2so1950560f8f.3 for ; Mon, 12 Feb 2024 02:37:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707734259; x=1708339059; 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=1BvdEXroOBmE71hlHUMyNUGGBnmMbDfsjcjkOq7OOqQ=; b=ECmKadgiHg0C2oP5TwTNfu+G96n/KSE6P+vOSDZXXhion9HOUw98AF3Og6NBLpn6YB g23YOOy3qvWGlxS6n2rN6sNp3PZfJlfbUUvMwR8RKH9KijpJ2SVZjVPwTfHMINJ0sZTd xIAXWcIeCrvc/SsqHhwZDmpyWy60CrORGdO5rAnmjCwDOLWuJi+AKRFIUko2tSBMm2d5 0OuFOGTFLeerHRpBYp1mIQWL0TsTlRtcxrtwKljjSL1W7k3TB+qdaXRDxzXpCTkslXB2 JXQ36H/BKyZuJ2OvyAFAa32MvfdHf7HteBXvtGh7ygXsjxnzzbB2Wp6UZ5nz9/kLXXIa LRBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707734259; x=1708339059; 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=1BvdEXroOBmE71hlHUMyNUGGBnmMbDfsjcjkOq7OOqQ=; b=gJvxBvt7Tc7EjPIRXf3ToBBRHrPkjUFN6DpEEr9S+HfaBqcNTwvfqRVLOjS50Op6fo te8mWxqNMKvn0oXG9fY0S7ae4/4lzK13RZjVTYTzoP3Iq2cW3cZl3iMhfS/e+kejv4Kg B7zJorGbuQ7s0Jkgg5GjddfdXogxWNe7C1OooggAr5TfhXM+ySWNMP5D9llubcbgd4Vz nvEv+ww3rbrsCTgGYcFxHzT3tyiPI4rms5gmuMRhLu7qxSQCDCjSd6bnxWhoXmQraARO fDbuhB9ZG8McBchOHNo91Iw3H+ctuYITdZ5VcbTpj0/81f954XL7HYkVISmI+7r2Y8W5 P0ww== X-Gm-Message-State: AOJu0Yw7i1C93leojrXysjDqRcsFWrv9uGftBf2In1soR984s7qXnFPf kdfDoJ9Ddf0aIjKzjFK3ZUdsFAX73ZT2zXi8MU2CilXfSXi0ygtTGMuTfw0RvEU= X-Received: by 2002:a05:6000:4025:b0:33b:28d5:f770 with SMTP id cp37-20020a056000402500b0033b28d5f770mr5113608wrb.62.1707734259567; Mon, 12 Feb 2024 02:37:39 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCW2ZmLneLBjlDo+rlG+ZbhlhBvLN4FRtZOw3MfS84bGnogqJd7JqkgV3gp07tSOIfluVHCdA7axgCFvXbistoOkbXhGHzuOSjBcakXRj1DAJw9y6GCsic0dHK3RJTKYbKKNte1XywzNhZjgmeb3gT2GmjsPy+C+KgzEJbCPT0fXZ7/KXBdM0UyeMFGmRvdIADx+/hJ8yFGlP1FZsKerGMShAyhAz0RoHUP12lDJ02wiYp9Poaj1PBsb/v6YNI6y3PfMFkKXTrdSINsQ2fzWJR/bZq2ShEnzWBypcSKNo5OOabBYMCzIe38Sk/lINmZgPFPi+MwlP1neGE/Ozb0i7l40Yxx16nUdjH3PMzMk0pqYi+dZXmzCi9sZhWLx7GlrtWePXnFGhBxDC3llTAMb/AvmNyd0aJJro2x1bEnnzC5ZJv7DGloEAlMYP+42Q5LGUUxZJNSKAK4WtXawAkGiwY4bvHpC8CACaSnL1pws0+3d2f/Ot5l4GixtJmL821JnHdyejWHw0/p+GGeK2/AiVXx6feHLu2Eqc9j1UkpAxnwx6bfbfmS8xuJYnmL7YG1lzr4MWMqPm9eiSm4Px5wUMIWWM6Gzqt3WGjnX+3B+Flm6J+0c4l77rkSN+DqUJ9izPDrmmy40YK4nbIYbb1GoJRrGKlTBgXjXOq2kGJw8+noKrYvcrj/nf5Yz5DwtCGQTf8Pyv1Tw02pTKKyUix1m+O/g4tOaM23X6lTsXPC/MGnYMlwda6EloRY0xzkJq/xSEFChJjeJ9NebyKSRu2wWHmlET6BHMPkRvhgnodByl/wf7ZLIOYRp4GEIBL4K1hWnPMyt2mU6GC9OIF2/B5X1HgP8D3YBYdvHoPwpJHM= Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:8261:5fff:fe11:bdda]) by smtp.gmail.com with ESMTPSA id f14-20020a056000128e00b0033b50e0d493sm6404188wrx.59.2024.02.12.02.37.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 02:37:39 -0800 (PST) From: Neil Armstrong Date: Mon, 12 Feb 2024 11:37:33 +0100 Subject: [PATCH 4/5] arm64: dts: qcom: sm8650: add GPU nodes Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240212-topic-sm8650-gpu-v1-4-708a40b747b5@linaro.org> References: <20240212-topic-sm8650-gpu-v1-0-708a40b747b5@linaro.org> In-Reply-To: <20240212-topic-sm8650-gpu-v1-0-708a40b747b5@linaro.org> To: Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , Marijn Suijten , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Will Deacon , Robin Murphy , Joerg Roedel , Bjorn Andersson , Konrad Dybcio 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, linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev, Neil Armstrong X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=5837; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=xyLfZPXlw/IodCwjvhXZT5/vJzFVRw7x6bUaOPy/kvc=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBlyfTsVjlUR/LavyXAbdKIkDAS5j/8E5y9K16t90IE 7hV+hQOJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZcn07AAKCRB33NvayMhJ0RAlD/ 9/IP05s3JfcrM/CjbBletyHpeqNlq174CFea6E9cVqSSUpiMdrUl/Z9v6V/lB+b/q52e0KwVuKDQn1 WPTe7y8xUYGz08k7fbxaCYO+UeMTogkUdu2bY4ECPZTw0Iv/0jfgSFFfdwv07j/8fpZMOe31AQZm8g Gr7Uhz/YGrRPFe36xZtBs6Cu2pvdOt9d1tFx5Moeic/J36jhBtE2i5OIcsnsFGr8ZwruIWhRNet1NS 1ON/ucyT4t2J9LYEK5Dfxb0Cb1UX5p59M+DLN5yWXrht7ZjWiPccd62jFp84n9UBVGQEUAVs6Xrilq ZKbAo+AHhEkuK+weFBrOzEFIrpIt/07sG6FpVfLXK/pyi7w7BqLragD4Y8lENANXDbrWpwoMuVglma iv2DK+d+xQ/kqMariHMxr2+i2JIbPEF8L9Bwj5SdPkpTysvS4JEYRpWlKCIStHASr7rrzehqeLbrGj +gCwWh5xvLrMXZxgcHFX4XbuMPaCM27YOFBe43+n8aLJPS6293w7Y0QaBmg/Ba40eTW5HQqFSOnGp+ TFH7n8Ua6Cj2f7he57hpF69sEpLa7wBXJ5VSMZuoPyxkTBqjlxIYEJ+V1LAYyfYr9feyQQZ/77l03U XYoul5gRKo0f95FgBJrFvnQuZL8YZmSd8cSAhxdXA2P1b4S0kkin7njFnC3w== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790689263519553753 X-GMAIL-MSGID: 1790689263519553753 Add GPU nodes for the SM8650 platform. Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/qcom/sm8650.dtsi | 169 +++++++++++++++++++++++++++++++++++ 1 file changed, 169 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8650.dtsi b/arch/arm64/boot/dts/qcom/sm8650.dtsi index c455ca4e6475..f6f9e603fb2f 100644 --- a/arch/arm64/boot/dts/qcom/sm8650.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8650.dtsi @@ -2582,6 +2582,131 @@ tcsr: clock-controller@1fc0000 { #reset-cells = <1>; }; + gpu: gpu@3d00000 { + compatible = "qcom,adreno-43051401", "qcom,adreno"; + reg = <0x0 0x03d00000 0x0 0x40000>, + <0x0 0x03d9e000 0x0 0x1000>, + <0x0 0x03d61000 0x0 0x800>; + reg-names = "kgsl_3d0_reg_memory", + "cx_mem", + "cx_dbgc"; + + interrupts = ; + + iommus = <&adreno_smmu 0 0x0>, + <&adreno_smmu 1 0x0>; + + operating-points-v2 = <&gpu_opp_table>; + + interconnects = <&gem_noc MASTER_GFX3D 0 &mc_virt SLAVE_EBI1 0>; + interconnect-names = "gfx-mem"; + + qcom,gmu = <&gmu>; + + status = "disabled"; + + zap-shader { + memory-region = <&gpu_micro_code_mem>; + }; + + /* Speedbin needs more work on A740+, keep only lower freqs */ + gpu_opp_table: opp-table { + compatible = "operating-points-v2"; + + opp-680000000 { + opp-hz = /bits/ 64 <680000000>; + opp-level = ; + }; + + opp-629000000 { + opp-hz = /bits/ 64 <629000000>; + opp-level = ; + }; + + opp-578000000 { + opp-hz = /bits/ 64 <578000000>; + opp-level = ; + }; + + opp-500000000 { + opp-hz = /bits/ 64 <500000000>; + opp-level = ; + }; + + opp-422000000 { + opp-hz = /bits/ 64 <422000000>; + opp-level = ; + }; + + opp-366000000 { + opp-hz = /bits/ 64 <366000000>; + opp-level = ; + }; + + opp-310000000 { + opp-hz = /bits/ 64 <310000000>; + opp-level = ; + }; + + opp-231000000 { + opp-hz = /bits/ 64 <231000000>; + opp-level = ; + }; + }; + }; + + gmu: gmu@3d6a000 { + compatible = "qcom,adreno-gmu-750.1", "qcom,adreno-gmu"; + reg = <0x0 0x03d6a000 0x0 0x35000>, + <0x0 0x03d50000 0x0 0x10000>, + <0x0 0x0b280000 0x0 0x10000>; + reg-names = "gmu", "rscc", "gmu_pdc"; + + interrupts = , + ; + interrupt-names = "hfi", "gmu"; + + clocks = <&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 = "ahb", + "gmu", + "cxo", + "axi", + "memnoc", + "hub", + "demet"; + + power-domains = <&gpucc GPU_CX_GDSC>, + <&gpucc GPU_GX_GDSC>; + power-domain-names = "cx", + "gx"; + + iommus = <&adreno_smmu 5 0x0>; + + qcom,qmp = <&aoss_qmp>; + + operating-points-v2 = <&gmu_opp_table>; + + gmu_opp_table: opp-table { + compatible = "operating-points-v2"; + + opp-625000000 { + opp-hz = /bits/ 64 <625000000>; + opp-level = ; + }; + + opp-260000000 { + opp-hz = /bits/ 64 <260000000>; + opp-level = ; + }; + }; + }; + gpucc: clock-controller@3d90000 { compatible = "qcom,sm8650-gpucc"; reg = <0 0x03d90000 0 0xa000>; @@ -2595,6 +2720,50 @@ gpucc: clock-controller@3d90000 { #power-domain-cells = <1>; }; + adreno_smmu: iommu@3da0000 { + compatible = "qcom,sm8650-smmu-500", "qcom,adreno-smmu", + "qcom,smmu-500", "arm,mmu-500"; + reg = <0x0 0x03da0000 0x0 0x40000>; + #iommu-cells = <2>; + #global-interrupts = <1>; + interrupts = , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + clocks = <&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 = "hlos", + "bus", + "iface", + "ahb"; + power-domains = <&gpucc GPU_CX_GDSC>; + dma-coherent; + }; + ipa: ipa@3f40000 { compatible = "qcom,sm8650-ipa", "qcom,sm8550-ipa";