All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] mtd: bcm63xxpart: add device tree support
@ 2018-08-28 11:19 ` Jonas Gorski
  0 siblings, 0 replies; 22+ messages in thread
From: Jonas Gorski @ 2018-08-28 11:19 UTC (permalink / raw)
  To: linux-mtd, devicetree
  Cc: Mark Rutland, Florian Fainelli, Marek Vasut, Richard Weinberger,
	Boris Brezillon, Rob Herring, Brian Norris, David Woodhouse

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.

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      |  78 ++++++++
 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, 353 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

-- 
2.13.2


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

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2018-09-10 12:13 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-28 11:19 [PATCH 0/5] mtd: bcm63xxpart: add device tree support Jonas Gorski
2018-08-28 11:19 ` Jonas Gorski
2018-08-28 11:19 ` [PATCH 1/5] dt-bindings: mtd: describe the simple BCM963XX NOR flash layout Jonas Gorski
2018-08-28 11:19   ` Jonas Gorski
2018-09-04 13:33   ` Rob Herring
2018-09-04 13:33     ` Rob Herring
2018-08-28 11:19 ` [PATCH 2/5] mtd: bcm63xxpart: add of_match_table support Jonas Gorski
2018-08-28 11:19   ` Jonas Gorski
2018-08-28 11:19 ` [PATCH 3/5] mtd: bcm63xxpart: move imagetag parsing to its own parser Jonas Gorski
2018-08-28 11:19   ` Jonas Gorski
2018-08-28 11:19 ` [PATCH 4/5] dt-bindings: mtd: describe BCM963XX ImageTag format and usage Jonas Gorski
2018-08-28 11:19   ` Jonas Gorski
2018-09-04  0:30   ` Rob Herring
2018-09-04  0:30     ` Rob Herring
2018-09-10  9:02     ` Jonas Gorski
2018-09-10  9:02       ` Jonas Gorski
2018-09-10  9:09       ` Jonas Gorski
2018-09-10  9:09         ` Jonas Gorski
2018-09-10 12:12         ` Rob Herring
2018-09-10 12:12           ` Rob Herring
2018-08-28 11:19 ` [PATCH 5/5] mtd: parser_imagetag: add of_match_table support Jonas Gorski
2018-08-28 11:19   ` Jonas Gorski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.