Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4278731ybv; Tue, 25 Feb 2020 16:56:33 -0800 (PST) X-Google-Smtp-Source: APXvYqx+C0p1fiCWV1eC5WBd0UIi2EgZhln3E7ahaACZVytvw8+A8hmHgYjocAC+VJAm0Pvllb+T X-Received: by 2002:aca:4ace:: with SMTP id x197mr1280194oia.23.1582678593251; Tue, 25 Feb 2020 16:56:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582678593; cv=none; d=google.com; s=arc-20160816; b=H6+FM1G7ztswADuoPqxFYbKqwTgUWtb0iB3sZWO2IjVY7456O7Ydx+2jNOkjfqBRdd Z7jnI330XFgXOtQG+tqdrWfiXbwJCv2aiHRy5WjM+yD6Qxf6Ib8mGheHX2k9szdjv6xR Qkp53fEUF9DYUlR9+ZgTXWkWRjj0ZVoKDJJl3yiQBtSgy3V8e49WrAbW5Y2VFpXIMqI/ n2furGKlY3jyK2+kE9gW+3AgzduaiANCgSDx2cHL57NI/Gt4ffyySCaTi8IO/PnkIF1F K6HKyoLBcoraVlD4Z2nCVTpE6Dw9WHk+358UTdtoTKQZ5cZpzyaHlCdiMrQSW1D+Q3JN VGWg== 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=KTr07x+ZuW+Wkx10CmLSTlKU+6ax9EaUyaBXKAF3OqM=; b=xAmGYhmpe8QAuUl4muH3ucYlykS7QWO8qZPCeBZ/V/LnxcyzpfmjUVwnkcLeU+PK1r OTI4UT6nNCSYf2W7O4DAsORJ1fnMVSwHZa5KTinJXb5pu3cmhPNRRecGfXUvy0/QV0nd VTDWdcrlMZFZB3C16gtluvY0z36g7PTg728J/qBaF0Y/+vYyzwarvZHPSEzp2epxhSr1 7DWT52/o+MzzXplUT6CAfrpJ+3n0SgNal/yhgCqsxLEtmcUEb+sCwx6jUZr6wtIZCG4Z 2BA/fnyjv+sFzB1r2aqcDaBbKNwziZQhWdkz7gIO1nDKvLP1gMIDvGSluf/rXzvVW6Vj ycYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Y7BmXd6M; 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 w135si231773oiw.44.2020.02.25.16.56.20; Tue, 25 Feb 2020 16:56:33 -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=Y7BmXd6M; 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 S1729582AbgBZA4C (ORCPT + 99 others); Tue, 25 Feb 2020 19:56:02 -0500 Received: from mail-qt1-f193.google.com ([209.85.160.193]:42251 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729465AbgBZA4C (ORCPT ); Tue, 25 Feb 2020 19:56:02 -0500 Received: by mail-qt1-f193.google.com with SMTP id r5so1063513qtt.9 for ; Tue, 25 Feb 2020 16:56:01 -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=KTr07x+ZuW+Wkx10CmLSTlKU+6ax9EaUyaBXKAF3OqM=; b=Y7BmXd6Mfp+6AZ5v7tzuyEct+NldmkDhFbkaCIoOl6/SfR059Z2NK44rQkbVc+4j7t n0RrGob1lJqy4jSvVTBHC3x7e53bCvZCs0af4K9zwmRDwcKU3x3vY+Goiu220sgiSxhg LkPCOLYG0N6aE3fNLH+xw2IiIErd9z+gBVRxo= 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=KTr07x+ZuW+Wkx10CmLSTlKU+6ax9EaUyaBXKAF3OqM=; b=EvH2a2WamY9TlgTTqEaFKYdVo59zE4RhTJflNoG+oLDCDBBPNVfKnRXfa01Z+zC9tR clqJMhXnOyQfnM9ovHIbWLUfTasfIreVLJyqXy5GBiSW/Kj4QaPQxhuHBdl3XTAdL6Uj qKudUaHJENqXFKTtuwTnU3rptQDCvfjYgrgz+kwDkPgAjjSSRNftq59r+qed0MqPjts9 AN6h2c7x5R8ZXuOjmMKQirU3bVFrtnqwUWeZphY6FjlI3ZVMZjBlzS2VhP9UyK3HkT+O Xk2qPRcNyMOyCatRhK5OngCmdVOmRg5Kkbwus8N2s2ym59YplvwLc9B57sRIP0b75PNt 3bSA== X-Gm-Message-State: APjAAAXUjV3Dr699m7gXYK6abs9VYz3oCNPu/TLTMpJ6tyvqyo0vHZhm 8uMavS9HzDrzMLQTwDsjmvQ9tQXhgGnRtuk3Q5VxbQ== X-Received: by 2002:ac8:72d6:: with SMTP id o22mr1774873qtp.174.1582678561028; Tue, 25 Feb 2020 16:56:01 -0800 (PST) MIME-Version: 1.0 References: <20200207052627.130118-1-drinkcat@chromium.org> <20200207052627.130118-2-drinkcat@chromium.org> <20200225171613.GA7063@bogus> In-Reply-To: <20200225171613.GA7063@bogus> From: Nicolas Boichat Date: Wed, 26 Feb 2020 08:55:50 +0800 Message-ID: Subject: Re: [PATCH v4 1/7] dt-bindings: gpu: mali-bifrost: Add Mediatek MT8183 To: Rob Herring , Nick Fan , Sj Huang Cc: 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 +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