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: 818662 Received: from mail-ua1-f43.google.com (mail-ua1-f43.google.com [209.85.222.43]) (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 1B8A916F27E; Tue, 6 Aug 2024 21:45:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722980708; cv=none; b=keBZJl0Tpg0lPQtOXYvQeize6t9y6oU4iYY0fXGuNKrq4VPE9B4n3T5S+4sbnKQH+UjY6Yg9DMGwxGEOOoXnpayR2BSRJ8pjK3StJ9zMp/ncHaEjDSkwQk1ZvNQB4X9CNJN3OM4ALN3AQLDu+iHj4ioBIw2NR1KtrD7HyL412RE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722980708; c=relaxed/simple; bh=oLX8fJBiLRbeljm4ybQVrr4vJtimRblEWJ07v6kQDs8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=X6YVPqxjtuZAtnxy7RA6UdInNUAUPcQSqmY3fWpGveAuMvcL8Jbu/Qmm+lYwiolihSQiNjm8c8P/HjFbvTOjwjnWnda9FmGIz/wdSC5XwI+a57/5YQOw0CzIBazwuqkkv6Chh6WSXHBsnrx8kmMtbXdNkbsYz0zUxSkXeGEh1Bk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=dHvMxgO5; arc=none smtp.client-ip=209.85.222.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="dHvMxgO5" Received: by mail-ua1-f43.google.com with SMTP id a1e0cc1a2514c-825dc62725cso397945241.3; Tue, 06 Aug 2024 14:45:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722980706; x=1723585506; darn=vger.kernel.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=dHvMxgO5EzbpG7J7Lzm2ty8GjMWKngmZT04Co80YgdeMMvBiz8i9h9bszbK5lBj6eG BQXyhv6thInQQuyvAHFdPbwRYVfCP1T0YbxJuFv5HJpbP2/0dSsHDP2ImS7ApS7n5koe IkXIxb5pYmFtph//mVimRnLWBopEDkLeXvWedR0GntPjh+W1s0nQbyVuAZH4ThVSgelw qju5Lv8G8QL/ZPkQrsCUyHdVTlTAqZWp+CLsPP8MZ+6w/nzW7saG8OSu4NP5CD18/vwl YwsjqUQpLplU0mxtJWwB+R5J9/cp73A2sTPCXaxy0XGJNkFOjf+UjrWze2/7PCiNTxdK WNmg== 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=GWA6eFn846jR6GJdhQMNxj14BZDXrLF404FwjrZDAYrzmKQEs93sAej1FEzvpIR4HW X8RR988wW3BCBNb7WLM4s/4lFRwFeZ3k7fA5Iw/0W4fW/VXA5MltpmwjFWy3fwzqB3oV 1N+2PsjVn5XFvrHI9MDbBgVWxBq4IhKFNvbQnrS1pgJF7tITOlKNAEyqnG7ud0q+x7Wn +TtAksYjrvRkW/LXub7jRyuoftrAI5VwwYsloVikSGqW1vru+NAv3ir8R7oxOM3T+9gU xGycBjx+o4CJUf3ytuFg+tI5bmxqAWtZVek4D+t9HL6KkCOAeSRJeKdXWDBaC7UYubkW UQlQ== X-Forwarded-Encrypted: i=1; AJvYcCWcaprV7gCcrhE4+MJFOsyKxVeL+eIZxUN8ZL09VdMiwWvRjfDktGOR7cVrJ/o1ff4FkQcaRlXUAPFFuoe2QB9QJt5y4+DpyUIwKiwZbKs0Nqbpk6fUGLm3b5rcbREbzGG9cQ44sPwkrkxYxXmXyo4trZRezL2Y1IaxsVpDIBgi1sz/3D+efEg= X-Gm-Message-State: AOJu0YzbnSJQZ36kpY0vWDAUljBwG2jT3ANpwxK9HoNfjnlYq4dT7EnY FoPy+XIh4QkzBcv5Mbgt7MelIkgz1MFKhdMN68bTRHpgw0351lS0 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> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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: 817146 Received: from mail-vs1-f52.google.com (mail-vs1-f52.google.com [209.85.217.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 B5F7816FF48; Tue, 6 Aug 2024 21:45:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.217.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722980710; cv=none; b=pK6Hzx0jeuZ8nnTMCL9ZVCw3I3rfZVf0i1hLz3sYlePlprn3paUINnSG1E7+rubxRCakgbYnSfljLJzLPV6GfASnXjN3B5zFk0ALXdLzL7ZNO+Iv79lqAfkLa6EaGIHQbUDFAsizmus1ZIti4iCRo1FydAx+W33hNnQnwVvvPfQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722980710; c=relaxed/simple; bh=XRd7pY9VidXjx9MGbG817zX8Chrnej13ueESbCisVN0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=UTMWioGs6d0n3ZbhhWk/c8t7PE1l3b7k9QVVzWTnSYEENwICNBgqq7MXM2hDIOsi/6xGZKQiAV4t47yucIvw0BaeW1Q9CtLzPDXHCurfdw1uMMWI9QelpIGAU2FMsbnxnujAFKIEzmLhvBrZfgpJqHa3qJQxBjR1kxzInC2zUis= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=IQF3VIoj; arc=none smtp.client-ip=209.85.217.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="IQF3VIoj" Received: by mail-vs1-f52.google.com with SMTP id ada2fe7eead31-492a09d4c42so318731137.0; 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=vger.kernel.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=IQF3VIojmlgDWRNuw+TJTysArVH7VWg3LKEvo2lj3wuw/BuVSLHXqHTe7+nEkvktjD FKy791q7bAtCP6kKuPt7ejK9PuLdaq08oKCvt/HQHKFAe51aKZ/uTe4EaSxDcxMp9pnz ql2cNytRcl0t7PcMJ4K0pdQDrNYTnixHHgoMEPFUoaqIlenjSnLsowcnYRirUyAUfkih 3Q+17xjO2dVVz2gRJx7uv2uxCoHZWbmNZADvPZtnXdt/zXxYiyju7UKgrmyLXT0q+bpc rZYEkbfiMunts8TigPskffd+0dCbvvzzzKRvMQ6SpIecTZYkIMAMm8U1xI2w46nHIOzS 2Vqg== 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=GVM/7NRNkRi4LR0IdbtktdcARNeDf9lja6cK/KH03iQo3EaSOAC/mAbJakG1m/Q+9i g/XiRL5Mj/PyMFZB/k5/h5wVamseQ4wnZRXT5sA6ETXHQiP6Puoyt1a2Sse70lvj6fvg Cj7Sf61t9mJaQvEiBFeTm4xrLmEbillfA6FHSm/pAFRQzsVJEHGTJN+nNFPLvlv9NN84 4chOBNdeWFOWJysa3Hx1wRRirJfUNxYtdWbN7iM2r1Ns9kN6SXSd6UAXgQcsEq2OFgV5 pwznrgACF3X7H4jzcHHsnjBDu7WjYb5o+Jh9qs935aJSM0junxlo++XnhUUOlBjOdn+h GLYQ== X-Forwarded-Encrypted: i=1; AJvYcCXlYbSk/VkUhNX2rS0SFVBKSLPRB5U2dHVbmbYxwAgjH4R/W3vW5IgCg7xMvhTJ/57XJ7/CfXJW//n0Lv2mGfBvXz/PncFOGQD+CGqRy+lS/Yme8XgAMfnJARhDwvo6tBs5RxJj6zBvR/uBIXrZgAw/ftGlQJrYN1bzaMRg4GsMVAez91FaVog= X-Gm-Message-State: AOJu0YyZwtnrwpULkQRG/0ylu1iVqFBDM2cX2Dqyh8w6qSmwTnd3cGhB yyPcDEmQrVzHReSI4qtqCFHfzjqLCBXorhNurmb/HL8ZGgeVI357 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> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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: 818661 Received: from mail-oi1-f169.google.com (mail-oi1-f169.google.com [209.85.167.169]) (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 0B0DD171E61; Tue, 6 Aug 2024 21:45:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.169 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722980711; cv=none; b=NbG/xA9IS8hCwmLvM4g/zoOnH5iSP/QGCvcKsy+qLF3MbR/XPqBSoYHSseLgYLX71KeEp9GMeh8eOUdGI69HFaoERlbVrXaUFK1WeaG0kJrfgi96yzyW0YFztVFey/stBeGmthBECZg7g3aAJo2erJhWdNYFZ8PHMRt6+RUzXXE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722980711; c=relaxed/simple; bh=TuKksCwcL2uhtjV21dP9GF0mfFOKZ8DfEOz9z7Yryfk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=oSaeHmOukzHixegvBFiiw/pALeGaKzWqQ+Mgb2kNXOY15emBUUue9n5saZEJ57uXWqjkkXAML0ndzSqbxtkMqMYjZEyUFgcjrpQyjgllxMZ4Lf8HKLixZrDUTcQv5nUVJ3uUBLHP73oUfxTPFdM56uguv9/M/7IlbL0BNb+R+tg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=U1aTFpmI; arc=none smtp.client-ip=209.85.167.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="U1aTFpmI" Received: by mail-oi1-f169.google.com with SMTP id 5614622812f47-3db130a872fso669254b6e.2; Tue, 06 Aug 2024 14:45:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722980709; x=1723585509; darn=vger.kernel.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=U1aTFpmIR38d2YX76NqXiFDj0NhgP2wz9LwbhS0r6919VOGlYXHmP0Ab8CX/k99alu 6TG49VcQiWmhx1pjw1Tvjm79qU/YtNpDdb31aIpWORU/Iz8G8aAQn3/VCairdZgtretZ OlMbiyK7z6hNPPW5eNA1ssfJUKxpR0TISq9uV3CAkPn7Wozq4snF68YAcsOcgeaZC/sO l1RwfScWc+5BwcBf3rbVd6iM75QR8UjFobwCVIKdtb0MfNGDycbwSL6tqSO1D2IZWUU3 NEr8UqpBbw052VkGKm21gCt4qLZFGgopgs0i+jDHKZMoCDH53jxy2jErMqF3EAqnvaNC Js3Q== 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=wDao2BYkjat8lGjS2qLXGSEx2KQby89Qj2Fsil8gClb2LsT0gcaQlWkKOWUE0mXV/1 c5dB2zExP2CC8Ek743NguGeJGZFnAeeb4jF/mzZ0EwYsnW8Jydqn+kEB00qVC+IKveyt Cs0nIASqOURyiv4ME2pnxxMLvcaAcX5df/eC7JDhGNFFiv8r3pvDtmftlgi1nnQYt6BL uOM4+/zlwNrH7ymvBpXnzCVVhXiTaYG0WTcE9pjIUcNRRR7GIgQi77YFSrjVhw5p/WpV B0WGF7tUrp8WxUTLka9dRiI3ZF82VlpfE2k78NdJCebDKBM19f9CXuEs8Q1HuM1OmDBw gdLA== X-Forwarded-Encrypted: i=1; AJvYcCXqPlpmD5VMyZ+d4uuFj2lv3h1b23u0D/wKlPa+XTRTAr6ucwkG8I8mVUG/wWqhBXtsn3dkC/Kg37Vrg/JLtn86SAunJa91IGOwCtZf6SAkpJzFIfkTiXi2tXjvpkG/dWhnOZGNYhw9hqtaCY6O/OIKvdCNId4P7sri+mw+O/Yg3W4FX2bvyrA= X-Gm-Message-State: AOJu0YxERV5BAlt73Kp84CDgEQifTEqJCktlB9jnsbIssVuKtUzT/6MB WndlxWX8jx3dRZGzY4G/MI7Oj4hywCyXfPHnUad/UZNT+PJ0YdIM 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> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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: 817145 Received: from mail-vk1-f169.google.com (mail-vk1-f169.google.com [209.85.221.169]) (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 D351316F27E; Tue, 6 Aug 2024 21:45:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.169 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722980713; cv=none; b=BSL7QkvR3f/rHUxWlOuxOFBzfRflvHuYR7V8FG1kuoHQGLSkkHGQmxJtidqwKEB5fUjnNEd0oDw2t5mWX8Y+D7LouXQA68de/u9Kpsi8iNu6bfVL5TLZE6tB2cCG+LYhmcOTfPGYpenZLSg82FoMankm0F6JgUNxu8G7TlPaIT8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722980713; c=relaxed/simple; bh=8UA6xNK6FFgeRMN8qOKhlzPpsHPsnXY+tcFy/jX1oMQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Q/UNHAhfyoaXuaiukTtVY2031LnadgQTW9AF4V8V2uIfAZt+CMVfFXM2leus0y/gN4/kN4dqV4DbsJWRNtdyEhjTd8YolFo+cVVd/ksxteWLCLTlY6XKkfI7XgD1hjalTLj56BEKbkrTcXNRyUV7KVxb384acVORw86f7gUJ55M= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Bu6BrwD4; arc=none smtp.client-ip=209.85.221.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Bu6BrwD4" Received: by mail-vk1-f169.google.com with SMTP id 71dfb90a1353d-4f6ac477ff4so627519e0c.3; 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=vger.kernel.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=Bu6BrwD4dssAswDLM7X5N/QsoI/+TbvISVY4Yw/I6mOvK++ypacE18w2P3B37Rcrcv woxdd/zI4+efLTZMumFfTG7xVcwo5XcZd9pZCDS9WCVC2f+Syc0LbXGvvC25UgrD8rN9 JP2V+HWDDep3/imlMSZDm0Gmmrn09AaAfdic5QdVAymwD0dSizIDemCVQynicB5hjPe6 aBY652QwBeQ08v4Cvxc15doIXIdxdYPBqGIsO0aiSx8gWoehcIRPWBdeXXV66syBRnZa HdQZ9psoYx9FicqTC6pqaN9QX9wDJnkXNSyfQDudGg8KbqTOzVYEyCxxmO/lcSKOED5T TDpQ== 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=ZLECNU/rVmUR6vI0kPkomr0Hom0PK1MhNGudTgUkY/4HGbFkluUVAmB0vxamLevORh BTpxWG7MDZcCib1ubx1QoS1N0AxpPbeNdn2gTj5TwVKqjLHEN2xuvddyaMFvvsaz/gr4 n9/OI3oMYDmmfpKBHm6g9ZiHreLJ1OnXnu51Hgqt1UgKrp4cCxDovh+mpW6JTRnPwmov 2YcyZN8g2hzL1EgmIjDiZQZI0HWXgtVXkQ/I2saC6fZjPBgLX/jBSo65jxQGBQPf30Jb Lm9jmbvvLyL5KzXUYeCJ2iKwEiZYF4sDDUm0VGYfQyIj4zK4FkWBhSOXWMz6z4+9OQ5H Xoeg== X-Forwarded-Encrypted: i=1; AJvYcCU4caN+sHDE6jk79sKjVQGQpBJtKpiwUbwzoyWGumkx4hOUIIVz2vCnPswXUHCUDWyCRxJ86oiusYAH@vger.kernel.org, AJvYcCVG2taw7DD0kA6sPTg7f/QPqUD0O+U9vapjyZT9bB40lcYbDoyehUDG6IGpj94FZlOBzI5YdfdfMbZLNHN0sA==@vger.kernel.org, AJvYcCXNO3BV1CHhvFJP5zj8llG4Uxkf8J3TcBEpQyVhL0pIOFAGoySptyMeVIEaRKXrp4bTdA3BZBuJFRXeC/SV@vger.kernel.org X-Gm-Message-State: AOJu0YxHVgsu7BDn8x74sVKkJJAQwuB689Sw0/ujBaxzNj6vSy/yab1O Z72jIhFgGfPcUJCxDpJGxZLFYs55H1/EojaHIj+wTFBeUTlgoBLP 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> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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";