[PATCH 07/10] dt-bindings: mtd: Ensure partition node properties are documented
Miquel Raynal
miquel.raynal at bootlin.com
Fri Jan 9 01:02:07 PST 2026
Hello Rob,
On 08/01/2026 at 11:53:16 -06, "Rob Herring (Arm)" <robh at kernel.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 at kernel.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
More information about the linux-mtd
mailing list