From patchwork Tue Aug 6 21:44:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Acayan X-Patchwork-Id: 13755354 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EEB1DC52D70 for ; Tue, 6 Aug 2024 21:45:19 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4124B10E416; Tue, 6 Aug 2024 21:45:16 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="IRHA8mmp"; dkim-atps=neutral Received: from mail-ua1-f49.google.com (mail-ua1-f49.google.com [209.85.222.49]) by gabe.freedesktop.org (Postfix) with ESMTPS id 49AD110E32A; Tue, 6 Aug 2024 21:45:07 +0000 (UTC) Received: by mail-ua1-f49.google.com with SMTP id a1e0cc1a2514c-8318b4d9539so344222241.2; Tue, 06 Aug 2024 14:45:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722980706; x=1723585506; darn=lists.freedesktop.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ExF0I54rVQ6tXCiWTPMayTxL+v0amgllwXMPlStcwYw=; b=IRHA8mmphfBAPRa8u+qrigPPJWmLpFqTvLV2QAIecQF7sXGaUqcWnoHke9Wukzz6rS HYvd++rVXiuAvn3Fj1MU8cpVGI7+7vdcZnFSCAZxmrexJStBYJTaS8uxJKW7WKs/FJBr roX2v3K3qoUfIIt05UizUBbSVOxvnTaAw2p1/Z2Z0WFHZ9WR6E/fWWP1n+98uKjfN4SQ lPtIGw2WOR5lcqYGcXYkjpGRuaN6haWIUqwz0Tql8pK0HfP+JbRzaULK92tSJ38lBHKQ x6lh9mSQuA89dj/5ofIwJ0NvCsc7VNbB4JjiZlvy13dUf7mznjNAC9yeKa0l+FwanrIw flDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722980706; x=1723585506; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ExF0I54rVQ6tXCiWTPMayTxL+v0amgllwXMPlStcwYw=; b=jNmANlupkeRiKolLNZDgCh4wjiTyv6rAWTz19w2z3fIItHXnvucsEsF0oc191h9tWv 1XV9r3+cM4LW9JRU1pjK6dbkgnQGmvVAVwqa4kwCgpKfiI59LV69g3jeZk3GgKsV1knP yLnmgDqQRfbD4YXV0d3x/04IGB8dOPA11HgY9bfYWb5KUaLr+yHCL0R00DFlJGgZZDFF FIfbALYxo9Fa3MNpVN9B8WPGLitPgNt9zuCP4qp45DUBr+Z28jDuq/lzjU18NOG8ItWx nF42r3gnpbS5xWk7unQCIDv34JHaDAu/im24hJjUAd8jJZnkj9r1NxxGLr5ivlkiwF1J IRRQ== X-Forwarded-Encrypted: i=1; AJvYcCUF0mFDFy5wdH+nMxVLmEovuC5GUVrtGywtjHGI3vLv7S+2xtakKQ2oKNVgBs6sGioebj3YhJz6eZc3hlG6RFkxPrKWoUOIkuLFTnDY9zygIo20Ts14GJr3CrwXdejGjjY57IYYhm8pi3w6aunrMOqe X-Gm-Message-State: AOJu0Yxa6bc7OoGSv9KXeuc/jNl2N+B01t6IxL1BZUQ7XcGQQh2Jnx6Q 17u305QEU5nroTigCHRnD5/sUU+jbPT3HOn3qMb3nPLug3vNapWK X-Google-Smtp-Source: AGHT+IGQSk4H+ekGkXPzhj2MglCcmJb8GS9D3JN1uOWjcxRZMa6l9FsPbXeBM6xvTE4w9nbmcmuNHQ== X-Received: by 2002:a05:6102:4194:b0:492:a883:e1d with SMTP id ada2fe7eead31-4945bde70cemr21425272137.11.1722980705727; Tue, 06 Aug 2024 14:45:05 -0700 (PDT) Received: from localhost ([2607:fea8:52a3:d200:324c:b818:b179:79b]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6bb9c7b64b3sm50474396d6.59.2024.08.06.14.45.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Aug 2024 14:45:05 -0700 (PDT) From: Richard Acayan To: Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , Marijn Suijten , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Richard Acayan Subject: [PATCH v2 1/4] dt-bindings: display/msm/gmu: Add SDM670 compatible Date: Tue, 6 Aug 2024 17:44:55 -0400 Message-ID: <20240806214452.16406-8-mailingradian@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240806214452.16406-7-mailingradian@gmail.com> References: <20240806214452.16406-7-mailingradian@gmail.com> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The Snapdragon 670 has a GMU. Add its compatible. Signed-off-by: Richard Acayan Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/display/msm/gmu.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/display/msm/gmu.yaml b/Documentation/devicetree/bindings/display/msm/gmu.yaml index b1bd372996d5..1c055ba64038 100644 --- a/Documentation/devicetree/bindings/display/msm/gmu.yaml +++ b/Documentation/devicetree/bindings/display/msm/gmu.yaml @@ -91,6 +91,7 @@ allOf: compatible: contains: enum: + - qcom,adreno-gmu-615.0 - qcom,adreno-gmu-618.0 - qcom,adreno-gmu-630.2 then: From patchwork Tue Aug 6 21:44:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Acayan X-Patchwork-Id: 13755351 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BE510C49EA1 for ; Tue, 6 Aug 2024 21:45:13 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 24CEA10E409; Tue, 6 Aug 2024 21:45:11 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="OFKg6Qla"; dkim-atps=neutral Received: from mail-vs1-f53.google.com (mail-vs1-f53.google.com [209.85.217.53]) by gabe.freedesktop.org (Postfix) with ESMTPS id C13FA10E0C1; Tue, 6 Aug 2024 21:45:08 +0000 (UTC) Received: by mail-vs1-f53.google.com with SMTP id ada2fe7eead31-49288fafca9so381881137.3; Tue, 06 Aug 2024 14:45:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722980707; x=1723585507; darn=lists.freedesktop.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=miICkqtphbuqoVPCrRUsXPD2jAyziYTMNx3H/IAui6o=; b=OFKg6Qlatq1c90zomsXvX9SidWqpSeomEJNax/Kco+WiUYLFa+ctTCwaoyPhiHuLEw RAuhYjR96RcKha9C7N64Zf7TQ8NpvKlraYbdvG+otLuO3rB+vRY6Oek0+1YKzg+VHGSD JjqSx10J+GtAOeMiPl0Ri41+lIjKTFLMXFIDtV6bdlUYf1AQD4pc+QO8BtYX3icnOlDB 2sdm3g8wJvl7THwLCar+ehNB36AZCQ1T7hM7evG4QiiMgI5EiuZDQMSJGjlyIq6rrrid Fmfa1CYx6dpJGxjq+nTBjBk5aLf2sZ3MGm5dhvnyMSA55mMfCccE/pLSwnhvxgqanDSI NW/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722980707; x=1723585507; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=miICkqtphbuqoVPCrRUsXPD2jAyziYTMNx3H/IAui6o=; b=RaeL42ah/YnJTKXT6R6PFe3HjLFrcdpb6PbvzkluS/7cbUx6G23W6yap78f4A9OZKL evFS5TiwMO2HH2Uy3GVkM7XhX9c5KDT3CJf7SsYyvPkTLxUoftFz1nv/LJnLCiUIWqeg kTzA8IpYgVXNAI0LrPenbQsImQh+N2HaCiasOY/yKj//pShlwel/+gC3onytBKh4HX8f ey1xLRkL9o++LPvSdvp6cF2htQcMmjDq8wlJhlZVrcguAHIvYQLghfZKzz9crrE75P+S pEGyXcHPpUl0GvJ+mlZHJdslSdSDtUxhy221zZK/CpeiL358b5+uVVXv+lYhuZgIRaH1 EaOA== X-Forwarded-Encrypted: i=1; AJvYcCVCnKibV7bWrXq35y6yC5isG+a6jeGRVys1rztT+TYgYZcBFHb1feHlGgQ+qMquFsmuCZD/sf234j/Tcsxr9694PV/rDLcKeaOejQsL7b2zEdNC99rSiOYOj/yrJgtJGYdp2XkA/AdCDhS8/NV8sPpE X-Gm-Message-State: AOJu0YwRFBHjna3QGtJHvn6AQXBEGZrLOrtSvjpsxYB6X/XzDGilxQ7R YUTzr1T2wJw5ELmUkTE/GPyyNvOJSEjXJdq2e3cPdQNMtE7P1+Dm X-Google-Smtp-Source: AGHT+IE5r8vnEgfmQl8S4kMnDUmuI+D85mg6HCI9z9cAUB9cKYy5kzfXGy5KxXqa2aS2d60cWur+Tg== X-Received: by 2002:a05:6102:374e:b0:492:99d6:e71a with SMTP id ada2fe7eead31-4945be1d04emr20422152137.18.1722980707286; Tue, 06 Aug 2024 14:45:07 -0700 (PDT) Received: from localhost ([2607:fea8:52a3:d200:324c:b818:b179:79b]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6bb9c8631d0sm49722606d6.106.2024.08.06.14.45.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Aug 2024 14:45:07 -0700 (PDT) From: Richard Acayan To: Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , Marijn Suijten , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Richard Acayan Subject: [PATCH v2 2/4] drm/msm/adreno: add a615 support Date: Tue, 6 Aug 2024 17:44:56 -0400 Message-ID: <20240806214452.16406-9-mailingradian@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240806214452.16406-7-mailingradian@gmail.com> References: <20240806214452.16406-7-mailingradian@gmail.com> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The Adreno A615 is used in SDM670. Add an entry to support it. Signed-off-by: Richard Acayan --- drivers/gpu/drm/msm/adreno/a6xx_catalog.c | 27 +++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/drivers/gpu/drm/msm/adreno/a6xx_catalog.c b/drivers/gpu/drm/msm/adreno/a6xx_catalog.c index 68ba9aed5506..fc4fa2a9547d 100644 --- a/drivers/gpu/drm/msm/adreno/a6xx_catalog.c +++ b/drivers/gpu/drm/msm/adreno/a6xx_catalog.c @@ -651,6 +651,33 @@ static const struct adreno_info a6xx_gpus[] = { { 157, 3 }, { 127, 4 }, ), + }, { + .chip_ids = ADRENO_CHIP_IDS(0x06010500), + .family = ADRENO_6XX_GEN1, + .revn = 615, + .fw = { + [ADRENO_FW_SQE] = "a630_sqe.fw", + [ADRENO_FW_GMU] = "a630_gmu.bin", + }, + .gmem = SZ_512K, + .inactive_period = DRM_MSM_INACTIVE_PERIOD, + .init = a6xx_gpu_init, + .zapfw = "a615_zap.mdt", + .a6xx = &(const struct a6xx_info) { + .hwcg = a615_hwcg, + .protect = &a630_protect, + }, + .speedbins = ADRENO_SPEEDBINS( + /* + * The default speed bin (0) has the same values as + * speed bin 90 which goes up to 432 MHz. + */ + { 0, 0 }, + { 90, 0 }, + { 105, 1 }, + { 146, 2 }, + { 163, 3 }, + ), }, { .machine = "qcom,sm7150", .chip_ids = ADRENO_CHIP_IDS(0x06010800), From patchwork Tue Aug 6 21:44:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Acayan X-Patchwork-Id: 13755352 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 47225C52D6F for ; Tue, 6 Aug 2024 21:45:16 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4C3B410E40C; Tue, 6 Aug 2024 21:45:12 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="UYftF/Me"; dkim-atps=neutral Received: from mail-oi1-f181.google.com (mail-oi1-f181.google.com [209.85.167.181]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1F20710E32A; Tue, 6 Aug 2024 21:45:10 +0000 (UTC) Received: by mail-oi1-f181.google.com with SMTP id 5614622812f47-3db130a872fso669253b6e.2; Tue, 06 Aug 2024 14:45:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722980709; x=1723585509; darn=lists.freedesktop.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=dSeuCMY2us9pa1SAbHTqv2Z4dVLFCX20r2NmRNPUfIc=; b=UYftF/MedrINrxQ2Jnko5uqzBWsxdo/IjVb7aU75NAomXq8ZbRwRbIxX8SLRCu0751 cy0O3i25nYCrmgRlY6/xISeJDVVpOVvI2RUr1XPRcdo1ZO73hpptlFp2RK/0tX9oo+vU hAIZKrzFAI88n81GyjeG9Y/e+tFM3HLbtJFKPHbD2/zmMNs3qgiwUe0C1U/1fHpBkEWz LBK/CwGwC5T1glJ/N7+PMdsHX7W/5zkiqmeFZb0xxKEj5kxdF/YHmy+CleJroo9aUbZ4 NO2O1bOmnrlldHf0H53PO/Y0wr/etVwW3D7EyUmpzyJ1d+WuqAKkp3H5Bb+1rxSRoidc DxWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722980709; x=1723585509; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dSeuCMY2us9pa1SAbHTqv2Z4dVLFCX20r2NmRNPUfIc=; b=Mvo0E3PmJ/jr2wCocuT+asXTkAnCj0Jf1Pik7qX07nycHki7iUbeWOUBLTSv6Y/VHm 5lbRKeVkuwCZ/Y3PLOyuyWD1o0AsrpbLC4yIT9Ehs/gFQvQO4gXMAVJnGzkDGZqR5chZ 5O9r1c+wPj3vvuTA2eDEdunCP1S2/91ms8ErHGQsn37zSlhbOLfmNnx+6HoCmorDoD4l kjPho0rgIgWqLCHY6oUrawKA1M1MpEQVF37Gt40jgUMzz/D20hCAzr4gFOLKS5LvqRy8 yKZDagh2wv4t1pEkEZFRq4InYkwZ+EfUqnpks14IH5gbGwnGfy1lz8Rwys6SPGC4cWcH Z9+g== X-Forwarded-Encrypted: i=1; AJvYcCXB0SLdbJCWx9l/4/rR9ydzo/PelVjIa85OIMrwfeCobKbTsz5u4aFdpQkXw5QHquWAElePE6F3CEoqLDNlSwCKSYz2pdmT3FQlluKB4TLrt+G1m+Ifs9HUbakK8/ZDCaoWsOHxCdsLQ157Lkd73mZv X-Gm-Message-State: AOJu0YxDuZtxpOdrPN6vR6gMzkzY/IH15kHVjrcht72YlHOyslsE8XGy DzKg5j4lWbY8ozLTx6Q6J1KwnKK8CEBQseWIHBPpt937lGcW1551 X-Google-Smtp-Source: AGHT+IHjmCaxtnKid4AHurYbomguGMwczge8XJ8F8ZPGP2TI5AE9qlYWnjEI/J8rCOpJ0CJ3kgo+sA== X-Received: by 2002:a05:6808:199e:b0:3db:50dc:de89 with SMTP id 5614622812f47-3db5580f0dfmr20519797b6e.24.1722980708993; Tue, 06 Aug 2024 14:45:08 -0700 (PDT) Received: from localhost ([2607:fea8:52a3:d200:324c:b818:b179:79b]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-4518a7572c3sm41048301cf.60.2024.08.06.14.45.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Aug 2024 14:45:08 -0700 (PDT) From: Richard Acayan To: Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , Marijn Suijten , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Richard Acayan Subject: [PATCH v2 3/4] arm64: dts: qcom: sdm670: add gpu Date: Tue, 6 Aug 2024 17:44:57 -0400 Message-ID: <20240806214452.16406-10-mailingradian@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240806214452.16406-7-mailingradian@gmail.com> References: <20240806214452.16406-7-mailingradian@gmail.com> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The Snapdragon 670 has the Adreno A615 GPU. Add it along with its device tree dependencies. Signed-off-by: Richard Acayan --- arch/arm64/boot/dts/qcom/sdm670.dtsi | 180 +++++++++++++++++++++++++++ 1 file changed, 180 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm670.dtsi b/arch/arm64/boot/dts/qcom/sdm670.dtsi index 187c6698835d..5c274a378848 100644 --- a/arch/arm64/boot/dts/qcom/sdm670.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm670.dtsi @@ -8,6 +8,7 @@ #include #include +#include #include #include #include @@ -617,6 +618,11 @@ qfprom: qfprom@784000 { #address-cells = <1>; #size-cells = <1>; + gpu_speed_bin: gpu_speed_bin@1a2 { + reg = <0x1a2 0x2>; + bits = <5 8>; + }; + qusb2_hstx_trim: hstx-trim@1eb { reg = <0x1eb 0x1>; bits = <1 4>; @@ -1299,6 +1305,180 @@ rclk-pins { }; }; + gpu: gpu@5000000 { + compatible = "qcom,adreno-615.0", "qcom,adreno"; + + reg = <0 0x05000000 0 0x40000>, <0 0x0509e000 0 0x10>; + reg-names = "kgsl_3d0_reg_memory", "cx_mem"; + + /* + * Look ma, no clocks! The GPU clocks and power are + * controlled entirely by the GMU + */ + + interrupts = ; + + iommus = <&adreno_smmu 0>; + + operating-points-v2 = <&gpu_opp_table>; + + qcom,gmu = <&gmu>; + + interconnects = <&mem_noc MASTER_GRAPHICS_3D 0 &mem_noc SLAVE_EBI_CH0 0>; + interconnect-names = "gfx-mem"; + + nvmem-cells = <&gpu_speed_bin>; + nvmem-cell-names = "speed_bin"; + + status = "disabled"; + + gpu_opp_table: opp-table { + compatible = "operating-points-v2"; + + opp-780000000 { + opp-hz = /bits/ 64 <780000000>; + opp-level = ; + opp-peak-kBps = <7216000>; + opp-supported-hw = <0x8>; + }; + + opp-750000000 { + opp-hz = /bits/ 64 <750000000>; + opp-level = ; + opp-peak-kBps = <7216000>; + opp-supported-hw = <0x8>; + }; + + opp-700000000 { + opp-hz = /bits/ 64 <700000000>; + opp-level = ; + opp-peak-kBps = <7216000>; + opp-supported-hw = <0x4>; + }; + + opp-650000000 { + opp-hz = /bits/ 64 <650000000>; + opp-level = ; + opp-peak-kBps = <7216000>; + opp-supported-hw = <0xc>; + }; + + opp-565000000 { + opp-hz = /bits/ 64 <565000000>; + opp-level = ; + opp-peak-kBps = <7216000>; + opp-supported-hw = <0xc>; + }; + + opp-504000000 { + opp-hz = /bits/ 64 <504000000>; + opp-level = ; + opp-peak-kBps = <7216000>; + opp-supported-hw = <0x2>; + }; + + opp-430000000 { + opp-hz = /bits/ 64 <430000000>; + opp-level = ; + opp-peak-kBps = <7216000>; + opp-supported-hw = <0xf>; + }; + + opp-355000000 { + opp-hz = /bits/ 64 <355000000>; + opp-level = ; + opp-peak-kBps = <6220000>; + opp-supported-hw = <0xf>; + }; + + opp-267000000 { + opp-hz = /bits/ 64 <267000000>; + opp-level = ; + opp-peak-kBps = <4068000>; + opp-supported-hw = <0xf>; + }; + + opp-180000000 { + opp-hz = /bits/ 64 <180000000>; + opp-level = ; + opp-peak-kBps = <1804000>; + opp-supported-hw = <0xf>; + }; + }; + }; + + adreno_smmu: iommu@5040000 { + compatible = "qcom,sdm670-smmu-v2", "qcom,adreno-smmu", "qcom,smmu-v2"; + reg = <0 0x05040000 0 0x10000>; + #iommu-cells = <1>; + #global-interrupts = <2>; + interrupts = , + , + , + , + , + , + , + , + , + ; + clocks = <&gcc GCC_GPU_MEMNOC_GFX_CLK>, + <&gcc GCC_GPU_CFG_AHB_CLK>; + clock-names = "bus", "iface"; + + power-domains = <&gpucc GPU_CX_GDSC>; + }; + + gmu: gmu@506a000 { + compatible = "qcom,adreno-gmu-615.0", "qcom,adreno-gmu"; + + reg = <0 0x0506a000 0 0x30000>, + <0 0x0b280000 0 0x10000>, + <0 0x0b480000 0 0x10000>; + reg-names = "gmu", "gmu_pdc", "gmu_pdc_seq"; + + 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>; + clock-names = "gmu", "cxo", "axi", "memnoc"; + + power-domains = <&gpucc GPU_CX_GDSC>, + <&gpucc GPU_GX_GDSC>; + power-domain-names = "cx", "gx"; + + iommus = <&adreno_smmu 5>; + + operating-points-v2 = <&gmu_opp_table>; + + gmu_opp_table: opp-table { + compatible = "operating-points-v2"; + + opp-200000000 { + opp-hz = /bits/ 64 <200000000>; + opp-level = ; + }; + }; + }; + + gpucc: clock-controller@5090000 { + compatible = "qcom,sdm845-gpucc"; + reg = <0 0x05090000 0 0x9000>; + #clock-cells = <1>; + #reset-cells = <1>; + #power-domain-cells = <1>; + 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"; + }; + usb_1_hsphy: phy@88e2000 { compatible = "qcom,sdm670-qusb2-phy", "qcom,qusb2-v2-phy"; reg = <0 0x088e2000 0 0x400>; From patchwork Tue Aug 6 21:44:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Acayan X-Patchwork-Id: 13755353 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 670EEC49EA1 for ; Tue, 6 Aug 2024 21:45:18 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 30EB310E415; Tue, 6 Aug 2024 21:45:13 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Mf+9tW7G"; dkim-atps=neutral Received: from mail-vk1-f170.google.com (mail-vk1-f170.google.com [209.85.221.170]) by gabe.freedesktop.org (Postfix) with ESMTPS id C6EC610E40C; Tue, 6 Aug 2024 21:45:11 +0000 (UTC) Received: by mail-vk1-f170.google.com with SMTP id 71dfb90a1353d-4f50dd3eab9so404429e0c.1; Tue, 06 Aug 2024 14:45:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722980711; x=1723585511; darn=lists.freedesktop.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=rG6C2q34NWeKgA7Rpje8FNPGJXT/EfHsIqSMnZCRL2s=; b=Mf+9tW7GZMQSqd1JPglMWmTPGbeJMq7VeHmxqWYjB590+XF7iJ2nw+ZBhiNqOdMAke AkDvC4RnWZo+3h5BLdIDvUUV+a4RCytSkKQsK2m3jWVOoIrx6l/MX1S52BZvIN2WQiNp whcQKL4vNGXtlV3Kz2A5S9WvvCZ+cpmPTZF7JrwLT2KYDYJQSphx7Ko1m2s7fi3/xTwR 3QIlnxe6AyzHe2Y4esiDX3eB5Zz/NYQzbfG76ryRheOEqYdrBpHpAGpzwQP5e7Upvf2/ 60W+riBM+55hpMQwd08ohiR5pnp/n9a0wg1Hwsro9WugcGCDNd5imwP6qyt0dDb5t50j Q1aA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722980711; x=1723585511; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rG6C2q34NWeKgA7Rpje8FNPGJXT/EfHsIqSMnZCRL2s=; b=miodbMvIfYb+DMdTCA4xHoor/YR3VVfj9XMpXcqc/vNF5cnQz0HsusMl2xgPRtdoW6 PXk1G+a8c5NZYIDeRnl9rJ7Bi+41KN7sCFjIPxXxx7GRYZ8vXAwm5Hkhe70rgMXtwOjw 634/Y1bWxGQ7igsFJ3ZvRbbHFwi08TYT/0Wq+PFaxiV/9GdSM/djA96I5ZKOZPJDi6G1 9uGg3jyXdWN+9sJrE8B4wnFg3V/wXBRPz49OoCWIuJLsNDaenshS4mv9fC0gZ+bdxBiZ A/DG+tjDjX9BKs1reQKpCtOQkGiKRVF1zz3IPZWvklpdfwWgc47VA3MWedrk4jy7bv45 p7Yw== X-Forwarded-Encrypted: i=1; AJvYcCW8ycc37M2vp0lzM3KBlnugPfMQfRwBu1V2ZNjQnANbobMpeS1iIlgJcxJWDYnVA46F1eNvLiuzRV3l@lists.freedesktop.org, AJvYcCWI94YawV18XoZeGHmrvfydFBtOu4KGz8FPR/3eYbDVM+IQjZrobqKnMjLmN8jntENrmdR/S2aT7IQ=@lists.freedesktop.org X-Gm-Message-State: AOJu0YyoikxLlnbhf+QI0T9CH2DdsGl2W+0Z52kLEgupVoWgElCT5UKq uupGZImCumlq+Og6VKw9RO6Y8ZOpTQWixFq5+t2NVWyOWjQ+C4F/ X-Google-Smtp-Source: AGHT+IH/Dpe/wIyv8ocAPkGI7uZGGC4gjw5oaxM1OgPkTR3suXR/XYthhC4ZWU5segmKMX73hvgZxQ== X-Received: by 2002:a05:6122:4584:b0:4eb:5cb9:f219 with SMTP id 71dfb90a1353d-4f89fe84d6fmr20318387e0c.0.1722980710619; Tue, 06 Aug 2024 14:45:10 -0700 (PDT) Received: from localhost ([2607:fea8:52a3:d200:324c:b818:b179:79b]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7a34f796911sm487104385a.131.2024.08.06.14.45.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Aug 2024 14:45:10 -0700 (PDT) From: Richard Acayan To: Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , Marijn Suijten , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Richard Acayan Subject: [PATCH v2 4/4] arm64: dts: qcom: sdm670-google-sargo: enable gpu Date: Tue, 6 Aug 2024 17:44:58 -0400 Message-ID: <20240806214452.16406-11-mailingradian@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240806214452.16406-7-mailingradian@gmail.com> References: <20240806214452.16406-7-mailingradian@gmail.com> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Enable the A615 GPU and GMU for the Pixel 3a. It has zap firmware, so add that in as well. Signed-off-by: Richard Acayan --- arch/arm64/boot/dts/qcom/sdm670-google-sargo.dts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm670-google-sargo.dts b/arch/arm64/boot/dts/qcom/sdm670-google-sargo.dts index 176b0119fe6d..465aedf32d56 100644 --- a/arch/arm64/boot/dts/qcom/sdm670-google-sargo.dts +++ b/arch/arm64/boot/dts/qcom/sdm670-google-sargo.dts @@ -407,6 +407,15 @@ &gpi_dma1 { status = "okay"; }; +&gpu { + status = "okay"; + + zap-shader { + memory-region = <&gpu_mem>; + firmware-name = "qcom/sdm670/sargo/a615_zap.mbn"; + }; +}; + &i2c9 { clock-frequency = <100000>; status = "okay";