Message ID | 20230228102704.708150-3-angelogioacchino.delregno@collabora.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2933597wrd; Tue, 28 Feb 2023 02:30:39 -0800 (PST) X-Google-Smtp-Source: AK7set8D8v4vWwhOVTTyM3Ks00tZVBhqKleBOBcLIbk+VH3C18pNd5E4Uf9wYBu1gz3XsI4vonxY X-Received: by 2002:aa7:c419:0:b0:4ac:bab1:feee with SMTP id j25-20020aa7c419000000b004acbab1feeemr2459054edq.24.1677580238850; Tue, 28 Feb 2023 02:30:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677580238; cv=none; d=google.com; s=arc-20160816; b=wBr6b2Pcv2JPgq+PzrbDrodPlX+EhpbkrMqp0mICFxroPbseNXo/Uo8EegvrerYtYb LDKVqnVBFbzwyUL29dbzaw5nCcaqsF41NR5+rGyPOwQPWfaN7vkIyGzm7KE7H245a40p ATkLPapoVnub/ztERVl+Mw0SIsYFu0ade1BsFDzsndUrs5Vz8eof4ZH6tVLNKh+tVvHs TVkQDoUHDmQ+xZadTvpOAnrTWd469jNrHaBx44vj64pH+16qrOA7BVjw+oujX1qj2lAG FvUl/Cmz3EtDydrH47J0B0rKsXQt4cIzOEMY9R/zQy/EnvylVfOWu0dhARwrgwr0Tsei gZTg== 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=xFSNjgvQCbRLKguJlWgZtXeN1OyCNt0GGC7S26hO71c=; b=K8y6W7iK2Adr+qCP+D5iSjniEGSvxv9EKqReGiXUfI0tZsc5D/ngIR/7lk2EZNHsAC rlkxQEUy/E47FvcrQ9AhDbhukny0tt5GXEsvlzpq+Y0k8DjjZCn4nnaEgJEFGQ1dWPsl l1tMdAS/moeyAQqvneBJb1ko7HEkBFZi596hj492ReeDAfTGrv/Cr30TCeHqc9yVaHnl jh04KeCPlFc0cDQHPFG0B7zFXOtAZK3RwE9xPrJjz2N3hUsW6CRl5ENdKhq/HKWfHECF kOq3lMXlgd/P6VbO4ly7N1XT8uKYFDZWQuoswPQ/DF8bRX+eyBdEb+M0ABKTJm0BXG8n O/9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=S8Eds0pn; 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 j17-20020a50ed11000000b004acccc5f7e8si3446507eds.307.2023.02.28.02.30.16; Tue, 28 Feb 2023 02:30:38 -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=S8Eds0pn; 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 S229992AbjB1K1X (ORCPT <rfc822;brysonjbanks@gmail.com> + 99 others); Tue, 28 Feb 2023 05:27:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230520AbjB1K1N (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 28 Feb 2023 05:27:13 -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 0A367126D4; Tue, 28 Feb 2023 02:27:12 -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 01DB46602FDA; Tue, 28 Feb 2023 10:27:10 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1677580031; bh=IUwSDoZ0KzMAk6G35a7rYGldsO2EXTi5ixj8lVj11EM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=S8Eds0pn6StacRidqZGXiX9a612WEx1EH26yZRBqyAP74bbjvEgbKJTpWdOVcnk3k 4r21SW3n48f0VBiyTwGIMgLDxASk32LY0CqLzSnmqnjm42qDhDoeqk8iAPNmrduvsq 8oMChUnwHmO324BfRJ76hwV4dyh06bEzl2scsCSGpXxcvulEoUuJsaIQ9mdrF4iBz/ Nwd3CqURq4E5cOg2w8vAp0ltFLi5qLNJ8ORVj12bTXXbitwOKIMHxp4OWFGjRZoSfe C+FfmzyBZ0qR6J+qwkGC6Xd7VFmGt0lNygeNbG/qRRvaiG5dVPP0pu2Z/BzKog21T7 1V5sIotQniwjQ== From: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> 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 <angelogioacchino.delregno@collabora.com> Subject: [PATCH v4 03/12] dt-bindings: gpu: mali-bifrost: Fix power-domain-names validation Date: Tue, 28 Feb 2023 11:26:55 +0100 Message-Id: <20230228102704.708150-3-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230228102704.708150-1-angelogioacchino.delregno@collabora.com> References: <20230228102704.708150-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759070376074486933?= X-GMAIL-MSGID: =?utf-8?q?1759070376074486933?= |
Series |
[v4,01/12] dt-bindings: gpu: mali-bifrost: Split out MediaTek power-domains variation
|
|
Commit Message
AngeloGioacchino Del Regno
Feb. 28, 2023, 10:26 a.m. UTC
Commit ("dt-bindings: gpu: mali-bifrost: Add Mediatek MT8183")
incorrectly introduced power domain names for MT8183, causing
validation issues.
Add power-domain-names to the base schema, allowing a maximum of
five elements; since platforms having a single power domain don't
need any actual domain name, disallow that for each sub-schema.
Fixes: a7a596cd3115 ("dt-bindings: gpu: mali-bifrost: Add Mediatek MT8183")
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
---
.../devicetree/bindings/gpu/arm,mali-bifrost.yaml | 7 +++++++
1 file changed, 7 insertions(+)
Comments
On Tue, Feb 28, 2023 at 6:27 PM AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> wrote: > > Commit ("dt-bindings: gpu: mali-bifrost: Add Mediatek MT8183") > incorrectly introduced power domain names for MT8183, causing > validation issues. > > Add power-domain-names to the base schema, allowing a maximum of > five elements; since platforms having a single power domain don't > need any actual domain name, disallow that for each sub-schema. > > Fixes: a7a596cd3115 ("dt-bindings: gpu: mali-bifrost: Add Mediatek MT8183") > Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Tested-by: Chen-Yu Tsai <wenst@chromium.org> with `make dt_binding_check` and `make dtbs_check`
On Tue, Feb 28, 2023 at 11:26:55AM +0100, AngeloGioacchino Del Regno wrote: > Commit ("dt-bindings: gpu: mali-bifrost: Add Mediatek MT8183") > incorrectly introduced power domain names for MT8183, causing > validation issues. > > Add power-domain-names to the base schema, allowing a maximum of > five elements; since platforms having a single power domain don't > need any actual domain name, disallow that for each sub-schema. > > Fixes: a7a596cd3115 ("dt-bindings: gpu: mali-bifrost: Add Mediatek MT8183") > Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> > --- > .../devicetree/bindings/gpu/arm,mali-bifrost.yaml | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml b/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml > index 5b7f1c9d2b30..bf0f7f1f71e0 100644 > --- a/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml > +++ b/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml > @@ -65,6 +65,10 @@ properties: > minItems: 1 > maxItems: 5 > > + power-domain-names: > + minItems: 1 If you are disallowing for a single domain, then this could be 2... Reviewed-by: Rob Herring <robh@kernel.org> > + maxItems: 5 > + > resets: > minItems: 1 > maxItems: 3 > @@ -112,6 +116,7 @@ allOf: > properties: > power-domains: > maxItems: 1 > + power-domain-names: false > required: > - resets > - if: > @@ -136,6 +141,7 @@ allOf: > - const: bus_ace > power-domains: > maxItems: 1 > + power-domain-names: false > resets: > minItems: 3 > reset-names: > @@ -186,6 +192,7 @@ allOf: > - const: bus > power-domains: > maxItems: 1 > + power-domain-names: false > required: > - clock-names > > -- > 2.39.2 >
diff --git a/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml b/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml index 5b7f1c9d2b30..bf0f7f1f71e0 100644 --- a/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml +++ b/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml @@ -65,6 +65,10 @@ properties: minItems: 1 maxItems: 5 + power-domain-names: + minItems: 1 + maxItems: 5 + resets: minItems: 1 maxItems: 3 @@ -112,6 +116,7 @@ allOf: properties: power-domains: maxItems: 1 + power-domain-names: false required: - resets - if: @@ -136,6 +141,7 @@ allOf: - const: bus_ace power-domains: maxItems: 1 + power-domain-names: false resets: minItems: 3 reset-names: @@ -186,6 +192,7 @@ allOf: - const: bus power-domains: maxItems: 1 + power-domain-names: false required: - clock-names