1
0
Fork 0
forked from mirror/openwrt
openwrt/target/linux/mediatek
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 c48afca32c)
2025-02-16 20:43:53 +00:00
..
base-files mediatek: remove obsolete base-files scripts 2025-01-17 09:49:18 +01:00
dts mediatek: filogic: fix mt7986a-zyxel-ex5601-t0-stock.dts model name and eth1 wan definition 2025-02-13 00:32:30 +01:00
files/drivers treewide: remove THIS_MODULE assignment 2024-11-28 18:46:45 +00:00
files-6.6 mediatek: add Airoha AN8855 gigabit switch driver 2025-01-23 15:28:08 +01:00
filogic mediatek: filogic: fix mt7986a-zyxel-ex5601-t0-stock.dts model name and eth1 wan definition 2025-02-13 00:32:30 +01:00
image mediatek: EX5601-T0 add Zyxel EX5601-T1 and T-56 alias 2025-01-20 21:59:41 +01:00
mt7622 mediatek: add Airoha AN8855 gigabit switch driver 2025-01-23 15:28:08 +01:00
mt7623 mediatek: add Airoha AN8855 gigabit switch driver 2025-01-23 15:28:08 +01:00
mt7629 mediatek: add Airoha AN8855 gigabit switch driver 2025-01-23 15:28:08 +01:00
patches-6.6 mediatek: add work-around for ASUS bootloader MTD behavior 2025-02-16 20:43:53 +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