ath79: Allow to set spi-nor mtd name via devicetree
authorSven Eckelmann <sven@narfation.org>
Wed, 30 Dec 2020 23:25:10 +0000 (00:25 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 16 Jan 2022 20:42:19 +0000 (21:42 +0100)
commit7f074fe1a79f27d30560c35778d963bc520e9a3e
treec16c583f69374152cdda94d6eb1f6cd9c127d023
parent1699c1dc7f26b332f868d338457abfbe716d6ba0
ath79: Allow to set spi-nor mtd name via devicetree

On ar71xx, it was possible to overwrite the name of the spi-nor mtd device
identifier using the flash_platform_data which each mach-*.c could adjust
for its devices. A similar feature was introduced for mtd-physmap in
devicetree's. The property linux,mtd-name can be used to set the name and
provide a stable identifier for mtdpart from the bootloader.

But this feature is not yet available upstream for spi-nor devices which
also might receive their partition layout from the bootloader. But the
OpenWrt pistachio support for this property can simply be imported into
ath79 to gain this support.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
target/linux/ath79/patches-5.10/401-mtd-nor-support-mtd-name-from-device-tree.patch [new file with mode: 0644]