Skip to content

mtd: Add support for Airoha partition scheme

Christian Marangi linux-devicetree linux-mtd lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 12 repliesIn review

Changes v3 from the cover letter

- Add compatible to partitions.yaml

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3of: also export of_update_propertydrivers/of/base.c+1 -00 replies
2/3dt-bindings: mtd: Add Documentation for Airoha fixed-partitionsDocumentation/devicetree/bindings/mtd/partitions/airoha,fixed-partitions.yaml Documentation/devicetree/bindings/mtd/partitions/partitions.yaml+81 -012 replies
3/3mtd: parser: add support for Airoha parserdrivers/mtd/parsers/Kconfig drivers/mtd/parsers/Makefile drivers/mtd/parsers/ofpart_airoha.c +2 more+92 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] mtd: Add support for Airoha partition scheme

This is split from a different series called "mtd: improve block2mtd + airoha parser" with only the parser changes.

This series add support for the Airoha partition table where the last partition is always ART and is placed at the end of the flash.

This require dynamic calculation of the offset as some dedicated driver for bad block management might be used that reserve some space at the end of the flash for bad block accounting. This special driver change the end offset of the flash hence a dynamic parser is needed.

New aarch64 Airoha SoC (EN7581) make use of this partition scheme or calibration data is not accessible.

Relevant Changes from old series:
Changes v3:
- Add compatible to partitions.yaml

Christian Marangi (3):
of: also export of_update_property
dt-bindings: mtd: Add Documentation for Airoha fixed-partitions
mtd: parser: add support for Airoha parser

 .../partitions/airoha,fixed-partitions.yaml   | 80 +++++++++++++++++++
 .../bindings/mtd/partitions/partitions.yaml   |  1 +
 drivers/mtd/parsers/Kconfig                   | 10 +++
 drivers/mtd/parsers/Makefile                  |  1 +
 drivers/mtd/parsers/ofpart_airoha.c           | 57 +++++++++++++
 drivers/mtd/parsers/ofpart_airoha.h           | 18 +++++
 drivers/mtd/parsers/ofpart_core.c             |  6 ++
 drivers/of/base.c                             |  1 +
 8 files changed, 174 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/mtd/partitions/airoha,fixed-partitions.yaml
 create mode 100644 drivers/mtd/parsers/ofpart_airoha.c
 create mode 100644 drivers/mtd/parsers/ofpart_airoha.h
Signature · 1 line
2.45.2