Daniel Golle 36bde27e79 mediatek: add work-around for ASUS bootloader MTD behavior
ASUS makes use of U-Boot's fdt_fixup_mtdparts() function which applies
the partitions defined in U-Boot's mtdparts and mtdids environment
variables to the devicetree passed over to Linux.

The undesired side-effect is that in this way also all additional
properties and child nodes get wiped, preventing NVMEM cells to be
defined for MTD partitions or UBI volumes.

To work-around this issue, add an additional compatible string
'u-boot-dont-touch-spi-nand' which can be used instead of 'spi-nand' in
case the replacement of the MTD partitions by U-Boot should be skipped
alltogether.

In practise this is mostly relevant for SPI-NAND which anyway comes only
with two partitions nowadays: 'Bootloader' and 'UBI_DEV'. Hence this
work-around is applicable for SPI-NAND only. Similar work-arounds for
other MTD devices can be created as well should they actually be needed.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
(cherry picked from commit c48afca32ca875c4176b4c41be94335e61556783)
2025-02-16 20:43:53 +00:00
..
2025-01-21 00:19:54 +01:00
2025-01-12 21:43:35 +01:00
2024-12-15 01:43:39 +01:00
2024-12-15 01:43:39 +01:00
2024-11-28 18:48:55 +00:00
2025-01-21 00:19:54 +01:00
2025-01-21 00:19:54 +01:00
2025-01-27 15:14:50 +01:00
2024-11-24 22:46:21 +01:00