Re: [PATCH 06/10] dt-bindings: mtd: partitions: Drop partitions.yaml
From: Rob Herring <robh@kernel.org>
Date: 2026-01-12 22:58:06
Also in:
linux-mmc, lkml
On Fri, Jan 9, 2026 at 3:34 AM Krzysztof Kozlowski [off-list ref] wrote:
On Thu, Jan 08, 2026 at 11:53:15AM -0600, Rob Herring (Arm) wrote:quoted
patternProperties: "^partitions(-boot[12]|-gp[14])?$": - $ref: /schemas/mtd/partitions/partitions.yaml + type: object + additionalProperties: true - patternProperties: - "^partition@[0-9a-f]+$": - $ref: /schemas/mtd/partitions/partition.yaml - - properties: - reg: - description: Must be multiple of 512 as it's converted - internally from bytes to SECTOR_SIZE (512 bytes) - - required: - - reg - - unevaluatedProperties: false + properties: + compatible: + contains: + const: fixed-partitions required: - compatiblediff --git a/Documentation/devicetree/bindings/mtd/mtd.yaml b/Documentation/devicetree/bindings/mtd/mtd.yaml index bbb56216a4e2..e56dba83f00a 100644 --- a/Documentation/devicetree/bindings/mtd/mtd.yaml +++ b/Documentation/devicetree/bindings/mtd/mtd.yaml@@ -30,7 +30,7 @@ properties: deprecated: true partitions: - $ref: /schemas/mtd/partitions/partitions.yaml + type: objectI think you need explicit, since we require it for incomplete nodes: additionalProperties: true
I put what the tools required me to put. :) We only require it when properties get defined because that's the case we don't know if the schema is *all* properties or not. Rob