Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp3327771pxb; Tue, 20 Apr 2021 06:03:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIewue7eJpzy/1Vk1Wjbc6163rex77oNFJ9mArukzle1hAQLTBltE2XTYRti7siPKWGIQI X-Received: by 2002:a63:fb15:: with SMTP id o21mr16757218pgh.337.1618923838302; Tue, 20 Apr 2021 06:03:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618923838; cv=none; d=google.com; s=arc-20160816; b=0ixnvAOhhgwj0f0kDH8itbiQYGhH9oukjK5Km/+dsWaJN4yPry0r5SDq3rDVDljwCB RDc3NVTIxiFMU0EAt/VrtbRAdDEtsnPqznFwwwFbX3CYZzjzKA9844XecvKr5bjoTTJb urLN+ICqASZE6rSwPd/LJ9ZzwSnGB+Hh5G1gFYhleB8uTeJFrMvOjObg6hwJjH/64Hp8 4qJj8OnQb6z6bXMg6RgQezCY+JWuDUhrZZE7QYKeLbNXM4Daeu01sYbHRsWbaejrxOfh 4L6A7mpwoHpP3EECjU37E84iObbCOGOH3VtWwSv4399lDugwp/YH3WNT54SH0HqywBTa atlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=oI3WLoc16emqFSJUBXgZsDmVKNulmKDlxyGPVJHIlck=; b=OjBaeqxpmblBkaKu5GCCjoKyNymUGrM557O9JZ4F/NP8OP5kd+hDtSz06b66p5dWxa vR40f6S6mnIhkRZv5nssK6PZmwduEAKM/txvitGFZaHt+pjOL3fVTLUFO4pVGVMxh15K iNEa+kO5hEBETlf57R8a8v/nfMLrXXPzg2+4gV1YIlG44I+cvBv5Zt9ZLZSBsjsTeCkA RGvrbo1TKXItwBxItbIvdkTYmutSVNUUBJnn1jGUz0h4TI/K0AAFqBhqqrRbAQSFx1Qc W4/pxjJIVhhs03IUu4ShISOQIXSuXAGQ3QP3UFwpWRi3Ed1arOzDvRKRa9E/H0wKjXjn 0nig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VMumAygS; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t15si23766827pgo.596.2021.04.20.06.03.45; Tue, 20 Apr 2021 06:03:58 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VMumAygS; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232269AbhDTNCA (ORCPT + 99 others); Tue, 20 Apr 2021 09:02:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:56350 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232091AbhDTNB7 (ORCPT ); Tue, 20 Apr 2021 09:01:59 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id DA9EC613D0; Tue, 20 Apr 2021 13:01:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1618923686; bh=rtORbGc3mPMhlArrUrjghPvRhVtKXaf7d9TRrasS6l0=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=VMumAygSE2Ss89tpuyftaMuLsWVlHbuUiOCbE8Ai7UM5E6RsNHIG9Vf4xtaC5qwKr O/qTpB4pkucmnZ3hez0dd3jHy+B2ziZ24j2pdzihRTrnG631AEEeFTonndrokzneRV fAlejQkAack3j+VindxNlgBzaFt6E33gc8tfDylJhzkcXhrUMNnxV+lZ6QtSmdN5EQ +1QNhVUNNq7EWbL1+0+jlludkTmVA2DTA/EPQmmN7+A2XDrkH6E/Edh5Is/S5zN1UY Dm+m093pRdDh3yhZFuuV6lxhG7ADpLJlcxGCBoTiokyTGU3rhh236EaQmxjuveju2R kvvrKuGcEAYbA== Received: by mail-qk1-f178.google.com with SMTP id u20so6964803qku.10; Tue, 20 Apr 2021 06:01:26 -0700 (PDT) X-Gm-Message-State: AOAM532WT6gnQe63xUoGePZXcK7WyX/GXoJ7+pOe0StbObSIXubVf7A+ EbKcqHzZXqEzJFsLhyOuPFlscIl7Po8e5aATzQ== X-Received: by 2002:ae9:f819:: with SMTP id x25mr9783240qkh.68.1618923685847; Tue, 20 Apr 2021 06:01:25 -0700 (PDT) MIME-Version: 1.0 References: <20210126011759.1605641-1-drinkcat@chromium.org> <20210126091747.v11.1.Ie74d3355761aab202d4825ac6f66d990bba0130e@changeid> In-Reply-To: <20210126091747.v11.1.Ie74d3355761aab202d4825ac6f66d990bba0130e@changeid> From: Rob Herring Date: Tue, 20 Apr 2021 08:01:13 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v11 1/4] dt-bindings: gpu: mali-bifrost: Add Mediatek MT8183 To: Nicolas Boichat Cc: Steven Price , Alyssa Rosenzweig , Fei Shao , Tomeu Vizoso , "Kristian H. Kristensen" , Boris Brezillon , Hsin-Yi Wang , Daniel Vetter , David Airlie , Matthias Brugger , devicetree@vger.kernel.org, dri-devel , linux-arm-kernel , "linux-kernel@vger.kernel.org" , "moderated list:ARM/Mediatek SoC support" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 25, 2021 at 7:18 PM Nicolas Boichat wrote: > > Define a compatible string for the Mali Bifrost GPU found in > Mediatek's MT8183 SoCs. > > Signed-off-by: Nicolas Boichat > --- > > Changes in v11: > - binding: power-domain-names not power-domainS-names > > Changes in v10: > - Fix the binding to make sure sram-supply property can be provided. > > Changes in v9: None > Changes in v8: None > Changes in v7: None > Changes in v6: > - Rebased, actually tested with recent mesa driver. > > Changes in v5: > - Rename "2d" power domain to "core2" > > Changes in v4: > - Add power-domain-names description > (kept Alyssa's reviewed-by as the change is minor) > > Changes in v3: None > Changes in v2: None > > .../bindings/gpu/arm,mali-bifrost.yaml | 28 +++++++++++++++++++ > 1 file changed, 28 insertions(+) > > diff --git a/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml b/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml > index 184492162e7e..3e758f88e2cd 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 > @@ -41,6 +42,8 @@ properties: > > mali-supply: true > > + sram-supply: true > + > operating-points-v2: true > > power-domains: > @@ -87,6 +90,31 @@ allOf: > then: > required: > - resets > + - if: > + properties: > + compatible: > + contains: > + const: mediatek,mt8183-mali > + then: > + properties: > + power-domains: > + description: > + List of phandle and PM domain specifier as documented in > + Documentation/devicetree/bindings/power/power_domain.txt > + minItems: 3 > + maxItems: 3 This won't work because the top level schema restricts this to 1. The top level needs to say: power-domains: minItems: 1 maxItems: 3 And you need just 'minItems: 3' here and 'maxItems: 1' in the else clause. And drop the description. That's every 'power-domains' property. > + power-domain-names: > + items: > + - const: core0 > + - const: core1 > + - const: core2 Blank line > + required: > + - sram-supply > + - power-domains > + - power-domain-names > + else: > + properties: > + sram-supply: false > > examples: > - | > -- > 2.30.0.280.ga3ce27912f-goog >