]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
ramips: remove obsolete SPI flash nodes after kernel fix 22036/head
authorMieczyslaw Nalewaj <namiltd@yahoo.com>
Sun, 15 Feb 2026 10:50:05 +0000 (11:50 +0100)
committerRobert Marko <robimarko@gmail.com>
Mon, 16 Feb 2026 09:47:31 +0000 (10:47 +0100)
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@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/22036
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/ramips/dts/mt7620a_tplink_archer-c5-v4.dts
target/linux/ramips/dts/mt7620a_tplink_ec220-g5-v2.dts
target/linux/ramips/dts/mt7621_plasmacloud_pax1800-lite.dts

index 91b3a255c1708edc39b6d28ef0f842973766459b..0b1012c48653fa86c25bcf6e9ac50a647aa7d426 100644 (file)
        };
 };
 
-&spi0 {
-       flash@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
-       };
-};
-
 &state_default {
        gpio {
                groups = "i2c", "uartf", "ephy", "rgmii2";
index f20cbb4c8fc925756e7058eebee26ab2fc9b96f1..a320ececa9234cc2f77887255c62d8869b33bebd 100644 (file)
        };
 };
 
-&spi0 {
-       flash@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
-       };
-};
-
 &state_default {
        gpio {
                groups = "i2c", "uartf", "ephy", "rgmii2";
index 441b5e66960c1e61101add5ed85a80a3133752ea..6805a2938a17a643b2d2fb7b65329a868f3327cb 100644 (file)
@@ -94,8 +94,6 @@
        num-cs = <2>;
 
        flash@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
                compatible = "jedec,spi-nor";
                spi-max-frequency = <20000000>;
                reg = <0>;