Skip to content

mtd: bcm63xxpart: add device tree support

Jonas Gorski linux-devicetree linux-mtd 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 5 repliesIn review
  2. v15 patches 5 repliesSuperseded

Changes in v2 from the cover letter

* dropped the second example from brcm,bcm963xx-imagetag.txt
* added reviewed bys from Rob Herring

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5dt-bindings: mtd: describe the simple BCM963XX NOR flash layoutDocumentation/devicetree/bindings/mtd/partitions/brcm,bcm963xx-cfe-nor-partitions.txt+24 -01 reply
2/5mtd: bcm63xxpart: add of_match_table supportdrivers/mtd/bcm63xxpart.c+8 -01 reply
3/5mtd: bcm63xxpart: move imagetag parsing to its own parserdrivers/mtd/Kconfig drivers/mtd/bcm63xxpart.c drivers/mtd/parsers/Kconfig +2 more+235 -1471 reply
4/5dt-bindings: mtd: describe BCM963XX ImageTag format and usageDocumentation/devicetree/bindings/mtd/partitions/brcm,bcm963xx-imagetag.txt+45 -01 reply
5/5mtd: parser_imagetag: add of_match_table supportdrivers/mtd/parsers/parser_imagetag.c+8 -01 reply

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchRob HerringFlorian Fainelli
1/5R-b R-b
2/5R-b R-b
3/5R-b R-b
4/5R-b R-b
5/5R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH V2 0/5] mtd: bcm63xxpart: add device tree support

This patchset adds appropriate bindings for parsing various bcm963xx NOR flash layouts found in the wild.

The image header is quite limited, and only has fixed fields for the offsets and sizes of the kernel and rootfs partitions. If any additional partitions exist, they need to be described externally, e.g. through fixed partition layouts.

The first two patches add the bindings for the full flash parser for the "common" case: first erase block bootloader, last erase block nvram, reminder available for firmware.

The third patch splits out the image header parsing into its own parser.

Then patches four and five add bindings for the split out parser, to support non-trivial cases with additional partitions, or a non-standard offset of the firmware partition.

These patches have been in used since a while in OpenWrt.

Changes V1 -> V2:
* dropped the second example from brcm,bcm963xx-imagetag.txt
* added reviewed bys from Rob Herring

Jonas Gorski (5):
dt-bindings: mtd: describe the simple BCM963XX NOR flash layout
mtd: bcm63xxpart: add of_match_table support
mtd: bcm63xxpart: move imagetag parsing to its own parser
dt-bindings: mtd: describe BCM963XX ImageTag format and usage
mtd: parser_imagetag: add of_match_table support

 .../brcm,bcm963xx-cfe-nor-partitions.txt           |  24 +++
 .../mtd/partitions/brcm,bcm963xx-imagetag.txt      |  45 +++++
 drivers/mtd/Kconfig                                |   1 +
 drivers/mtd/bcm63xxpart.c                          | 163 ++-------------
 drivers/mtd/parsers/Kconfig                        |  11 +
 drivers/mtd/parsers/Makefile                       |   1 +
 drivers/mtd/parsers/parser_imagetag.c              | 222 +++++++++++++++++++++
 7 files changed, 320 insertions(+), 147 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/mtd/partitions/brcm,bcm963xx-cfe-nor-partitions.txt
 create mode 100644 Documentation/devicetree/bindings/mtd/partitions/brcm,bcm963xx-imagetag.txt
 create mode 100644 drivers/mtd/parsers/parser_imagetag.c
Signature · 6 lines
2.13.2


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/