Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp322538lqp; Wed, 12 Jun 2024 02:40:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVnYo4Ggsv0L47WtOmvgCrnzapRbaxnfoEyrKk05OmStE5msIcaZtfLTlb7LPa8mFnVps7dFVSFuksTPytyErayx7SaJSbOzP2nkfUmfQ== X-Google-Smtp-Source: AGHT+IG/eMYx9dHsxxkFeQzdDMLek5deUN33DJx59b9K8zzKIfH7ZQmO3fuqBBczsxPwJiAxAMhm X-Received: by 2002:a17:906:7f12:b0:a6f:4ba4:c389 with SMTP id a640c23a62f3a-a6f4ba4c532mr48296666b.16.1718185212379; Wed, 12 Jun 2024 02:40:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718185212; cv=pass; d=google.com; s=arc-20160816; b=MD8mMeVx4fGFUGrQY5UkVF2Tk8ymM0wh1wX9+wupeFDJcjSbPF6gxJOX6RFByL0ziu oYObUMmAmU6pE3vVAuE8kRRdnoXzZNrvBEPK7AtMuia1B21RLyTCmNr3hFxz30aiSVy1 gwCyp6lEOem45vSm6RJ6wM48xw4vZzRZal/MLe7Meic4qrXbsIyJqmNV5VzM0hDG63Dy I9/LnkWxiZVzumkN8qiyAH4cRVu3uKYsT405DjSSVSFBANE0Ry3REwgOBFzvCne8zMGJ jAHfEjOEkxY5+eAhkFaFaVgcwrl2IVtdJR8bEd0CJpD6MaVykM2uFOHy/X8NpN2PfMnD V7VA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=RVFtwGBrRLe5r9ax1x27o27cM+ZvOc/QI8YRANsAxZs=; fh=ng3PYKc16FWQMdIf+T6ZBe0f4/Qw/z66yIUKqJl30bk=; b=qlKIk4qCsb4sduBFtGLAE2UxaFsqcFMOzOzdG5B92lon+IbpaZNBYKdwN7CtLQxzT3 7y0t/jiWdfmZR+pKi3I4cwjTsoml/rFJeu3nMppkZdjSzjlS//ICcToR/TONL9ZaSN4m XyuJMQ0ss1RxSj0IH2E3MIQdrAcmDaN4Ng95MTyVZ6v91yh8YfISVmagejNXXxVGmepl Qd1V6JweZZvE6WXA8S7ziz1yBMX5eGhhXF50sK0oFp1aYhN8iF9VUGlthhLYo3mg7now GtN/gpyxW0X/+oxXBtK30KdsCuJQQClhcbIWymXzxNYELjC02tS6PQls7u0T5vyfhR1Y tktA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-211266-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211266-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a6f176a29d5si354657366b.670.2024.06.12.02.40.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 02:40:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-211266-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-211266-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211266-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com 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 270C01F282A4 for ; Wed, 12 Jun 2024 09:29:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 85C4D16DEB4; Wed, 12 Jun 2024 09:29:06 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 537F21CFB5; Wed, 12 Jun 2024 09:29:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718184546; cv=none; b=QRJ1pzMbjVA/sUxeBwyQ45OHpPdKZdInXRtzdBa1KKxlSQyg3NGDtputkD0F16K9f3NoYQltxeeionuNSXSJdoBCOIIDKkejZdqPtoOPpj9UgOfZNI0NeY+rSrpv876lCERd0FJAGWga7EGPJ8WmJmKjmSXOz+nSLFlutA6VRl4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718184546; c=relaxed/simple; bh=DsxnX5L2k3IkFgc1OU5UIunCZy/+2T26BRmIyb3T3R4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=jPtHjq4uTrDF4Kb7q80MLHGm0gVkn9oM2McXyNhdCQBNFRLSnGbFxSzUARg4Ih/WPrZTg/gpseR4ZwBdYJzZJMvGaTO31XmHxIZT+hl640GCdcBUSZoEnvwJ/zvP7XKqYk03IyjtVNs9UvLzcjO4zswcBB6pGbUWS1koW3PpGGQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 49AAE1595; Wed, 12 Jun 2024 02:29:27 -0700 (PDT) Received: from [10.57.42.88] (unknown [10.57.42.88]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E497B3F64C; Wed, 12 Jun 2024 02:28:58 -0700 (PDT) Message-ID: <6304a5a2-1ca0-4e6c-8c0a-e7b320f64c7d@arm.com> Date: Wed, 12 Jun 2024 10:28:58 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 2/2] drm/panfrost: Add support for Mali on the MT8188 SoC To: AngeloGioacchino Del Regno , boris.brezillon@collabora.com Cc: 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, 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, Chen-Yu Tsai References: <20240611085602.491324-1-angelogioacchino.delregno@collabora.com> <20240611085602.491324-3-angelogioacchino.delregno@collabora.com> From: Steven Price Content-Language: en-GB In-Reply-To: <20240611085602.491324-3-angelogioacchino.delregno@collabora.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 11/06/2024 09:56, 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). > > Reviewed-by: Chen-Yu Tsai > Signed-off-by: AngeloGioacchino Del Regno Reviewed-by: Steven Price > --- > drivers/gpu/drm/panfrost/panfrost_drv.c | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/drivers/gpu/drm/panfrost/panfrost_drv.c b/drivers/gpu/drm/panfrost/panfrost_drv.c > index ef9f6c0716d5..b43557b10ae3 100644 > --- a/drivers/gpu/drm/panfrost/panfrost_drv.c > +++ b/drivers/gpu/drm/panfrost/panfrost_drv.c > @@ -777,6 +777,15 @@ static const struct panfrost_compatible mediatek_mt8186_data = { > .pm_features = BIT(GPU_PM_CLK_DIS) | BIT(GPU_PM_VREG_OFF), > }; > > +/* MT8188 uses the same power domains and power supplies as MT8183 */ > +static const struct panfrost_compatible mediatek_mt8188_data = { > + .num_supplies = ARRAY_SIZE(mediatek_mt8183_b_supplies) - 1, > + .supply_names = mediatek_mt8183_b_supplies, > + .num_pm_domains = ARRAY_SIZE(mediatek_mt8183_pm_domains), > + .pm_domain_names = mediatek_mt8183_pm_domains, > + .pm_features = BIT(GPU_PM_CLK_DIS) | BIT(GPU_PM_VREG_OFF), > +}; > + > static const char * const mediatek_mt8192_supplies[] = { "mali", NULL }; > static const char * const mediatek_mt8192_pm_domains[] = { "core0", "core1", "core2", > "core3", "core4" }; > @@ -808,6 +817,7 @@ static const struct of_device_id dt_match[] = { > { .compatible = "mediatek,mt8183-mali", .data = &mediatek_mt8183_data }, > { .compatible = "mediatek,mt8183b-mali", .data = &mediatek_mt8183_b_data }, > { .compatible = "mediatek,mt8186-mali", .data = &mediatek_mt8186_data }, > + { .compatible = "mediatek,mt8188-mali", .data = &mediatek_mt8188_data }, > { .compatible = "mediatek,mt8192-mali", .data = &mediatek_mt8192_data }, > {} > };