[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87fr8fxipc.fsf@bootlin.com>
Date: Fri, 09 Jan 2026 10:02:07 +0100
From: Miquel Raynal <miquel.raynal@...tlin.com>
To: "Rob Herring (Arm)" <robh@...nel.org>
Cc: Richard Weinberger <richard@....at>, Vignesh Raghavendra
<vigneshr@...com>, Krzysztof Kozlowski <krzk+dt@...nel.org>, Conor
Dooley <conor+dt@...nel.org>, Brian Norris <computersforpeace@...il.com>,
Kamal Dasu <kdasu.kdev@...il.com>, William Zhang
<william.zhang@...adcom.com>, Nick Terrell <terrelln@...com>, David
Sterba <dsterba@...e.com>, Rafał Miłecki
<rafal@...ecki.pl>, Simon Glass
<sjg@...omium.org>, Linus Walleij <linusw@...nel.org>, Ulf Hansson
<ulf.hansson@...aro.org>, Marcus Folkesson <marcus.folkesson@...il.com>,
Tony Lindgren <tony@...mide.com>, Roger Quadros <rogerq@...nel.org>,
Hauke Mehrtens <hauke@...ke-m.de>, linux-mtd@...ts.infradead.org,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-mmc@...r.kernel.org
Subject: Re: [PATCH 07/10] dt-bindings: mtd: Ensure partition node
properties are documented
Hello Rob,
On 08/01/2026 at 11:53:16 -06, "Rob Herring (Arm)" <robh@...nel.org> wrote:
> Partition nodes without a compatible have no restrictions on additional
> properties. Fix this by ensuring 'unevaluatedProperties' is set when
> there's no compatible property. If there is a compatible property, then
> there should be a specific schema for it which will enforce
> 'unevaluatedProperties'.
>
> Signed-off-by: Rob Herring (Arm) <robh@...nel.org>
> ---
Overall thank you very much for this series, I've been sruggling while
defining these and your approach seems very relevant. I am fine with all
the patches in this series, but will wait a bit for others to make a bit
of feedback.
[...]
> +$defs:
> + partition-node:
> + type: object
> + if:
> + not:
> + required: [ compatible ]
> + then:
> + $ref: '#'
> + unevaluatedProperties: false
> + else:
> + $ref: '#'
This, however, is total blackmagic to me. Would you mind explaining what
$ref: '#'
indicates? Is this a placeholder indicating "a reference must be given?
Also I do not understand the final else case, what is it covering?
Thanks for the little explanation (or you can give me a pointer to some
relevant doc I could read).
Thanks,
Miquèl
Powered by blists - more mailing lists