Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp602741pxy; Wed, 21 Apr 2021 10:15:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwVz6L5YnkYE46Attm+W+91ACO0do9VtMZQuo/D6E4FhjaRNaC2SdmECZoXbiWT9iZ7m5tU X-Received: by 2002:a17:906:a0c2:: with SMTP id bh2mr32927552ejb.394.1619025323305; Wed, 21 Apr 2021 10:15:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619025323; cv=none; d=google.com; s=arc-20160816; b=tZJml5gyw5s56d9yRdEtUk794kzTUB2KZ0t28y4LU5XQZjOKK48BRhLKniQW5ofRQd MEBNuppj0A8NwsAL4O1rqApYNgpYhmjFypOWaj3lKbsRUIE7DOfoRFyPX9E2zhd03aob fd6ki1RvxIIEz1IX+nL9ibe1v6yciozWqX+wVN07vNJlotME+2XaF1VyuKcTVcwKrhFD QzheGOMOXf1y1UerRx0T5+lAcGi8h5Kcz83IeWP97hR3CAD7QZkMV2FY3bh8YqNm2p3M xQYS+t6P4VHuzZQNIrqs9nYZaGnhiqSKBhOQLfzrygqICWykNbN3eIVvtQidc05ysdt2 r0Hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=HDPjZMjWCZKqakVSIF2+cy5E4MqjSXUEPkpK+UOoNls=; b=sHpSJeQ2gqB2wpoC3dyYltdlkJ3trKTuNpIcSGF7fHMxKBaF6x0JrVG7l5jijJqSbx tgue6un0lqjF+qvOkIEIKXcztisOKQp+hO1JEGxKLl0q9YRkSttCQxAuPq4g9WZZuCft VpOR61IjKagp3e8lW6WIonK6+7hfhbZ2HwYctZZI1BLmHII1UqPFlROsIc7ZdXdh7E5O 9m/+5r+QMiAaNbbA3PWhY0FYttIRxgqsZ2a1NmXbibsaqC7j5TYBZ0EdXr4qct+POpSE XJEp6A4lQK8yItPJpfru5Es+8jFiDlrdE/Nlqt3X6JKSi4mnGMQg9iAYShI7hKevIIFx Xjsg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bh18si2350347ejb.405.2021.04.21.10.15.00; Wed, 21 Apr 2021 10:15:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242584AbhDUNVA (ORCPT + 99 others); Wed, 21 Apr 2021 09:21:00 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:33230 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241559AbhDUNRr (ORCPT ); Wed, 21 Apr 2021 09:17:47 -0400 Received: from maud (unknown [IPv6:2600:8800:8c03:4000::11ea]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: alyssa) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id B8F551F42E3B; Wed, 21 Apr 2021 14:17:09 +0100 (BST) Date: Wed, 21 Apr 2021 09:17:04 -0400 From: Alyssa Rosenzweig To: Nicolas Boichat Cc: Rob Herring , Steven Price , Alyssa Rosenzweig , fshao@chromium.org, hsinyi@chromium.org, hoegsberg@chromium.org, Tomeu Vizoso , Neil Armstrong , boris.brezillon@collabora.com, Daniel Vetter , David Airlie , Matthias Brugger , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH v13 4/4] drm/panfrost: Add mt8183-mali compatible string Message-ID: References: <20210421052855.1279713-1-drinkcat@chromium.org> <20210421132841.v13.4.I5f6b04431828ec9c3e41e65f3337cec6a127480d@changeid> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210421132841.v13.4.I5f6b04431828ec9c3e41e65f3337cec6a127480d@changeid> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Not that you need it but this patch is Reviewed-by: Alyssa Rosenzweig On Wed, Apr 21, 2021 at 01:28:55PM +0800, Nicolas Boichat wrote: > Add support for MT8183's G72 Bifrost. > > Signed-off-by: Nicolas Boichat > Reviewed-by: Tomeu Vizoso > Reviewed-by: Steven Price > --- > > (no changes since v7) > > Changes in v7: > - Fix GPU ID in commit message > > Changes in v6: > - Context conflicts, reflow the code. > - Use ARRAY_SIZE for power domains too. > > Changes in v5: > - Change power domain name from 2d to core2. > > Changes in v4: > - Add power domain names. > > Changes in v3: > - Match mt8183-mali instead of bifrost, as we require special > handling for the 2 regulators and 3 power domains. > > 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 83a461bdeea8..ca07098a6141 100644 > --- a/drivers/gpu/drm/panfrost/panfrost_drv.c > +++ b/drivers/gpu/drm/panfrost/panfrost_drv.c > @@ -665,6 +665,15 @@ static const struct panfrost_compatible amlogic_data = { > .vendor_quirk = panfrost_gpu_amlogic_quirk, > }; > > +const char * const mediatek_mt8183_supplies[] = { "mali", "sram" }; > +const char * const mediatek_mt8183_pm_domains[] = { "core0", "core1", "core2" }; > +static const struct panfrost_compatible mediatek_mt8183_data = { > + .num_supplies = ARRAY_SIZE(mediatek_mt8183_supplies), > + .supply_names = mediatek_mt8183_supplies, > + .num_pm_domains = ARRAY_SIZE(mediatek_mt8183_pm_domains), > + .pm_domain_names = mediatek_mt8183_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 +690,7 @@ static const struct of_device_id dt_match[] = { > { .compatible = "arm,mali-t860", .data = &default_data, }, > { .compatible = "arm,mali-t880", .data = &default_data, }, > { .compatible = "arm,mali-bifrost", .data = &default_data, }, > + { .compatible = "mediatek,mt8183-mali", .data = &mediatek_mt8183_data }, > {} > }; > MODULE_DEVICE_TABLE(of, dt_match); > -- > 2.31.1.368.gbe11c130af-goog >