From patchwork Tue Feb 21 15:37:39 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: 60144 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp79027wrd; Tue, 21 Feb 2023 07:44:22 -0800 (PST) X-Google-Smtp-Source: AK7set/BCeXrTU2vVwDRNV9/MdiAvidyPa59h8IUm85vw3Jxp7NwtkIbF6AIbgaBDELjSSwbjIpK X-Received: by 2002:a17:90b:1c10:b0:234:1621:3792 with SMTP id oc16-20020a17090b1c1000b0023416213792mr7031661pjb.4.1676994261983; Tue, 21 Feb 2023 07:44:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676994261; cv=none; d=google.com; s=arc-20160816; b=zhF9xHug4In+GN6TzGbAz2s9+RRcVStnYcR4tftOWhzO7lr/an0Cc4BZVCMIedRqcK +4mSkceb3eK8scs8TyNbu8jwfrL6rCyes4DDibemnE1qbRgdH9R8+J2xwkNjlAXC4t3n hZjafnODCXP4/dGc+HSCwLEuIsUP5YO2+hcDNtXtOliXbreyASdg5WV1GrqO5NsIrLq1 o25g0AE8UOidKm2b1TVpYVSVkU0DXHbpRkVHcN2dSe3Nguy1CdydS/VaQ41RFtNpCPVE PYlIRY8ddm1M19VGP0OVAqH/hDW4mwD0Ii17rjFVVcF6RfrsQrUbQ9BR4IvEuNV398/n /57A== 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=Fi/eufbuylNe+i63/30CJ+SifcU0FMwFTfMC0R/39IewPsuvGhy1Ohz4yvZ0PcM+Mr d3CzRaG1BHJG5WUHYUZlHAD78JuPCPU9Lwnb5UYQ7sCi+b5/NTEMLxLXpulzC3eHzVaW 9DPnvSsi5TsM5o9Ywr2UUcK/56LzaVeYec39gieP6tWK32ExmnNFoBohjY0hLrr5SYFi zCqHn1r8HrroBWvaN/FEv7C52lwPEv4N5772YZ9H46b72UHmwXQuaESKxi79QzLiKCUZ 9UTQoBI/WjAbeRAMjZT7brrLfIqKi03/RjZZaOMfKjzdB9A8YUYq7/QMorsnyK+VHy1H Eq2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=TrsF2Zyp; 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 ch8-20020a17090af40800b00233bafad308si4103072pjb.150.2023.02.21.07.44.06; Tue, 21 Feb 2023 07:44:21 -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=TrsF2Zyp; 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 S234683AbjBUPiQ (ORCPT + 99 others); Tue, 21 Feb 2023 10:38:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234703AbjBUPiC (ORCPT ); Tue, 21 Feb 2023 10:38:02 -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 79BD52BF1C; Tue, 21 Feb 2023 07:37:53 -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 104D666021CD; Tue, 21 Feb 2023 15:37:52 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1676993872; bh=XOBRNDDFJGfYsIgxMZ/xxG6T/bqER3TGwYBPNyV4tY8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TrsF2ZypFqBW/bFW+D9vITUwBlUQmc7X2dV7H+9+GCQRSLcrcgaqvgJKiXy6AY22m sLpSh/oNr3lXRepkMyKbiIhoWxkQvRPTYxrONI7RCCeEDo3XmMNflF3uAyrJHBJnc0 EJSCfPgDiThzY9s6UyUE2bI7E3nY433Mza3tMzLh66+eUeWJeK4jYG5pSKttwil/yI 4AtFcfZ3CuyH3O8cuC4Sb5kKJPZXwM7F72wZAQA6SMXxMvBLaDUSkskyajmC07z2b0 Rl39zya/RTIQUWR9z8qN/a0gihB4NnU1YSn7MiJ6yogg5GevScbfKrG+DLqx8W6SDC FSoHCoGOhTqXQ== 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 v2 09/10] drm/panfrost: Add mediatek,mt8192-mali compatible Date: Tue, 21 Feb 2023 16:37:39 +0100 Message-Id: <20230221153740.1620529-10-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230221153740.1620529-1-angelogioacchino.delregno@collabora.com> References: <20230221153740.1620529-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?1758455935264618726?= X-GMAIL-MSGID: =?utf-8?q?1758455935264618726?= 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);