Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp63080lqr; Tue, 4 Jun 2024 21:25:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUyLTKGjaUTMn5dMrmEvyW4fY6wH4QxGNIy92Vj0nByesA71n7dgZPOcHQ1xWtMpypK6viPr09MupP24F+UtuGtH/FPl3H2xf4LrhJCFA== X-Google-Smtp-Source: AGHT+IHlpMDRYoBCMSgoZ8HOR2xXY9Bjj3hsAadrWGArsiaFJXvp3bNDaAVPQpOp5TuEJpMJNyN5 X-Received: by 2002:a25:aae6:0:b0:dfa:748c:d351 with SMTP id 3f1490d57ef6-dfacac604bamr1518842276.37.1717561554650; Tue, 04 Jun 2024 21:25:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717561554; cv=pass; d=google.com; s=arc-20160816; b=O083bWTNBp3e2qFJwFWzgbl6Y8fNZB9t0p5TP/icAyugWXNzyaeqJytGxvfGpuOMO0 J4aK+EfMS+spfVcPtaGE393B8OAZqMSISoKHf2xqFTfe7r1bEUSnfIqbQc+BdgWh1daj Auzvemo7Xj0GDVNfvVooKRrCFQzzFwK0WSNi307V5KQUULrEEnySibzzVKrDtvRtVNyv t65xltKTJlsu7UVrXFqL41pF0MDWkeFZVeTOqPVxcxpLl44SWvrY7LloBmOtGt5AuUY8 +NmUM5PWcYDsHVkql0J7cGmqM+X9P8OJWmb9zPbgVQMhlLdW/QvwHMJo3HX+XCOhjuju +Ung== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=waT0AcrUOg+uWZ0+qjh1ei9vxb3C0YTsDDg3ERd1AtM=; fh=VKNQK9u9DSHToytb5DuEXP8ig8T/i9qmNzN3KZ9d+io=; b=TGnFMz4vDhM6Xp55A32jIhguBAs/ESqMQIG9RNIdrrPp1EpQWcPIEFbAsMsw2d/Ghf gIpwywocDUf0E24siC7v2rbu6nGCFHapB5yI01onXiDVokXbVH3kS/ApS78iMLHk6TIa EhJDdVTtMzSAz5koqaIxXggZBvbGcnUyTS9V6pqJs8ezWLAsJ49YOfXmmIug39AW8qBj kmLRXU9mJ3aDpzbkKg+KWe8ZVg78CklLwXrrNBMPb1LuoEgDhL9x9UnIAx961r64tMdv 4+S6RITWiBv18wETM7+CCIjOUnx6dRo9/dqSkIzKdT8L6kUARtiQ+RCEfl5nrj4uPhOG ySUw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="UYEd/bt5"; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-201745-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201745-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6ae4b415282si112002126d6.363.2024.06.04.21.25.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 21:25:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-201745-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=@chromium.org header.s=google header.b="UYEd/bt5"; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-201745-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201745-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.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 571371C21B3D for ; Wed, 5 Jun 2024 04:25:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0C0317FBDD; Wed, 5 Jun 2024 04:25:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="UYEd/bt5" Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com [209.85.167.46]) (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 81F68624 for ; Wed, 5 Jun 2024 04:25:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717561547; cv=none; b=eVPHHLPBeuDw0mnDTAjcrttbjgwKR3WQJNxk+d80ncXmRzh2XxnzFfsEBiSgB3a5RHbUbQo9aHv7F6py/2JYzmBk64PZlu6WwaIZKUon0H/l1+8xNPzGUP301f6giB9OZRjunL3HLjpxqNQW88RhmjwsMdK0ApAQ+pr+CcqE2jc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717561547; c=relaxed/simple; bh=oYyljKfcE/Wp2Hn8suGs0r3hNg5ct1E996pRxRLY9Kc=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=LdmB2Pag4ahqko1t5Qmb7y8OmZqs3PlWW2LnNFdY4NQgI4eWZGs7EKxlBjaNGY5ll6LCxXSD77AGl9+1llfFLJblo75dldExYzoXN+GyVk40xlauLbZuJI+9ON0w76GHvUGV7ZjUQinJEZ7wO2CdbwAoLS3bwV7qKZ756OF6c28= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=UYEd/bt5; arc=none smtp.client-ip=209.85.167.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-lf1-f46.google.com with SMTP id 2adb3069b0e04-52b8b638437so2029906e87.3 for ; Tue, 04 Jun 2024 21:25:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1717561544; x=1718166344; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=waT0AcrUOg+uWZ0+qjh1ei9vxb3C0YTsDDg3ERd1AtM=; b=UYEd/bt57X5GadaHmAEQjDM3/5ZsFYF1pqePjpER7MMukpEwj8xciBbrcGDIS4dJoL QClTFogECkY3NSiDE7I8A6ztWa3KYKxc1edu/iv0ZAMatyD49Mwlc+BE9gUE6zl0loLg ekRKm/xg+8Xfs2StSTWeteFyBoQY17AFGR3No= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717561544; x=1718166344; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=waT0AcrUOg+uWZ0+qjh1ei9vxb3C0YTsDDg3ERd1AtM=; b=Q/Gd4HkHJqX8wnK2njUsKMQQ04Qgq4GmDhOr6t+XlwDjo302bLgLv3FVxScFS0If7H FVmSc2xzJ180Ffb88H5oNcJCjtZNfJDgjX5FprDK+iR9241o+tB4jShFwy21SB6lmuaY AGnSU3r8vxFGg3Fh1GDxhm53ovi3oX/Q4Rf9a9Vpfn2hfU37DdlSTKS6p4TzI1VR/fJG sS4JylVuj0Jkten6zCB+icAVTYNPy6Qq2k20mpuharwUxxjIGP6EELtZM9su9kewGofq nn57d8J5znjc0k7viJNSxqxYjjkXMjA+E4fS4UUqsM94yY4MNvpW4hOKmDd8Wgtqgdck tSlg== X-Forwarded-Encrypted: i=1; AJvYcCVxuFvWK5ZNZaDyxm1NdmXErUmNuumI3u93WRkQNC6UhfniM7bRsAsRJuK162IFMyjPf5zI7m0ptJfmqgRZ5KRYu+L3bQ067Z2qySnf X-Gm-Message-State: AOJu0Yxf8wIwjibiUW44Xweql3zczdwNtnc7UTRXC6MSLv7H22IuuF4w rmLhiIi6TRVTnrpFXhrAhKWFtUxd1R+N04EFFtdF/ArZ4riMV8SQfwg8WDRr71WRw8qgM/llr97 vewMtCv1oUNUSg7QM0DQNN0zQXB8oGI4n7saS X-Received: by 2002:a19:520b:0:b0:52b:874a:a44 with SMTP id 2adb3069b0e04-52bab4dd1c0mr658131e87.25.1717561543571; Tue, 04 Jun 2024 21:25:43 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240604123922.331469-1-angelogioacchino.delregno@collabora.com> <20240604123922.331469-3-angelogioacchino.delregno@collabora.com> In-Reply-To: <20240604123922.331469-3-angelogioacchino.delregno@collabora.com> From: Chen-Yu Tsai Date: Wed, 5 Jun 2024 12:25:32 +0800 Message-ID: Subject: Re: [PATCH v2 2/2] drm/panfrost: Add support for Mali on the MT8188 SoC To: AngeloGioacchino Del Regno Cc: boris.brezillon@collabora.com, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, daniel@ffwll.ch, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, steven.price@arm.com, matthias.bgg@gmail.com, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Jun 4, 2024 at 8:39=E2=80=AFPM AngeloGioacchino Del Regno wrote: > > MediaTek MT8188 has a Mali-G57 MC3 (Valhall-JM): add a new > compatible and platform data using the same supplies and the > same power domain lists as MT8183 (one regulator, three power > domains). > > Signed-off-by: AngeloGioacchino Del Regno Reviewed-by: Chen-Yu Tsai > --- > drivers/gpu/drm/panfrost/panfrost_drv.c | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/drivers/gpu/drm/panfrost/panfrost_drv.c b/drivers/gpu/drm/pa= nfrost/panfrost_drv.c > index ef9f6c0716d5..4e2d9f671a0d 100644 > --- a/drivers/gpu/drm/panfrost/panfrost_drv.c > +++ b/drivers/gpu/drm/panfrost/panfrost_drv.c > @@ -777,6 +777,14 @@ static const struct panfrost_compatible mediatek_mt8= 186_data =3D { > .pm_features =3D BIT(GPU_PM_CLK_DIS) | BIT(GPU_PM_VREG_OFF), > }; > > +static const struct panfrost_compatible mediatek_mt8188_data =3D { > + .num_supplies =3D ARRAY_SIZE(mediatek_mt8183_b_supplies) - 1, > + .supply_names =3D mediatek_mt8183_b_supplies, > + .num_pm_domains =3D ARRAY_SIZE(mediatek_mt8183_pm_domains), > + .pm_domain_names =3D mediatek_mt8183_pm_domains, > + .pm_features =3D BIT(GPU_PM_CLK_DIS) | BIT(GPU_PM_VREG_OFF), > +}; > + > static const char * const mediatek_mt8192_supplies[] =3D { "mali", NULL = }; > static const char * const mediatek_mt8192_pm_domains[] =3D { "core0", "c= ore1", "core2", > "core3", "core= 4" }; > @@ -808,6 +816,7 @@ static const struct of_device_id dt_match[] =3D { > { .compatible =3D "mediatek,mt8183-mali", .data =3D &mediatek_mt8= 183_data }, > { .compatible =3D "mediatek,mt8183b-mali", .data =3D &mediatek_mt= 8183_b_data }, > { .compatible =3D "mediatek,mt8186-mali", .data =3D &mediatek_mt8= 186_data }, > + { .compatible =3D "mediatek,mt8188-mali", .data =3D &mediatek_mt8= 188_data }, > { .compatible =3D "mediatek,mt8192-mali", .data =3D &mediatek_mt8= 192_data }, > {} > }; > -- > 2.45.1 > >