From patchwork Thu Feb 23 13:34:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 60976 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp316471wrd; Thu, 23 Feb 2023 05:39:31 -0800 (PST) X-Google-Smtp-Source: AK7set93fxS5nFGQqbtP1kvmv4f8nwgzaWN2VGmx9eIIGqmeo2+2/F9vSfT210kJ/qGXJSrKWVtA X-Received: by 2002:a05:6402:35c9:b0:4ad:9b2:5e70 with SMTP id z9-20020a05640235c900b004ad09b25e70mr13502833edc.1.1677159570929; Thu, 23 Feb 2023 05:39:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677159570; cv=none; d=google.com; s=arc-20160816; b=w6rsjhsQ26Lvon8nddze5x4gSVFUTglldM322Vfk2xqOLCecZ+IE74ZcKXxHt8LZ6Y PmVlmYWZaPY6ijXiEPTwmX6sPNF3fPsaJMvZnu/3mnjnyNpttKb5FluvIpyIrrSKfCrL NgBXYEqNDU9JYs3lj9Hnmf++LvV2n7CfTLHpBWCkRwUb/WsA0HIsmPruuUnxdLLe7wmU Wkj9hJI9l+EorrjUmb5MwMkd7olRdH8vT49ZUTqTfVwzJutgpqPCl3QouqAHKP2zbfZC +4gF+JduvTKN+aPmohwzdJ7OBT04pKA0HjGe1XzWKb3t0odqPYoNK+kTAEPa2vhgB6rb UxrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=/rRZquBeL2jOnSPHoHCrDfUkL4Y+iXOG/ZqD2+1dOXQ=; b=vE1C8WDRFaPkS54QgEi6/Utn2KVJfQt6wYnLAGrZ4uScpWoYKAvc0cZgwrqQv+avJc fDYmpWYBIA0qIcTOFexXNFR4MOQoxIsoD3xLW/9Ua6hjL7Aqa+Yqo3kkBDfG5HXvoao0 8y7gy47wL8TxiBAUCiAXf8gv40l/ix0kdqSG0Vlbg+//sq2SRYOkCk3RV9T7O0Ip1K8u jxHTncfo7bxsQXzTTZGmyE9x6KEdySA2+UMi8FHHE2dR3p+dnNTlcDlC16vlYEUnCJ5F r9LWSgjPYDKaq8spmgYOhNvWYzq48uXKptFPVUIIBntOdhEELBDGWySQP3dK9UwhR0M5 iMJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=K2hEs3qW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qa9-20020a170907868900b008eb33b0bb02si5980109ejc.427.2023.02.23.05.39.07; Thu, 23 Feb 2023 05:39:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=K2hEs3qW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233883AbjBWNf0 (ORCPT + 99 others); Thu, 23 Feb 2023 08:35:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234041AbjBWNfE (ORCPT ); Thu, 23 Feb 2023 08:35:04 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E26B35273; Thu, 23 Feb 2023 05:35:02 -0800 (PST) Received: from IcarusMOD.eternityproject.eu (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (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 madras.collabora.co.uk (Postfix) with ESMTPSA id C04366602207; Thu, 23 Feb 2023 13:35:00 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1677159301; bh=XOBRNDDFJGfYsIgxMZ/xxG6T/bqER3TGwYBPNyV4tY8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=K2hEs3qWTn6Jo3MfIL2vRN2fscHXem6euUhAtaPSESk/8f+QmDgSKg4RNQkN7ADfG yNLagQDw1+8fH4IyI5bf9aUaxNRXWGD3K1LHA/QpY0nPMqJLmwsv+Hz1XHoaCiBdEK 3lWrNGkg5nsymLLa3V4R64G9yrDPZxlAgLgsomQyGPj1WpI8YXQ1E29Kc9CTlDpV6G BbiUu1CpwYfCkqsgdqJP4x255zFuZfC8gQdVd+uN70vEz6Wykcqj3dlu7DHrmQata3 hSjaG5/xFnUII6Gd3ZUu/r7S9OKfK9KE95yWYbGhkyQ3IgObvy9x7HYXI7mxj6Lf1/ jJnNG8vAes+wA== From: AngeloGioacchino Del Regno To: airlied@gmail.com Cc: daniel@ffwll.ch, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, steven.price@arm.com, alyssa.rosenzweig@collabora.com, matthias.bgg@gmail.com, robh@kernel.org, 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, wenst@chromium.org, AngeloGioacchino Del Regno Subject: [PATCH v3 09/11] drm/panfrost: Add mediatek,mt8192-mali compatible Date: Thu, 23 Feb 2023 14:34:38 +0100 Message-Id: <20230223133440.80941-10-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230223133440.80941-1-angelogioacchino.delregno@collabora.com> References: <20230223133440.80941-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758629273899387301?= X-GMAIL-MSGID: =?utf-8?q?1758629273899387301?= From: Alyssa Rosenzweig Required for Mali-G57 on the Mediatek MT8192 and MT8195, which uses even more power domains than the MT8183 before it. Signed-off-by: Alyssa Rosenzweig [Angelo: Removed unneeded "sram" supply, added mt8195 to commit description] Co-developed-by: AngeloGioacchino Del Regno Signed-off-by: AngeloGioacchino Del Regno Reviewed-by: Steven Price Reviewed-by: Chen-Yu Tsai --- drivers/gpu/drm/panfrost/panfrost_drv.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/gpu/drm/panfrost/panfrost_drv.c b/drivers/gpu/drm/panfrost/panfrost_drv.c index abb0dadd8f63..5d25e77e1037 100644 --- a/drivers/gpu/drm/panfrost/panfrost_drv.c +++ b/drivers/gpu/drm/panfrost/panfrost_drv.c @@ -663,6 +663,16 @@ static const struct panfrost_compatible mediatek_mt8183_data = { .pm_domain_names = mediatek_mt8183_pm_domains, }; +static const char * const mediatek_mt8192_supplies[] = { "mali", NULL }; +static const char * const mediatek_mt8192_pm_domains[] = { "core0", "core1", "core2", + "core3", "core4" }; +static const struct panfrost_compatible mediatek_mt8192_data = { + .num_supplies = ARRAY_SIZE(mediatek_mt8192_supplies) - 1, + .supply_names = mediatek_mt8192_supplies, + .num_pm_domains = ARRAY_SIZE(mediatek_mt8192_pm_domains), + .pm_domain_names = mediatek_mt8192_pm_domains, +}; + static const struct of_device_id dt_match[] = { /* Set first to probe before the generic compatibles */ { .compatible = "amlogic,meson-gxm-mali", @@ -681,6 +691,7 @@ static const struct of_device_id dt_match[] = { { .compatible = "arm,mali-bifrost", .data = &default_data, }, { .compatible = "arm,mali-valhall-jm", .data = &default_data, }, { .compatible = "mediatek,mt8183-mali", .data = &mediatek_mt8183_data }, + { .compatible = "mediatek,mt8192-mali", .data = &mediatek_mt8192_data }, {} }; MODULE_DEVICE_TABLE(of, dt_match);