From: Rob Herring <robh@kernel.org>
To: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Cc: Chen-Yu Tsai <wenst@chromium.org>,
airlied@gmail.com, tomeu.vizoso@collabora.com,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
dri-devel@lists.freedesktop.org, steven.price@arm.com,
linux-mediatek@lists.infradead.org,
alyssa.rosenzweig@collabora.com,
krzysztof.kozlowski+dt@linaro.org, matthias.bgg@gmail.com,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 1/9] dt-bindings: gpu: mali-bifrost: Don't allow sram-supply by default
Date: Thu, 9 Feb 2023 12:11:48 -0600 [thread overview]
Message-ID: <20230209181148.GA575482-robh@kernel.org> (raw)
In-Reply-To: <0faf89cb-4709-17c9-0d67-da7ef2ddb7e6@collabora.com>
On Thu, Feb 09, 2023 at 10:15:33AM +0100, AngeloGioacchino Del Regno wrote:
> Il 09/02/23 03:50, Chen-Yu Tsai ha scritto:
> > On Wed, Feb 8, 2023 at 6:37 PM AngeloGioacchino Del Regno
> > <angelogioacchino.delregno@collabora.com> wrote:
> > >
> > > The sram-supply is MediaTek-specific, it is and will ever be used
> > > only for the mediatek,mt8183-mali compatible due to the addition of
> > > the mediatek-regulator-coupler driver: change the binding to add
> > > this supply when mediatek,mt8183-mali is present as a compatible
> > > instead of disabling it when not present.
> > >
> > > This is done in preparation for adding new bindings for other
> > > MediaTek SoCs, such as MT8192 and others.
> > >
> > > Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
> > > ---
> > > Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml | 4 +---
> > > 1 file changed, 1 insertion(+), 3 deletions(-)
> > >
> > > diff --git a/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml b/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml
> > > index 78964c140b46..69212f3b1328 100644
> > > --- a/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml
> > > +++ b/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml
> > > @@ -57,8 +57,6 @@ properties:
> > >
> > > mali-supply: true
> > >
> > > - sram-supply: true
> > > -
> >
> > Have you tried actually validating the device trees against this?
> > Based on my previous tests this gives out errors.
>
> I did... and I didn't get any complaint... but perhaps something went wrong
> on my side?
>
> I mean, I can retry just to be sure.
You should need unevaluatedProperties instead of additionalProperties
for this to work. The latter cannot 'see' into an if/then schema.
But really we want the default top level to allow this and then disallow
it in an if/then schema.
Rob
WARNING: multiple messages have this Message-ID (diff)
From: Rob Herring <robh@kernel.org>
To: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Cc: Chen-Yu Tsai <wenst@chromium.org>,
airlied@gmail.com, tomeu.vizoso@collabora.com,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
dri-devel@lists.freedesktop.org, steven.price@arm.com,
linux-mediatek@lists.infradead.org,
alyssa.rosenzweig@collabora.com,
krzysztof.kozlowski+dt@linaro.org, matthias.bgg@gmail.com,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 1/9] dt-bindings: gpu: mali-bifrost: Don't allow sram-supply by default
Date: Thu, 9 Feb 2023 12:11:48 -0600 [thread overview]
Message-ID: <20230209181148.GA575482-robh@kernel.org> (raw)
In-Reply-To: <0faf89cb-4709-17c9-0d67-da7ef2ddb7e6@collabora.com>
On Thu, Feb 09, 2023 at 10:15:33AM +0100, AngeloGioacchino Del Regno wrote:
> Il 09/02/23 03:50, Chen-Yu Tsai ha scritto:
> > On Wed, Feb 8, 2023 at 6:37 PM AngeloGioacchino Del Regno
> > <angelogioacchino.delregno@collabora.com> wrote:
> > >
> > > The sram-supply is MediaTek-specific, it is and will ever be used
> > > only for the mediatek,mt8183-mali compatible due to the addition of
> > > the mediatek-regulator-coupler driver: change the binding to add
> > > this supply when mediatek,mt8183-mali is present as a compatible
> > > instead of disabling it when not present.
> > >
> > > This is done in preparation for adding new bindings for other
> > > MediaTek SoCs, such as MT8192 and others.
> > >
> > > Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
> > > ---
> > > Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml | 4 +---
> > > 1 file changed, 1 insertion(+), 3 deletions(-)
> > >
> > > diff --git a/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml b/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml
> > > index 78964c140b46..69212f3b1328 100644
> > > --- a/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml
> > > +++ b/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml
> > > @@ -57,8 +57,6 @@ properties:
> > >
> > > mali-supply: true
> > >
> > > - sram-supply: true
> > > -
> >
> > Have you tried actually validating the device trees against this?
> > Based on my previous tests this gives out errors.
>
> I did... and I didn't get any complaint... but perhaps something went wrong
> on my side?
>
> I mean, I can retry just to be sure.
You should need unevaluatedProperties instead of additionalProperties
for this to work. The latter cannot 'see' into an if/then schema.
But really we want the default top level to allow this and then disallow
it in an if/then schema.
Rob
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
WARNING: multiple messages have this Message-ID (diff)
From: Rob Herring <robh@kernel.org>
To: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Cc: devicetree@vger.kernel.org, tomeu.vizoso@collabora.com,
linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org,
steven.price@arm.com, linux-mediatek@lists.infradead.org,
alyssa.rosenzweig@collabora.com,
krzysztof.kozlowski+dt@linaro.org,
Chen-Yu Tsai <wenst@chromium.org>,
matthias.bgg@gmail.com, linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 1/9] dt-bindings: gpu: mali-bifrost: Don't allow sram-supply by default
Date: Thu, 9 Feb 2023 12:11:48 -0600 [thread overview]
Message-ID: <20230209181148.GA575482-robh@kernel.org> (raw)
In-Reply-To: <0faf89cb-4709-17c9-0d67-da7ef2ddb7e6@collabora.com>
On Thu, Feb 09, 2023 at 10:15:33AM +0100, AngeloGioacchino Del Regno wrote:
> Il 09/02/23 03:50, Chen-Yu Tsai ha scritto:
> > On Wed, Feb 8, 2023 at 6:37 PM AngeloGioacchino Del Regno
> > <angelogioacchino.delregno@collabora.com> wrote:
> > >
> > > The sram-supply is MediaTek-specific, it is and will ever be used
> > > only for the mediatek,mt8183-mali compatible due to the addition of
> > > the mediatek-regulator-coupler driver: change the binding to add
> > > this supply when mediatek,mt8183-mali is present as a compatible
> > > instead of disabling it when not present.
> > >
> > > This is done in preparation for adding new bindings for other
> > > MediaTek SoCs, such as MT8192 and others.
> > >
> > > Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
> > > ---
> > > Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml | 4 +---
> > > 1 file changed, 1 insertion(+), 3 deletions(-)
> > >
> > > diff --git a/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml b/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml
> > > index 78964c140b46..69212f3b1328 100644
> > > --- a/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml
> > > +++ b/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml
> > > @@ -57,8 +57,6 @@ properties:
> > >
> > > mali-supply: true
> > >
> > > - sram-supply: true
> > > -
> >
> > Have you tried actually validating the device trees against this?
> > Based on my previous tests this gives out errors.
>
> I did... and I didn't get any complaint... but perhaps something went wrong
> on my side?
>
> I mean, I can retry just to be sure.
You should need unevaluatedProperties instead of additionalProperties
for this to work. The latter cannot 'see' into an if/then schema.
But really we want the default top level to allow this and then disallow
it in an if/then schema.
Rob
next prev parent reply other threads:[~2023-02-09 18:13 UTC|newest]
Thread overview: 76+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-08 10:37 [PATCH 0/9] Panfrost: Improve and add MediaTek SoCs support AngeloGioacchino Del Regno
2023-02-08 10:37 ` AngeloGioacchino Del Regno
2023-02-08 10:37 ` AngeloGioacchino Del Regno
2023-02-08 10:37 ` [PATCH 1/9] dt-bindings: gpu: mali-bifrost: Don't allow sram-supply by default AngeloGioacchino Del Regno
2023-02-08 10:37 ` AngeloGioacchino Del Regno
2023-02-08 10:37 ` AngeloGioacchino Del Regno
2023-02-09 2:50 ` Chen-Yu Tsai
2023-02-09 2:50 ` Chen-Yu Tsai
2023-02-09 2:50 ` Chen-Yu Tsai
2023-02-09 9:15 ` AngeloGioacchino Del Regno
2023-02-09 9:15 ` AngeloGioacchino Del Regno
2023-02-09 9:15 ` AngeloGioacchino Del Regno
2023-02-09 18:11 ` Rob Herring [this message]
2023-02-09 18:11 ` Rob Herring
2023-02-09 18:11 ` Rob Herring
2023-02-08 10:37 ` [PATCH 2/9] dt-bindings: gpu: mali-bifrost: Allow up to 5 power domains for MT8192 AngeloGioacchino Del Regno
2023-02-08 10:37 ` AngeloGioacchino Del Regno
2023-02-08 10:37 ` AngeloGioacchino Del Regno
2023-02-09 8:33 ` Chen-Yu Tsai
2023-02-09 8:33 ` Chen-Yu Tsai
2023-02-09 8:33 ` Chen-Yu Tsai
2023-02-09 9:17 ` AngeloGioacchino Del Regno
2023-02-09 9:17 ` AngeloGioacchino Del Regno
2023-02-09 9:17 ` AngeloGioacchino Del Regno
2023-02-09 18:13 ` Rob Herring
2023-02-09 18:13 ` Rob Herring
2023-02-09 18:13 ` Rob Herring
2023-02-08 10:37 ` [PATCH 3/9] dt-bindings: gpu: mali-bifrost: Add compatible for MT8195 SoC AngeloGioacchino Del Regno
2023-02-08 10:37 ` AngeloGioacchino Del Regno
2023-02-08 10:37 ` AngeloGioacchino Del Regno
2023-02-09 18:15 ` Rob Herring
2023-02-09 18:15 ` Rob Herring
2023-02-09 18:15 ` Rob Herring
2023-02-08 10:37 ` [PATCH 4/9] dt-bindings: gpu: mali-bifrost: Add new MT8183 compatible AngeloGioacchino Del Regno
2023-02-08 10:37 ` AngeloGioacchino Del Regno
2023-02-08 10:37 ` AngeloGioacchino Del Regno
2023-02-09 18:15 ` Rob Herring
2023-02-09 18:15 ` Rob Herring
2023-02-09 18:15 ` Rob Herring
2023-02-08 10:37 ` [PATCH 5/9] dt-bindings: gpu: mali-bifrost: Add a compatible for MediaTek MT8186 AngeloGioacchino Del Regno
2023-02-08 10:37 ` AngeloGioacchino Del Regno
2023-02-08 10:37 ` AngeloGioacchino Del Regno
2023-02-09 8:49 ` Chen-Yu Tsai
2023-02-09 8:49 ` Chen-Yu Tsai
2023-02-09 8:49 ` Chen-Yu Tsai
2023-02-09 8:49 ` Chen-Yu Tsai
2023-02-09 9:20 ` AngeloGioacchino Del Regno
2023-02-09 9:20 ` AngeloGioacchino Del Regno
2023-02-09 9:20 ` AngeloGioacchino Del Regno
2023-02-09 9:20 ` AngeloGioacchino Del Regno
2023-02-09 9:45 ` Chen-Yu Tsai
2023-02-09 9:45 ` Chen-Yu Tsai
2023-02-09 9:45 ` Chen-Yu Tsai
2023-02-09 9:45 ` Chen-Yu Tsai
2023-02-09 9:58 ` AngeloGioacchino Del Regno
2023-02-09 9:58 ` AngeloGioacchino Del Regno
2023-02-09 9:58 ` AngeloGioacchino Del Regno
2023-02-09 9:58 ` AngeloGioacchino Del Regno
2023-02-08 10:37 ` [PATCH 6/9] drm/panfrost: Increase MAX_PM_DOMAINS to 5 AngeloGioacchino Del Regno
2023-02-08 10:37 ` AngeloGioacchino Del Regno
2023-02-08 10:37 ` AngeloGioacchino Del Regno
2023-02-08 10:37 ` [PATCH 7/9] drm/panfrost: Add the MT8192 GPU ID AngeloGioacchino Del Regno
2023-02-08 10:37 ` AngeloGioacchino Del Regno
2023-02-08 10:37 ` AngeloGioacchino Del Regno
2023-02-08 10:37 ` [PATCH 8/9] drm/panfrost: Add mediatek,mt8192-mali compatible AngeloGioacchino Del Regno
2023-02-08 10:37 ` AngeloGioacchino Del Regno
2023-02-08 10:37 ` AngeloGioacchino Del Regno
2023-02-08 10:37 ` [PATCH 9/9] drm/panfrost: Add new compatible for Mali on the MT8183 SoC AngeloGioacchino Del Regno
2023-02-08 10:37 ` AngeloGioacchino Del Regno
2023-02-08 10:37 ` AngeloGioacchino Del Regno
2023-02-08 15:11 ` [PATCH 0/9] Panfrost: Improve and add MediaTek SoCs support Steven Price
2023-02-08 15:11 ` Steven Price
2023-02-08 15:11 ` Steven Price
2023-02-09 9:10 ` Chen-Yu Tsai
2023-02-09 9:10 ` Chen-Yu Tsai
2023-02-09 9:10 ` Chen-Yu Tsai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230209181148.GA575482-robh@kernel.org \
--to=robh@kernel.org \
--cc=airlied@gmail.com \
--cc=alyssa.rosenzweig@collabora.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=matthias.bgg@gmail.com \
--cc=steven.price@arm.com \
--cc=tomeu.vizoso@collabora.com \
--cc=wenst@chromium.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.