From patchwork Tue Jul 30 01:38:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Acayan X-Patchwork-Id: 13746246 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 BE9C5C3DA4A for ; Tue, 30 Jul 2024 01:39:01 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1041010E26B; Tue, 30 Jul 2024 01:39:01 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="mVK7VsHq"; dkim-atps=neutral Received: from mail-qv1-f42.google.com (mail-qv1-f42.google.com [209.85.219.42]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1864610E183; Tue, 30 Jul 2024 01:38:53 +0000 (UTC) Received: by mail-qv1-f42.google.com with SMTP id 6a1803df08f44-6b7b28442f9so43846046d6.3; Mon, 29 Jul 2024 18:38:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722303532; x=1722908332; 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=R5V8v6mJVu45H98XTICckmU1hS1yE/o0aFhw7aKg4Kw=; b=mVK7VsHqGqZHiDg4dzGRv2G3oTBlCCZCAxZ1cXD1hQN9ToAIpZSK3+GLMfGPvZne3q +h4LnWFx6m+A6I+dwvMa+sjjJTq4OG/g8zplsGBKDpCjJLQiLVSnQMyBwaBhDFu+1WK5 Am64zgTAdwBmdcvB6TYGbODUa0Mudm572n0iT0ZWaSOOG6KKTVBqg4IuhbvFAm9T96UA QMdW/fsGqYyWj3fjJjwffBQ5sRqWL9UqcvN5WcqHJ6QMxxR2X4W7S3M18K4pblubCfQL GjsfpAWGndeJg7/gcrG66s3cpTpJmwGlRPjNAOD49j+L8ujetqtzUm6Z4LwIOjpOTMga ZDZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722303532; x=1722908332; 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=R5V8v6mJVu45H98XTICckmU1hS1yE/o0aFhw7aKg4Kw=; b=enaOiup8fdhdoWNt11SPyj+FrbFNuS40ILuK7oKZXM9sziHzuBnkkKk3OEuml55BKD 7h7gGaRLsu862crKkMZXVaV3SQ8KPkasx+kIBmGN6GdZ/69RVR/8CgbZY7RdofpfEQfn zMxHg2ZIzHTSCoXaFJ3nCDc7DhDTAfD4hAzPCd2ViqG+mrl3wq1f0xEod/0W2O4+A5L7 oJF8YIFV3BJl25ZYWoRlqG+cCM0j9z6dcUyvsn1tqpLHBjza0MXCux8rABIfmozQCINe NlIffb45wWzazM7bbCO9fVlBK2NO0OlaujgjfVuvzHY+29WFLdUl/ReNwXuNJQ+LPd8l 6FKg== X-Forwarded-Encrypted: i=1; AJvYcCXnojWdzNOnCSKuJJtK3NDFQico05goS2fkfxefVjtMfTG/fdTCrmMYGyZruI/dXRBvFtDFAr3PX5+89oPP8Ud+iqhZN+7HJiigVURGQdFOfxhorknDNjHVporyXLY4et+7qK0TTtFQ8Hmewtlaq2uj X-Gm-Message-State: AOJu0Yzrn1uK1L2tQC3c4SHPfZCkXU44R3nWZkxwTwpp83HCqpgKiNO+ Ogv4oOoKkaAAnsqxNizTCqciyw8Vf65bVJnj/tjw1TFkpgVrhCvM X-Google-Smtp-Source: AGHT+IFAXnDbbOCYtDoXYpx9BApuVpqU8RCmPc/YjsBZVC5fX+KPk+EzHwB2giEEE4IPMKHBD+VtPg== X-Received: by 2002:a05:6214:2501:b0:6bb:3f69:dd0b with SMTP id 6a1803df08f44-6bb55a1a621mr139961136d6.18.1722303531781; Mon, 29 Jul 2024 18:38:51 -0700 (PDT) Received: from localhost ([2607:fea8:52a3:d200:324c:b818:b179:79b]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6bb5bcffd18sm36115946d6.15.2024.07.29.18.38.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jul 2024 18:38:51 -0700 (PDT) From: Richard Acayan To: Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , Marijn Suijten , Maarten Lankhorst , 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 Cc: Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Richard Acayan Subject: [PATCH 1/4] dt-bindings: display/msm/gmu: Add SDM670 compatible Date: Mon, 29 Jul 2024 21:38:46 -0400 Message-ID: <20240730013844.41951-7-mailingradian@gmail.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240730013844.41951-6-mailingradian@gmail.com> References: <20240730013844.41951-6-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 Jul 30 01:38:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Acayan X-Patchwork-Id: 13746243 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 A375AC3DA7E for ; Tue, 30 Jul 2024 01:38:56 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id F0B5B10E1D7; Tue, 30 Jul 2024 01:38:55 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="DB84aOMd"; dkim-atps=neutral Received: from mail-qt1-f170.google.com (mail-qt1-f170.google.com [209.85.160.170]) by gabe.freedesktop.org (Postfix) with ESMTPS id B21CC10E1D7; Tue, 30 Jul 2024 01:38:54 +0000 (UTC) Received: by mail-qt1-f170.google.com with SMTP id d75a77b69052e-44ff418e040so23218081cf.2; Mon, 29 Jul 2024 18:38:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722303533; x=1722908333; 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=4SCz45+BPbCjHq8X/VdUn+0NTCgnAzl07b5UECsnodY=; b=DB84aOMdHxB7mI9I6E6BCMiz3RrlIrNCyVPUSh7KbSjjZZ3YtOlN9wTtcfWv2JvtPQ oHdG+tkt6Ik9kO2/ktQXLWO/z6KhnBkyyCdHy0iU1HvY5N/QkkDzyOAgWkxFLbHteQ9o rKtIafrJVtZAMTWqnay+8+elCvX0Mer/quF4gkuD1ELZppmSCmCNasyrz1DbSH4ii7ZN TrwX57c4fIh9/y7jhrngaa6B9aCyAe8FjW1PYeWnQU1nn0CFCi2cGxPR9lrffZ4XMYc0 gbdDtTxklarBTvEvquF9168SkoFObHraPwefxg13xRr2K56nSYqoUlHzgA5AMSaEiu/N J6OQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722303533; x=1722908333; 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=4SCz45+BPbCjHq8X/VdUn+0NTCgnAzl07b5UECsnodY=; b=WS2XOyWjayqKzyqq8IpChud5izWIDk/eat4XuHoSXD9YmxFoTfWjGoj7wEvsRU3l37 nU4IqV/J6LpNb00qiwnBxrH0/RVls6uz5sVPoCfqqzSis1HnmR3aMnU3D7mrSfK8qgdX 4AxLA/jGQO8M9iDwrJiztwb3qWYqSDi8/KaqUlgbz4lA69FmjFYu/PL2Dmb6j+FY0jA/ bzXNNZZCQVwq/ARkY8wkX2USPkBl1XmWC0gWsNqHqliwnh17Qn7dF2HyW81g26KR98Kq vVawNtD58VvqGb58HEQ4SmiB5AUqH4Yd7NbekMgW4Xh7dnDYiHy+gj9aUlOMX8Fd2t6w U3hA== X-Forwarded-Encrypted: i=1; AJvYcCUAv3CFLXzycdeMIb7AgbjFQfJ9wBAMfChfpXRDhXN+m48pMO9Aw3YhhKGvYSDQMFI9GiL0iDvJd7crXdjQ19QcwJX0nG3K1qheBwuelzoxDURhwDZxwyfrQ7fEusqWG2I2e2Cwo7xELp8+/KvO6L5I X-Gm-Message-State: AOJu0YxxvAbd32o49eRrMDNAwnsQ1y5k6uSo54Y6n/ZN527PSzpJQKjR woVhgzTbHJu8evmLBmnxjRk8SSiCxgRTCjbyJtj+SOEAhBoPPwFy X-Google-Smtp-Source: AGHT+IFeEeg8clOiGdEAAhcNy0xa4Aaj0rQjm2UC8tAdca4VXiAtuGxBMfi7SFMT9uW+nbvQLLdP9w== X-Received: by 2002:a05:622a:8b:b0:44f:f20e:84e5 with SMTP id d75a77b69052e-45004e0b738mr154738761cf.34.1722303533388; Mon, 29 Jul 2024 18:38:53 -0700 (PDT) Received: from localhost ([2607:fea8:52a3:d200:324c:b818:b179:79b]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-44fe814d0bfsm46525421cf.33.2024.07.29.18.38.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jul 2024 18:38:53 -0700 (PDT) From: Richard Acayan To: Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , Marijn Suijten , Maarten Lankhorst , 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 Cc: Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Richard Acayan Subject: [PATCH 2/4] drm/msm/adreno: add a615 support Date: Mon, 29 Jul 2024 21:38:47 -0400 Message-ID: <20240730013844.41951-8-mailingradian@gmail.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240730013844.41951-6-mailingradian@gmail.com> References: <20240730013844.41951-6-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 along with the speed bins. 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 Jul 30 01:38:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Acayan X-Patchwork-Id: 13746244 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 A53D5C3DA61 for ; Tue, 30 Jul 2024 01:38:58 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0CE7210E1E8; Tue, 30 Jul 2024 01:38:58 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="TheCgzJq"; dkim-atps=neutral Received: from mail-qk1-f170.google.com (mail-qk1-f170.google.com [209.85.222.170]) by gabe.freedesktop.org (Postfix) with ESMTPS id 52F0810E1E1; Tue, 30 Jul 2024 01:38:56 +0000 (UTC) Received: by mail-qk1-f170.google.com with SMTP id af79cd13be357-7a1d42da3e9so267709485a.1; Mon, 29 Jul 2024 18:38:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722303535; x=1722908335; 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=qcPic30IlsrLE2E2uuJZidSze/wY36p/6jtRB0AARfc=; b=TheCgzJqWW5meHfAiR44EDVNZeJ5OCzWmLlKt+aF1+DazFw7bo28Ui/xvJZjBVpkDt DRWcGFsaHy/LOvNAxkEDrWP7su/WOeYAAtba7mL2YXYBgqyV1DgnuOroi2dcNmlKbdUL VB3AZ4kb/Q0i3g39z7w/K5ndhMeonJ+rhm8iBqXLPx/Pn6a7vSgdisagWpltK5TDjTRT q33fuw3aBu/rQGBJ8M0TqvH+rOHOYkhSY2EF4z/ErdU08wPY6tXbG/+9hfsDmbl4VUzI ZSRnrLk7QKgysm3K3jemaJAHzwaIzfg0L3vPrJNxsmGAA3r44zfesJh3BEOtcOJ7e4Qj Kqzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722303535; x=1722908335; 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=qcPic30IlsrLE2E2uuJZidSze/wY36p/6jtRB0AARfc=; b=qyxGzUw6UtH3Y7gI/BcZWu3iuwEk1u2BU95Tmw549/9fjCVkHT6fqTA8cKhvK0KKIK OPKPAm0svzgU3XpY6EIfoHEE9X9/m5vbolYHT28ggMwixA6q+yrcEP/xjpW6b2ihDNY1 d5XjboCHfTBJGrGRnD+NH0EKH2EJ94EFu9IJagguzXDOl7h2JalgRcAjTtnywNxJ0zSB AA/G+utBWZtwqqjn3nomReIgmZ+C+BtdiYHDb8lQ20d8orQwHnylNdm9OJrUkrUcXAGS V09clHy+QfvEQTvbZexCaQ69fJVcRDXZ631CJTaalrqd6v9vWFO5oWWIko6pHPq0jWv3 pUkw== X-Forwarded-Encrypted: i=1; AJvYcCU8WQvLcK5zd4vwvkAlrlaQ87Vao78gJx1r+EhGZ4gBhjyAjUdkKPBudUpWnnp2qfn3RBSuAUpwax3GbRH2Rpv3QOet8IZl2I4tyKQwu0RcWbPCfA4fn9lPeySEQIzD4h59wJeQbof6jBSvk6/2Jh70 X-Gm-Message-State: AOJu0YyPaw5UXpYe9Q5Ss8iLI6wFCKxLLAkR0DfPckUMc3pt/dwP4AU4 NDnb/Gqnpijif8kFiquFCZ0/zMHC/Qe+3spBhBrIIle0GVvlMNt7 X-Google-Smtp-Source: AGHT+IFCiFGgyaYg+aZRBFVpktZmuPSn3v58JTMaWyd9thWeo5Q1KPiZ8Awxc3/nQmDtBeNY+wkxgg== X-Received: by 2002:a05:620a:45a3:b0:7a1:d335:f7a8 with SMTP id af79cd13be357-7a1e524a293mr1406329485a.15.1722303535020; Mon, 29 Jul 2024 18:38:55 -0700 (PDT) Received: from localhost ([2607:fea8:52a3:d200:324c:b818:b179:79b]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7a1f0fb33c6sm217759285a.104.2024.07.29.18.38.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jul 2024 18:38:54 -0700 (PDT) From: Richard Acayan To: Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , Marijn Suijten , Maarten Lankhorst , 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 Cc: Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Richard Acayan Subject: [PATCH 3/4] arm64: dts: qcom: sdm670: add gpu Date: Mon, 29 Jul 2024 21:38:48 -0400 Message-ID: <20240730013844.41951-9-mailingradian@gmail.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240730013844.41951-6-mailingradian@gmail.com> References: <20240730013844.41951-6-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 | 168 +++++++++++++++++++++++++++ 1 file changed, 168 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm670.dtsi b/arch/arm64/boot/dts/qcom/sdm670.dtsi index 187c6698835d..467006ab2bcb 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,168 @@ 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 = <0xc>; + }; + + 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 = <0xe>; + }; + + 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>; + + status = "disabled"; + + 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 Jul 30 01:38:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Acayan X-Patchwork-Id: 13746245 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 8CEEBC3DA7E for ; Tue, 30 Jul 2024 01:39:00 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0715510E1FE; Tue, 30 Jul 2024 01:39:00 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="a4Z4K+ZX"; dkim-atps=neutral Received: from mail-qv1-f43.google.com (mail-qv1-f43.google.com [209.85.219.43]) by gabe.freedesktop.org (Postfix) with ESMTPS id D532310E1E1; Tue, 30 Jul 2024 01:38:57 +0000 (UTC) Received: by mail-qv1-f43.google.com with SMTP id 6a1803df08f44-6b7b23793c1so21718696d6.0; Mon, 29 Jul 2024 18:38:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722303537; x=1722908337; 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=IwijiQXrp5DlEM6JJIJ/GaHG36m5U+A+7dOKNwuF2TM=; b=a4Z4K+ZX8R0tFvvemXxpydalfddxW9eP1apfCy11vaS7gSqStLL4ceVpf3dTkBsXD5 OvXfGLuQzH2A2X/3QEqUER9BKW4h09zOYOVQXh5oY0dpZf3g6c6XnsMOWmyUlRvcxEQz Qe8paZghDVwgUry7Y3tBpUCKefRTH77IF2bRJLvx7MVcRgzCnEkxorCOiRrLkRVDFdHg 5rGfQFtq5Gy+kuMyboD7WVtUjcnW+7sMSmBGsCIoP+BhBU+leElwWKxhIk/SQxHGdsNa 9PHbmlasqYUYJkBPcV0Mxr1fFe7OyuSlV+quHX7+N4j15xtJxNEiMybaNd4MlpfeVtCt HgFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722303537; x=1722908337; 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=IwijiQXrp5DlEM6JJIJ/GaHG36m5U+A+7dOKNwuF2TM=; b=KOd2fZDtwxKYNgDEEU2XOwrEhjkngm9Oek2yD410659AokaE/uX95Csx5qFMXO7nLS Z1N0lChyYwq4nrm8jr9ip+CaKAJii5lCfemhtP034Y0q7lRFNmmvBMRNBReHmduVFloC ihtstcUwAHCKY8UGOZx4yee8lij1TZadW91b2ZoSC+sE7GFZlTn+94nSNM+YrsAJlLzr OmNoIxJ0UnFaZx1Xv/52N1Ppm/mwFACDHKk3EgV3Ge+P+bxShUp55iPGPWmaKQIUo+em jOW2D77cpUPYh1StIZfSZAZh5gSrIreCoPkaj8zueatF+tX20McTlAeoDmuWuxUa1oXu 6bdQ== X-Forwarded-Encrypted: i=1; AJvYcCWlI7kevs4Vx6OzVrjn1R107q5Urbet5g/UfuqVuoyuUhLIySLedx5XoYk12qUYc2ajfT1BJ3UoSCSU2M+4pEtpHTGhsSJdavUhe2JzVW532qO0c3EN1Bat4j93GwvAwywJn58jrLX/30XiMHuLmZdo X-Gm-Message-State: AOJu0YwTj7FHhAf7h+V7vk8773ujDJeh1k1HBJ6oLQlXL6C2WQDaIpul YGsBRp/cgqP40Xpzwckn3DyrszVi/RMor1o0wuW5WMDjSOC8Q8rU X-Google-Smtp-Source: AGHT+IFV16qAcfMqLWnSDqEkg2eRkXAFyIb+aIGVTG94FYyBQh9KiIsTQXx20fyc3j8qOo7IH/YlCg== X-Received: by 2002:a05:6214:402:b0:6b5:80e0:1301 with SMTP id 6a1803df08f44-6bb55aeca19mr135400336d6.55.1722303536758; Mon, 29 Jul 2024 18:38:56 -0700 (PDT) Received: from localhost ([2607:fea8:52a3:d200:324c:b818:b179:79b]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6bb3fa950a3sm58221016d6.90.2024.07.29.18.38.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jul 2024 18:38:56 -0700 (PDT) From: Richard Acayan To: Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , Marijn Suijten , Maarten Lankhorst , 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 Cc: Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Richard Acayan Subject: [PATCH 4/4] arm64: dts: qcom: sdm670-google-common: enable gpu Date: Mon, 29 Jul 2024 21:38:49 -0400 Message-ID: <20240730013844.41951-10-mailingradian@gmail.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240730013844.41951-6-mailingradian@gmail.com> References: <20240730013844.41951-6-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 | 13 +++++++++++++ 1 file changed, 13 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..7acbcb5b69e1 100644 --- a/arch/arm64/boot/dts/qcom/sdm670-google-sargo.dts +++ b/arch/arm64/boot/dts/qcom/sdm670-google-sargo.dts @@ -403,10 +403,23 @@ &gcc { ; }; +&gmu { + status = "okay"; +}; + &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";