dt-bindings: mtd: partitions: add TP-Link SafeLoader layout
authorRafał Miłecki <rafal@milecki.pl>
Sat, 15 Oct 2022 09:29:49 +0000 (11:29 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 7 Nov 2022 16:08:00 +0000 (17:08 +0100)
commit132c57b4898755ae5d5f190f77d10b788d971b95
tree655d9bcceeab305d4f75d7fb088c66c97e0f2fd2
parent7cc84e0e07d063c246809ea78f51607f858766bf
dt-bindings: mtd: partitions: add TP-Link SafeLoader layout

Most TP-Link home routers use the same partitioning system based on a
custom ASCII table.

It doesn't seem to have any official name. GPL sources contain tool
named simply "make_flash" and Makefile target "FlashMaker".

This partitions table format was first found in devices with a custom
SafeLoader bootloader so it was called SafeLoader by a community. Later
it was ported to other bootloaders but it seems the name sticked.

Add binding for describing flashes with SafeLoader partitions table. It
allows operating systems to parse it properly and register proper flash
layout.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20221015092950.27467-1-zajec5@gmail.com
Documentation/devicetree/bindings/mtd/partitions/tplink,safeloader-partitions.yaml [new file with mode: 0644]