[PATCH v3 00/10] dt-bindings: mtd: Partition binding fixes and restructuring

Rob Herring (Arm) posted 10 patches 2 weeks, 2 days ago
.../devicetree/bindings/mmc/mmc-card.yaml          | 20 ++-----
.../devicetree/bindings/mtd/brcm,brcmnand.yaml     |  1 -
Documentation/devicetree/bindings/mtd/mtd.yaml     | 10 +---
.../mtd/partitions/arm,arm-firmware-suite.yaml     |  2 -
.../devicetree/bindings/mtd/partitions/binman.yaml | 53 ------------------
.../mtd/partitions/brcm,bcm4908-partitions.yaml    |  8 +--
.../partitions/brcm,bcm947xx-cfe-partitions.yaml   |  2 -
.../mtd/partitions/brcm,bcm963xx-imagetag.txt      | 45 ---------------
.../bindings/mtd/partitions/brcm,trx.txt           | 42 --------------
.../bindings/mtd/partitions/brcm,trx.yaml          | 65 ++++++++++++++++++++++
.../bindings/mtd/partitions/fixed-partitions.yaml  | 43 ++++----------
.../mtd/partitions/linksys,ns-partitions.yaml      | 10 +---
.../bindings/mtd/partitions/partition.yaml         | 44 ++++++++++++++-
.../bindings/mtd/partitions/partitions.yaml        | 42 --------------
.../bindings/mtd/partitions/redboot-fis.yaml       |  4 --
.../devicetree/bindings/mtd/partitions/seama.yaml  | 44 ---------------
.../bindings/mtd/partitions/simple-partition.yaml  | 61 ++++++++++++++++++++
.../partitions/tplink,safeloader-partitions.yaml   |  2 +-
.../devicetree/bindings/mtd/partitions/u-boot.yaml |  2 +-
.../devicetree/bindings/mtd/ti,davinci-nand.yaml   |  4 +-
.../devicetree/bindings/mtd/ti,gpmc-onenand.yaml   |  2 +-
MAINTAINERS                                        |  5 --
22 files changed, 196 insertions(+), 315 deletions(-)
[PATCH v3 00/10] dt-bindings: mtd: Partition binding fixes and restructuring
Posted by Rob Herring (Arm) 2 weeks, 2 days ago
The partition bindings fail to restrict undefined properties. This is 
primarily on fixed-partitions which can be nested and partition nodes 
without a compatible string. This series fixes those issues and then 
several problems exposed by restricting undefined properties. As part of 
this, the schema structure is reworked to follow more conventional 
structure of applying schemas by compatible and a schema only checks 1 
level of nodes (unless possible child nodes are fixed).

In theory, we could have all sorts of combinations of different 
partition types nesting, and those may or may not work. No attempt is 
made to support them here. Only the known cases are supported.

Rob

Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
---
Changes in v3:
- Add $ref to partition.yaml for brcm,bcm4908-partitions child nodes in 
  patch 10. Patches 1-9 unchanged.
- Link to v2: https://patch.msgid.link/20260119-dt-mtd-partitions-v2-0-77ebb958a312@kernel.org

Changes in v2:
- Rebase on mtd/next
- Link to v1: https://patch.msgid.link/20260108-dt-mtd-partitions-v1-0-124a53ce6279@kernel.org

---
Rob Herring (Arm) (10):
      dt-bindings: mtd: brcm,brcmnand: Drop "brcm,brcmnand" compatible for iProc
      dt-bindings: mtd: fixed-partitions: Move "compression" to partition node
      dt-bindings: mtd: partitions: Move "sercomm,scpart-id" to partition.yaml
      dt-bindings: mtd: partitions: Allow "nvmem-layout" in generic partition nodes
      dt-bindings: mtd: partitions: Define "#{address,size}-cells" in specific schemas
      dt-bindings: mtd: partitions: Drop partitions.yaml
      dt-bindings: mtd: Ensure partition node properties are documented
      dt-bindings: mtd: fixed-partitions: Restrict undefined properties
      dt-bindings: mtd: partitions: Convert brcm,trx to DT schema
      dt-bindings: mtd: partitions: Combine simple partition bindings

 .../devicetree/bindings/mmc/mmc-card.yaml          | 20 ++-----
 .../devicetree/bindings/mtd/brcm,brcmnand.yaml     |  1 -
 Documentation/devicetree/bindings/mtd/mtd.yaml     | 10 +---
 .../mtd/partitions/arm,arm-firmware-suite.yaml     |  2 -
 .../devicetree/bindings/mtd/partitions/binman.yaml | 53 ------------------
 .../mtd/partitions/brcm,bcm4908-partitions.yaml    |  8 +--
 .../partitions/brcm,bcm947xx-cfe-partitions.yaml   |  2 -
 .../mtd/partitions/brcm,bcm963xx-imagetag.txt      | 45 ---------------
 .../bindings/mtd/partitions/brcm,trx.txt           | 42 --------------
 .../bindings/mtd/partitions/brcm,trx.yaml          | 65 ++++++++++++++++++++++
 .../bindings/mtd/partitions/fixed-partitions.yaml  | 43 ++++----------
 .../mtd/partitions/linksys,ns-partitions.yaml      | 10 +---
 .../bindings/mtd/partitions/partition.yaml         | 44 ++++++++++++++-
 .../bindings/mtd/partitions/partitions.yaml        | 42 --------------
 .../bindings/mtd/partitions/redboot-fis.yaml       |  4 --
 .../devicetree/bindings/mtd/partitions/seama.yaml  | 44 ---------------
 .../bindings/mtd/partitions/simple-partition.yaml  | 61 ++++++++++++++++++++
 .../partitions/tplink,safeloader-partitions.yaml   |  2 +-
 .../devicetree/bindings/mtd/partitions/u-boot.yaml |  2 +-
 .../devicetree/bindings/mtd/ti,davinci-nand.yaml   |  4 +-
 .../devicetree/bindings/mtd/ti,gpmc-onenand.yaml   |  2 +-
 MAINTAINERS                                        |  5 --
 22 files changed, 196 insertions(+), 315 deletions(-)
---
base-commit: 779c59274d03cc5c07237a2c845dfb71cff77705
change-id: 20260108-dt-mtd-partitions-3fd58ebadfa0

Best regards,
--  
Rob Herring (Arm) <robh@kernel.org>
Re: [PATCH v3 00/10] dt-bindings: mtd: Partition binding fixes and restructuring
Posted by Miquel Raynal 2 weeks, 1 day ago
On Wed, 21 Jan 2026 13:56:33 -0600, Rob Herring (Arm) wrote:
> The partition bindings fail to restrict undefined properties. This is
> primarily on fixed-partitions which can be nested and partition nodes
> without a compatible string. This series fixes those issues and then
> several problems exposed by restricting undefined properties. As part of
> this, the schema structure is reworked to follow more conventional
> structure of applying schemas by compatible and a schema only checks 1
> level of nodes (unless possible child nodes are fixed).
> 
> [...]

Applied to mtd/next, thanks!

[01/10] dt-bindings: mtd: brcm,brcmnand: Drop "brcm,brcmnand" compatible for iProc
        commit: 4db35366d6dcda7475b75887f89078a11fb2d89a
[02/10] dt-bindings: mtd: fixed-partitions: Move "compression" to partition node
        commit: 30f138c078525fc49b0694e879a1eb60eda437d4
[03/10] dt-bindings: mtd: partitions: Move "sercomm,scpart-id" to partition.yaml
        commit: ac83f4fa911dbe6b7ccadeb82c35f2e42d7ce2f1
[04/10] dt-bindings: mtd: partitions: Allow "nvmem-layout" in generic partition nodes
        commit: 9f30ba0a22b79d46689c686546fb3fea28d475a3
[05/10] dt-bindings: mtd: partitions: Define "#{address,size}-cells" in specific schemas
        commit: 002d2fe7992220fab57497d3d78de526982cf511
[06/10] dt-bindings: mtd: partitions: Drop partitions.yaml
        commit: 95af1e641b0f245d1d6820bb0c8696fa6a07f5f5
[07/10] dt-bindings: mtd: Ensure partition node properties are documented
        commit: 1eb9fabd52933cdf9be349de5391920fac4ed30b
[08/10] dt-bindings: mtd: fixed-partitions: Restrict undefined properties
        commit: 6ecd7715d64ee3bf0b55b374f731d1518b57bc81
[09/10] dt-bindings: mtd: partitions: Convert brcm,trx to DT schema
        commit: a1fa0f8ca1fb108d2cbf67fad8056f07bce898f8
[10/10] dt-bindings: mtd: partitions: Combine simple partition bindings
        commit: 125981ffa1674573d3a9200e72ed93a2270344b1

Patche(s) should be available on mtd/linux.git and will be
part of the next PR (provided that no robot complains by then).

Kind regards,
Miquèl