dt-bindings: mtd: fixed-partitions: Fix 'sercomm,scpart-id' schema
authorRob Herring <robh@kernel.org>
Fri, 11 Nov 2022 21:28:24 +0000 (15:28 -0600)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 17 Nov 2022 21:02:09 +0000 (22:02 +0100)
commit2f05bff26c9e847ac5f68370eaf3e5f5d3bc58ce
tree96d36f2b81124689776c0b892507a0961b1f9c18
parent74f4d7974d2fc88fa39538c0748a2e44ae6c8b9d
dt-bindings: mtd: fixed-partitions: Fix 'sercomm,scpart-id' schema

The schema for 'sercomm,scpart-id' is broken. The 'if' condition is
never true because 'compatible' is in the parent node, not the child
node the sub-schema applies to. The example passes as there are no
constraints on additional/unevaluated properties. That's a secondary
issue which is complicated due to nested partitions.

Drop the if/then schema and the unnecessary 'allOf' so that the
'sercomm,scpart-id' property is at least defined.

Cc: Mikhail Zhilkin <csharper2005@gmail.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20221111212824.4103514-1-robh@kernel.org
Documentation/devicetree/bindings/mtd/partitions/fixed-partitions.yaml