Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp74505lqb; Tue, 4 Jun 2024 05:41:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU8OQLQPq1Q3V9EjAz8FviHl+1Ds8QpnBqjygNJDboa7QJJbZAcWzzUzDQtn2xjCpjnmqlvRs30W0dWtIQO8mP++DCK/sd8eX9H/Ys9fg== X-Google-Smtp-Source: AGHT+IEz072JprQqsvqL1ulO7RX+4waGxQqKfDc2rH85gbvpoBKenWepo45ELIHL2SJMlN6DHANh X-Received: by 2002:a19:c514:0:b0:52b:798e:74e8 with SMTP id 2adb3069b0e04-52b895b573emr7266505e87.39.1717504896762; Tue, 04 Jun 2024 05:41:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717504896; cv=pass; d=google.com; s=arc-20160816; b=nF92wckDMgP5zwZlqqUZWauYbp1ow1oPmj+6V4apIxv6gtcM6xjKFFxxmfydZtfirz t/PR+8pNAYrt2tBFrhacJHl4rinS+KDUiPZ5YVq2o+byZS2NQ+MJE0omar495zYdAm2i OB6Bk+1j/BpEfQTB4sddKwg4UTzt5ZKVU/xZe/Y5Rtm2Tsh9ufPpuO3yWuoPtdhLReNJ CSEmmkktdhkqlVqZIPB3hfpKYrAQGxnnmLYROrKnby9doWrL4ZoQzeNMB+E2AsaWJN+u IU9MU7kWFbsJwUVxdvHc5tEat0QO12vqw9FV5qsEVltR8FjXH/B0if6ha002phzwawfy n8hg== 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=gEu6Sl9uq29xpTKPZYdNxdRGMUttT0V2f5MXyW+3dcE=; fh=tx4GCQJDA9ULsSeJ+MLJP5E3mPKECQaCFUOJbJgpIzc=; b=Om/4c7u7kQdiyjDrj9JEqoAwBU1al7QD7iF7cKHxXRItqA3b1kGta731fw+80DLE3Q 2PizAearsdIU2M3nPaui/J85o9oXLyyBXwkLkb/I35X7YI0kGtNXPQ0NRGvLS2/CiHIr qdgc7C4srMiFipcGdzpbCMxmX3YOzjHSCIlJavyzgiMKKFmdZOuJbPFR5C/xiA+M2wKG Ibq+ax5uGw9is43oRYyEfPbV1u/eLLi7z4j55bTFX5I3gHS3N6cwIm0xcN+cLrVwkwck szNICvEx3sSCOOhWXrltUf4O5Xp1Rwq3nWrsRshnfO2gOahVWjN5K2NIbOZN1j+HWj9J g8pA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=MuUCaa2O; 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-200618-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200618-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57a31c76130si4788553a12.363.2024.06.04.05.41.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 05:41:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-200618-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=MuUCaa2O; 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-200618-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200618-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 7956A1F25B3A for ; Tue, 4 Jun 2024 12:41:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A09431487DA; Tue, 4 Jun 2024 12:39:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="MuUCaa2O" 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 41DE1146D6B; Tue, 4 Jun 2024 12:39:30 +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=1717504771; cv=none; b=IPMjUWrRamqXEfWw+i60i/Eblfr/m/eYTWqaNiE+bgF1oDb4M0tszQNMsK6fKpq/hpNhL4bo0QhpElSC7x/BFuBvpX4R9CMmXAlk8uNUnykT9DhQB7wgMDfgisg27Sv0rNCoPo75+xZ6r+NYLIIYfPFYffVGA5kvuQBzbud63WI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717504771; c=relaxed/simple; bh=8GuiXIytBzEOOq1loh/sdanwydxd8B84OUGGGBmQrxs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=fm5ZxudNRuxOGFCUKZpa5KQVPLlHh0YHY6fAstcNx9tSzMIR8fRywvBh8N5dlcT6N4TA+A5r1RmPXe3IYgi3ayW7UyIMwqtwKgQLIRtafl5eLaoCFJsz5YKcZiLz70uGl5I+D1sNtP+JwxYEx7gvsee3Lkew2AyF3ELSq3Cpu0M= 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=MuUCaa2O; 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=1717504768; bh=8GuiXIytBzEOOq1loh/sdanwydxd8B84OUGGGBmQrxs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MuUCaa2O/d75m45tHK6ensCCO3PlYnhkaWl+8S0AGUp85xfKyffI56SDFAq9YjuGd xSw2vFMNE8A413ZNTo4Lg4yAw5Zix4P4OF/t5b1IhIFB+Mor2coDVhI/Ln2cG2t8+h wjXVsw+e2M0jtLWBIcT4oQ7RwPFKndylW6VrGm7dlNAsADputoz4hE3jNH+CTmTCKT zI+cBBOkU0QuDBqKWfVWFq2qLd2097HkDodMD3znfYg+5dGCsNvhwGcpiwJeOFbPfL 4NUqOV0I1TZrHtmGZ1PKl/8v1qHe/q4Kz5l7J+jL/3zVWq3/QsvEv1+zK4OYAeAn3g IMHm2Zv6Uytiw== 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 7C4C837821F4; Tue, 4 Jun 2024 12:39:27 +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 Subject: [PATCH v2 2/2] drm/panfrost: Add support for Mali on the MT8188 SoC Date: Tue, 4 Jun 2024 14:39:22 +0200 Message-ID: <20240604123922.331469-3-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240604123922.331469-1-angelogioacchino.delregno@collabora.com> References: <20240604123922.331469-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). Signed-off-by: AngeloGioacchino Del Regno --- 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/panfrost/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_mt8186_data = { .pm_features = BIT(GPU_PM_CLK_DIS) | BIT(GPU_PM_VREG_OFF), }; +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 +816,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.1