[PATCH v2 10/10] dt-bindings: mtd: partitions: Combine simple partition bindings
Krzysztof Kozlowski
krzk at kernel.org
Tue Jan 20 01:04:15 PST 2026
On Mon, Jan 19, 2026 at 07:48:31PM -0600, Rob Herring (Arm) wrote:
> Several partition node bindings are just a compatible plus properties
> defined in partition.yaml. Move all of these bindings to a single schema
> file.
>
> Signed-off-by: Rob Herring (Arm) <robh at kernel.org>
> - partition at 200000 {
> - compatible = "tfa-bl31";
> - reg = <0x200000 0x100000>;
> - align = <0x4000>;
> - };
> - };
> diff --git a/Documentation/devicetree/bindings/mtd/partitions/brcm,bcm4908-partitions.yaml b/Documentation/devicetree/bindings/mtd/partitions/brcm,bcm4908-partitions.yaml
> index 159b32d12803..a6edf145df57 100644
> --- a/Documentation/devicetree/bindings/mtd/partitions/brcm,bcm4908-partitions.yaml
> +++ b/Documentation/devicetree/bindings/mtd/partitions/brcm,bcm4908-partitions.yaml
> @@ -29,11 +29,7 @@ properties:
>
> patternProperties:
> "^partition@[0-9a-f]+$":
> - $ref: partition.yaml#
> - properties:
> - compatible:
> - const: brcm,bcm4908-firmware
> - unevaluatedProperties: false
> + type: object
I think this is not specific enough now and you should have here $ref
(e.g. to simple-partition.yaml) with unevaluatedProperties. Otherwise
schema does not report:
1. bogus properties in partition@ nodes without compatibles (like the
first one in the example),
2. partition@ nodes with some other compatibles (non-partition like,
e.g. whatever I2C device stuffed there for which there is a schema of
course)
Best regards,
Krzysztof
More information about the linux-mtd
mailing list