openwrt/target/linux/mediatek
Daniel Golle c48afca32c 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>
2025-02-15 16:47:57 +00:00
..
base-files mediatek: remove obsolete base-files scripts 2025-01-17 09:48:27 +01:00
dts mediatek: filogic: increase spi flash memory speed on ZyXEL EX5601 2025-02-09 18:16:41 +01:00
files/drivers treewide: remove THIS_MODULE assignment 2024-11-10 02:16:31 +01:00
files-6.6 mediatek: add Airoha AN8855 gigabit switch driver 2025-01-23 15:27:25 +01:00
filogic mediatek: filogic: fix mt7986a-zyxel-ex5601-t0-stock.dts model name and eth1 wan definition 2025-02-09 16:06:11 +01:00
image mediatek: EX5601-T0 add Zyxel EX5601-T1 and T-56 alias 2025-01-19 17:51:06 +01:00
mt7622 mediatek: add Airoha AN8855 gigabit switch driver 2025-01-23 15:27:25 +01:00
mt7623 mediatek: add Airoha AN8855 gigabit switch driver 2025-01-23 15:27:25 +01:00
mt7629 mediatek: add Airoha AN8855 gigabit switch driver 2025-01-23 15:27:25 +01:00
patches-6.6 mediatek: add work-around for ASUS bootloader MTD behavior 2025-02-15 16:47:57 +00:00
Makefile mediatek: change the the default SUBTARGET to filogic 2024-10-02 15:12:18 +02:00
modules.mk mediatek: mt7623: build mt6577_auxadc driver into kernel 2022-12-05 23:14:36 +00:00