Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp6347335ybf; Thu, 5 Mar 2020 18:44:36 -0800 (PST) X-Google-Smtp-Source: ADFU+vtGuCAyU/nI33WfKz9vzXhiXoS9Of0ZbIMD5q0S0/1yTmyyw3rOmLOImJxCzL0zirg93e5M X-Received: by 2002:aca:d68a:: with SMTP id n132mr1177421oig.40.1583462675928; Thu, 05 Mar 2020 18:44:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583462675; cv=none; d=google.com; s=arc-20160816; b=vG/s9Q72bzN0iy/U7GDn6uKPLXcP+6FGElTGteJ6GHRfE30Cx2dM7PAkkVH6Q5k0Nt qqBcL5z0z3/aydZmSAQOEnx3B2eb2JtNUOqUSOA/4KOi0moit1NsloS1ERRcABhGiAss QU6qRH/y8tmWv79zPzpj4igOFDUopi3VyR0pe4Bnlgbfuo7NipXao8v0K1+SengVPXo1 gJkvETSPDqMg9/kQCEtzWZNvWHxsqmasSaQ4W+ycWzL1h9ofRQRajVYSs1W4DXXjbuqz NoSUa+g0W44C3Zyg+9l086q5zbfLgQ/EYGBDypi9jCjgY6+f1XaCpkQPF4GoogPdrEGs 5IZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=9J7QUZ3c6oiJJHOCislF9UdZETLylotw3HiKvwmAMXw=; b=faSHEEbxky2k5LxV8VJi6Im8JiWSPQF2T7lZFbGS/uOAVZ7sFmPGuAx9oH4RICcGe2 FZBlRqkKbvgtz9CWGo5oMq0r5hAAoRoGQMddtU2etNZAf+hjFf/5zwR21QUiUsfKrGXY SYMhpeSy6XTt0DOIKEKdr1Z9mlmRcZC3yFSwqEpSa+HIfYFAO8qU9/Sri4exmx1LMsoj VUoqFMATxG7qdUXh1og6bk/TQxgqqE5bvAGvA+pMNNKHg6XhKMCH3OoqTRQVwp9og6g0 /Kx9FrHrD8RpSQVm9MVr5SdvwikpjovD3y/HXhV7udcN4JaAjaSMweOfky/yRQ3KhGMt XbIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=E+5Hc2Ro; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l9si548698otd.134.2020.03.05.18.44.24; Thu, 05 Mar 2020 18:44:35 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=E+5Hc2Ro; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726563AbgCFCnt (ORCPT + 99 others); Thu, 5 Mar 2020 21:43:49 -0500 Received: from mail-vs1-f66.google.com ([209.85.217.66]:39465 "EHLO mail-vs1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726251AbgCFCns (ORCPT ); Thu, 5 Mar 2020 21:43:48 -0500 Received: by mail-vs1-f66.google.com with SMTP id a19so610199vsp.6 for ; Thu, 05 Mar 2020 18:43:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=9J7QUZ3c6oiJJHOCislF9UdZETLylotw3HiKvwmAMXw=; b=E+5Hc2RoJaRGHZP8HBhUfdRXIeqRGN8m1mX+ZoYWKE5rFmO3rqVE3tD2ahZFs+pdHi /4HyvgWRRhRjVfxlEvKX9ZPO9o/jWmDyGVazqEkLQNal6+cTur8SCs2MkknKUJJlpzN5 DZe43h++B4igVoAiSlhNUnAYvsmvti3qQYbV8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=9J7QUZ3c6oiJJHOCislF9UdZETLylotw3HiKvwmAMXw=; b=DIElQgLgiM8YTpKHearhx1emaI9Wm/NyPuATkgBQgOj7IZN2AcmW42+PanoIDkNPd/ 6lA50y/iCjsrblIAVJss/Qb/c4gKkmhvOJ3f70cuVZDtGQzCR2sMe8la9HQ76aTXYXyl 43wmKONHevx2PYnPmaIjBdIVpjKIRWbGsqrYHted5k1lWqpBspZc4157ozI59Y5hKlBy 54ymLg2bZWDnL1CjngGz7raps+v/PbOKgq27NQQ0Q1JxRhGa5dghDyhaLEKagEc0F7fz PmTyMGrv85lLurRQNExC/jIIKTHRPabd0rk/dAzK9CyGTDq3wEg37Kca1knd+XqWVR8K cAEA== X-Gm-Message-State: ANhLgQ23JSM+ouWmDVkkN/Nm7drGwz01Pb9D1MtXegxE+xxlEk7A/m1a 0zdyUx6Y44iv+TS8yUFNd8Xv0zPLpA9DA0Ce4QMGzA== X-Received: by 2002:a67:d81b:: with SMTP id e27mr927920vsj.79.1583462626960; Thu, 05 Mar 2020 18:43:46 -0800 (PST) MIME-Version: 1.0 References: <20200207052627.130118-1-drinkcat@chromium.org> <20200207052627.130118-2-drinkcat@chromium.org> <20200225171613.GA7063@bogus> <1583462055.4947.6.camel@mtksdaap41> In-Reply-To: <1583462055.4947.6.camel@mtksdaap41> From: Nicolas Boichat Date: Fri, 6 Mar 2020 10:43:35 +0800 Message-ID: Subject: Re: [PATCH v4 1/7] dt-bindings: gpu: mali-bifrost: Add Mediatek MT8183 To: Nick Fan Cc: Rob Herring , Sj Huang , David Airlie , Daniel Vetter , Mark Rutland , Matthias Brugger , Tomeu Vizoso , Steven Price , Alyssa Rosenzweig , Liam Girdwood , Mark Brown , dri-devel , Devicetree List , lkml , linux-arm Mailing List , "moderated list:ARM/Mediatek SoC support" , Hsin-Yi Wang , Ulf Hansson Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 6, 2020 at 10:34 AM Nick Fan wrote: > > Sorry for my late reply. > I have checked internally. > The MT8183_POWER_DOMAIN_MFG_2D is just a legacy name, not really 2D > domain. > > If the naming too confusing, we can change this name to > MT8183_POWER_DOMAIN_MFG_CORE2 for consistency. Thanks! I think I'll keep MT8183_POWER_DOMAIN_MFG_2D (that's fine if that's the domain name you use internally in your HW design), but I'll modify power-domain-names to core0/1/2 in the binding. > Thanks > > Nick Fan > > On Wed, 2020-02-26 at 08:55 +0800, Nicolas Boichat wrote: > > > +Nick Fan +Sj Huang @ MTK > > > > On Wed, Feb 26, 2020 at 1:16 AM Rob Herring wrote: > > > > > > On Fri, Feb 07, 2020 at 01:26:21PM +0800, Nicolas Boichat wrote: > > > > Define a compatible string for the Mali Bifrost GPU found in > > > > Mediatek's MT8183 SoCs. > > > > > > > > Signed-off-by: Nicolas Boichat > > > > Reviewed-by: Alyssa Rosenzweig > > > > --- > > > > > > > > v4: > > > > - Add power-domain-names description > > > > (kept Alyssa's reviewed-by as the change is minor) > > > > v3: > > > > - No change > > > > > > > > .../bindings/gpu/arm,mali-bifrost.yaml | 25 +++++++++++++++++++ > > > > 1 file changed, 25 insertions(+) > > > > > > > > diff --git a/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml b/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml > > > > index 4ea6a8789699709..0d93b3981445977 100644 > > > > --- a/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml > > > > +++ b/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml > > > > @@ -17,6 +17,7 @@ properties: > > > > items: > > > > - enum: > > > > - amlogic,meson-g12a-mali > > > > + - mediatek,mt8183-mali > > > > - realtek,rtd1619-mali > > > > - rockchip,px30-mali > > > > - const: arm,mali-bifrost # Mali Bifrost GPU model/revision is fully discoverable > > > > @@ -62,6 +63,30 @@ allOf: > > > > minItems: 2 > > > > required: > > > > - resets > > > > + - if: > > > > + properties: > > > > + compatible: > > > > + contains: > > > > + const: mediatek,mt8183-mali > > > > + then: > > > > + properties: > > > > + sram-supply: true > > > > + power-domains: > > > > + description: > > > > + List of phandle and PM domain specifier as documented in > > > > + Documentation/devicetree/bindings/power/power_domain.txt > > > > + minItems: 3 > > > > + maxItems: 3 > > > > + power-domain-names: > > > > + items: > > > > + - const: core0 > > > > + - const: core1 > > > > + - const: 2d > > > > > > AFAIK, there's no '2d' block in bifrost GPUs. A power domain for each > > > core group is correct though. > > > > Good question... Hopefully Nick/SJ@MTK can comment, the non-upstream DTS has: > > gpu: mali@13040000 { > > compatible = "mediatek,mt8183-mali", "arm,mali-bifrost"; > > power-domains = <&scpsys MT8183_POWER_DOMAIN_MFG_CORE0>; > > ... > > } > > > > gpu_core1: mali_gpu_core1 { > > compatible = "mediatek,gpu_core1"; > > power-domains = <&scpsys MT8183_POWER_DOMAIN_MFG_CORE1>; > > }; > > > > gpu_core2: mali_gpu_core2 { > > compatible = "mediatek,gpu_core2"; > > power-domains = <&scpsys MT8183_POWER_DOMAIN_MFG_2D>; > > }; > > > > So I picked core0/core1/2d as names, but looking at this, it's likely > > core2 is more appropriate (and MT8183_POWER_DOMAIN_MFG_2D might just > > be a internal/legacy name, if there is no real 2d domain). > > > > Thanks. > > > > > Rob >