[PATCH v2 0/2] dt-bindings: mtd: partitions: Add binding for Sercomm parser

From: Mikhail Zhilkin
Date: Wed Apr 06 2022 - 17:12:37 EST


MTD partition parser for the Sercomm partition table that is used in some
Beeline, Netgear and Sercomm routers.

The Sercomm partition map table contains real partition offsets, which
may differ from device to device depending on the number and location of
bad blocks on NAND.

Changes since:
v1:
- Add dt-binding in a separate patch
- Remove redundant braces and logical NOT operator
- Define pr_fmt
- Replace kcalloc by kzalloc
- Use of_get_child_count() and alloc big enough array before the
for_each_child_of_node()

Mikhail Zhilkin (2):
dt-bindings: mtd: partitions: Add binding for Sercomm parser
mtd: parsers: add support for Sercomm partitions

.../devicetree/bindings/mtd/partitions/sercomm,sc-partitions.yaml | 70 ++++++++++
drivers/mtd/parsers/Kconfig | 9 ++
drivers/mtd/parsers/Makefile | 1 +
drivers/mtd/parsers/scpart.c | 240 ++++++++++++++++++++++++++++++++++
4 files changed, 320 insertions(+)

--
2.25.1