[openwrt/openwrt] ramips: remove obsolete SPI flash nodes after kernel fix

LEDE Commits lede-commits at lists.infradead.org
Mon Feb 16 01:47:35 PST 2026


robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/313d56366448d8c2ca12daba7725fdd848057d98

commit 313d56366448d8c2ca12daba7725fdd848057d98
Author: Mieczyslaw Nalewaj <namiltd at yahoo.com>
AuthorDate: Sun Feb 15 11:50:05 2026 +0100

    ramips: remove obsolete SPI flash nodes after kernel fix
    
    Remove incomplete SPI flash definitions from affected device tree files.
    These fragments only defined address-cells and size-cells without any
    actual flash configuration (partitions, compatible string, etc.).
    
    After applying openwrt/openwrt#20942 ("kernel: of: fix bad cell count error
    for SPI flash node"), the kernel properly handles SPI flash nodes without
    requiring these incomplete definitions in device-specific DTS files.
    
    This cleanup eliminates unnecessary code that was likely a workaround for
    the previous kernel issue.
    
    Signed-off-by: Mieczyslaw Nalewaj <namiltd at yahoo.com>
    Link: https://github.com/openwrt/openwrt/pull/22036
    Signed-off-by: Robert Marko <robimarko at gmail.com>
---
 target/linux/ramips/dts/mt7620a_tplink_archer-c5-v4.dts     | 7 -------
 target/linux/ramips/dts/mt7620a_tplink_ec220-g5-v2.dts      | 7 -------
 target/linux/ramips/dts/mt7621_plasmacloud_pax1800-lite.dts | 2 --
 3 files changed, 16 deletions(-)

diff --git a/target/linux/ramips/dts/mt7620a_tplink_archer-c5-v4.dts b/target/linux/ramips/dts/mt7620a_tplink_archer-c5-v4.dts
index 91b3a255c1..0b1012c486 100644
--- a/target/linux/ramips/dts/mt7620a_tplink_archer-c5-v4.dts
+++ b/target/linux/ramips/dts/mt7620a_tplink_archer-c5-v4.dts
@@ -80,13 +80,6 @@
 	};
 };
 
-&spi0 {
-	flash at 0 {
-		#address-cells = <1>;
-		#size-cells = <1>;
-	};
-};
-
 &state_default {
 	gpio {
 		groups = "i2c", "uartf", "ephy", "rgmii2";
diff --git a/target/linux/ramips/dts/mt7620a_tplink_ec220-g5-v2.dts b/target/linux/ramips/dts/mt7620a_tplink_ec220-g5-v2.dts
index f20cbb4c8f..a320ececa9 100644
--- a/target/linux/ramips/dts/mt7620a_tplink_ec220-g5-v2.dts
+++ b/target/linux/ramips/dts/mt7620a_tplink_ec220-g5-v2.dts
@@ -88,13 +88,6 @@
 	};
 };
 
-&spi0 {
-	flash at 0 {
-		#address-cells = <1>;
-		#size-cells = <1>;
-	};
-};
-
 &state_default {
 	gpio {
 		groups = "i2c", "uartf", "ephy", "rgmii2";
diff --git a/target/linux/ramips/dts/mt7621_plasmacloud_pax1800-lite.dts b/target/linux/ramips/dts/mt7621_plasmacloud_pax1800-lite.dts
index 441b5e6696..6805a2938a 100644
--- a/target/linux/ramips/dts/mt7621_plasmacloud_pax1800-lite.dts
+++ b/target/linux/ramips/dts/mt7621_plasmacloud_pax1800-lite.dts
@@ -94,8 +94,6 @@
 	num-cs = <2>;
 
 	flash at 0 {
-		#address-cells = <1>;
-		#size-cells = <1>;
 		compatible = "jedec,spi-nor";
 		spi-max-frequency = <20000000>;
 		reg = <0>;




More information about the lede-commits mailing list