Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp222901lqp; Tue, 11 Jun 2024 02:30:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXgAehivmCz3V0It4ywmjqfBdv96mdSGWJVjE6Ph0ZP0kZAd6t1SgB41B5Ihum0iKOo+/sb3MemZc3rGx2OdhQpnwOxQxjlJV8EDbE1fg== X-Google-Smtp-Source: AGHT+IF+fmGiDcKjtRx3gYf6VeuGNMGJebMZNw/GUvFDuNXMZD6CcUpNuyrLZmINzdK9ZJDpEzqX X-Received: by 2002:a17:902:ce91:b0:1e6:7700:1698 with SMTP id d9443c01a7336-1f6d02f482dmr143571625ad.35.1718098237993; Tue, 11 Jun 2024 02:30:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718098237; cv=pass; d=google.com; s=arc-20160816; b=HPugMIkylNkBH3WqpGy5IJQEkpakRV0gFVpl0xp3ijYjEZ3W36GD4fUK/t5CgRRV7H rRLr1it2QjJcRUfevl6TgXFtv6unTwNBqc34vBofJx3oEDS+DmRTYnhMIU84/GW8tQIi C1Gnpwow+zrClM+YaJ6L86YI9manR3YJXLiya009Hvk4eNq0DmvFrTgaHqaeH9XPSqNP 3ovtXV2ssxOKpOs0lLPqNeHhyDIuq/X547AfdnqCi9FWLIs4Hk1/56IaaumakQWfq9FH i1VwfevYLGQhgh5SJS2kuY+s8UvcJflCTlZkXKZs1uoz/kE/mWOAVXBk12VeNDu/dKT+ jxJQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=PWrzE93eozKELUV9AhMY2zwUiiZM2yIHTF8qO/gSqFc=; fh=DqhUAM6fkvjf3rt6Np4O6ZDYSlYwgmOdk9zcKHZl7jk=; b=I1aDSwXhRl8/f8G1lbRCYkZfgipVdE+z4XBYi3oWxsHY8z3Zy40zvts0qhj2GKZWT7 RCahBatQYz4mENxBdO3al3uZPATbzDBYTwiQM0gRRM6jsA5HciG26vHArvrDGl4KJMBK WRQg8n1YBghwuq+VEenYpdbDf0Lo+d39/h6sLIkXOMfCmKCCkYOX+cTnD2sw7djo31wU Qe1I/ZBo0FapfGr50vE9bX/5+bBBzuEkhmqMux6/IvwEJELx+ZRJpFM7vZSI5QIoQEx7 Ms3XwOPfM5fjoGTrApgJvJMaufC6CQvqlD2OV7UgzHOXW6k7olvv6xwAuz2HfhzLxRH4 4COQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=eCKfL5qs; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-209533-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209533-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f6d8c70177si73422445ad.28.2024.06.11.02.30.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 02:30:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-209533-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=eCKfL5qs; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-209533-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209533-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 6E9F8B290A5 for ; Tue, 11 Jun 2024 08:57:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2A6D6178CC3; Tue, 11 Jun 2024 08:56:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="eCKfL5qs" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DD70717623A; Tue, 11 Jun 2024 08:56:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718096172; cv=none; b=oaKiWQ+34PtgsfC67AxdW8pV+Cwlgd0HEcj1ZQtwORQMTzmSLp0fPqsKxDzvdGKkCGaOxDrbURKVL8ZOdHhqP8lckivkf0Y5uyFktYHUf8SdRMbFu0chyXV+MYzHGgAHGrAMQqoUJ4QK0sJkvcYvphO09Dzf1cyARlVAWju30tc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718096172; c=relaxed/simple; bh=cnIJtrznV6h9d/xAr9/uNAXnPfcZk6/iS2ar3GbUMdc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=lhNN7HleWWcItSP3aFmEg03LB9ZFYCGhty0CNyneEVaJ9uHKXshrzIlW8cchAhPxdlntwlxzbs4kfG4GILx2vaVw+6AJHtTfLjXHSuOBS7JneyuCB+/df45vaAXpPdnQubt+Vb3AJVc6g2x8mAKZ1e8/t8/HfXUsJP/zaoFJTE0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=eCKfL5qs; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1718096169; bh=cnIJtrznV6h9d/xAr9/uNAXnPfcZk6/iS2ar3GbUMdc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eCKfL5qsspepMmy/Te/D3skWgGUJG+6vBCJ6XXNGHpEistFsDWL+GF2sGzxQdKiGC ZM0NpluLDC84QkHRHoabJD093hEyTEVWJi/CX+sieg3YmlM7YRX5DC6E/YJTSvI3mH 3x5gSzXvl3o0r401WfIaQXW/8hfdb35TKjBoZRPjhKpEMNyW5fhHrM1yNCH0ZzlANz spafVEY0yBe8LwlobM3nPb43DS71ScsK5Q7tWv/rQ0aCXAIwQzMr04cjLz6Z9rXGsP odwBQTqX/87eg2fG8MdGi+UM+IAsfK04eX+ezsDamjnxJAW//Rw1h00vqStwa7joDH N8fyE5cGhz0zg== Received: from IcarusMOD.eternityproject.eu (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 34046378217A; Tue, 11 Jun 2024 08:56:08 +0000 (UTC) From: AngeloGioacchino Del Regno To: 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, steven.price@arm.com, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.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 Subject: [PATCH v3 2/2] drm/panfrost: Add support for Mali on the MT8188 SoC Date: Tue, 11 Jun 2024 10:56:02 +0200 Message-ID: <20240611085602.491324-3-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240611085602.491324-1-angelogioacchino.delregno@collabora.com> References: <20240611085602.491324-1-angelogioacchino.delregno@collabora.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 --- 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 }, {} }; -- 2.45.2