summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Golle2025-02-10 23:18:46 +0000
committerDaniel Golle2025-02-16 20:43:53 +0000
commitbbe51e72f138062f1d3ae027307fe2959a82a076 (patch)
treed06cfbdabd0fc42148ce3cca683c006fe2e2b496
parent36bde27e796475d12dc5de205ed328ab0768a6b6 (diff)
downloadopenwrt-bbe51e72f138062f1d3ae027307fe2959a82a076.tar.gz
mediatek: apply bootloader work-around for affected ASUS devices
Apply "u-boot-dont-touch-spi-nand" to ASUS RT-AX59U, ASUS TUF-AX4200 as well as ASUS TUF-AX6000 routers to prevent U-Boot from wiping MTD child nodes from DT. Signed-off-by: Daniel Golle <daniel@makrotopia.org> (cherry picked from commit 4387de94454913aa79bb88971eabcf1bfca78141)
-rw-r--r--target/linux/mediatek/dts/mt7986a-asus-rt-ax59u.dts4
-rw-r--r--target/linux/mediatek/dts/mt7986a-asus-tuf-ax4200.dts4
-rw-r--r--target/linux/mediatek/dts/mt7986a-asus-tuf-ax6000.dts4
3 files changed, 6 insertions, 6 deletions
diff --git a/target/linux/mediatek/dts/mt7986a-asus-rt-ax59u.dts b/target/linux/mediatek/dts/mt7986a-asus-rt-ax59u.dts
index 0034ad8284..7e0c05618f 100644
--- a/target/linux/mediatek/dts/mt7986a-asus-rt-ax59u.dts
+++ b/target/linux/mediatek/dts/mt7986a-asus-rt-ax59u.dts
@@ -210,7 +210,7 @@
status = "okay";
spi_nand: flash@0 {
- compatible = "spi-nand";
+ compatible = "u-boot-dont-touch-spi-nand";
reg = <0>;
#address-cells = <1>;
#size-cells = <1>;
@@ -224,7 +224,7 @@
* Device Tree and by that also deletes all additional properties
* needed for UBI and NVMEM-on-UBI.
* Prevent this from happening by tricking the loader to delete and
- * replace a bait node instead.
+ * replace a bait node instead (works with older bootloaders).
*/
partitions: dummy {
compatible = "u-boot-dummy-partitions";
diff --git a/target/linux/mediatek/dts/mt7986a-asus-tuf-ax4200.dts b/target/linux/mediatek/dts/mt7986a-asus-tuf-ax4200.dts
index e40602fa21..4ed65a8ee7 100644
--- a/target/linux/mediatek/dts/mt7986a-asus-tuf-ax4200.dts
+++ b/target/linux/mediatek/dts/mt7986a-asus-tuf-ax4200.dts
@@ -209,7 +209,7 @@
status = "okay";
spi_nand_flash: flash@0 {
- compatible = "spi-nand";
+ compatible = "u-boot-dont-touch-spi-nand";
#address-cells = <1>;
#size-cells = <1>;
reg = <0>;
@@ -223,7 +223,7 @@
* Device Tree and by that also deletes all additional properties
* needed for UBI and NVMEM-on-UBI.
* Prevent this from happening by tricking the loader to delete and
- * replace a bait node instead.
+ * replace a bait node instead (works with older bootloaders).
*/
partitions: dummy {
compatible = "u-boot-dummy-partitions";
diff --git a/target/linux/mediatek/dts/mt7986a-asus-tuf-ax6000.dts b/target/linux/mediatek/dts/mt7986a-asus-tuf-ax6000.dts
index 957d8deebb..9a0f7594c9 100644
--- a/target/linux/mediatek/dts/mt7986a-asus-tuf-ax6000.dts
+++ b/target/linux/mediatek/dts/mt7986a-asus-tuf-ax6000.dts
@@ -231,7 +231,7 @@
status = "okay";
spi_nand_flash: flash@0 {
- compatible = "spi-nand";
+ compatible = "u-boot-dont-touch-spi-nand";
reg = <0>;
#address-cells = <1>;
#size-cells = <1>;
@@ -245,7 +245,7 @@
* Device Tree and by that also deletes all additional properties
* needed for UBI and NVMEM-on-UBI.
* Prevent this from happening by tricking the loader to delete and
- * replace a bait node instead.
+ * replace a bait node instead (works with older bootloaders).
*/
partitions: dummy {
compatible = "u-boot-dummy-partitions";