]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
econet: en7528: fix swapped WiFi eeprom references for DASAN H660GM-A
authorAhmed Naseef <naseefkm@gmail.com>
Thu, 26 Feb 2026 11:04:17 +0000 (15:04 +0400)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 1 Mar 2026 16:36:01 +0000 (17:36 +0100)
The 2.4 GHz and 5 GHz WiFi eeprom cell references were assigned to the
wrong PCIe slots. Swap them so slot0 (2.4 GHz) uses the eeprom at
0x1c0000 and slot1 (5 GHz) uses the eeprom at 0x40000. Fix the eeprom
cell lengths to match the sizes expected by their respective drivers.

Fixes: be24a13ad5b2 ("econet: en7528: add PCIe and WiFi support")
Signed-off-by: Ahmed Naseef <naseefkm@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/22195
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/econet/dts/en7528_dasan_h660gm-a-airtel.dts
target/linux/econet/dts/en7528_dasan_h660gm-a-generic.dts
target/linux/econet/dts/en7528_dasan_h660gm-a.dtsi

index 8f9f506e4f277653d8e4df6707d8792e52c57233..a03ca91217c06443db01842dde8d17bb3a599cb9 100644 (file)
                        #size-cells = <1>;
 
                        eeprom_reservearea_40000: eeprom@40000 {
-                               reg = <0x40000 0x400>;
+                               reg = <0x40000 0x4da8>;
                        };
 
                        eeprom_reservearea_1c0000: eeprom@1c0000 {
-                               reg = <0x1c0000 0x1000>;
+                               reg = <0x1c0000 0x400>;
                        };
                };
        };
index 998f385a7379623c74b9ecbef1d4c42e50d7dd19..b50a1c6aa00cfeb93ce67cd9653859cfbb9be6d0 100644 (file)
                        #size-cells = <1>;
 
                        eeprom_reservearea_40000: eeprom@40000 {
-                               reg = <0x40000 0x400>;
+                               reg = <0x40000 0x4da8>;
                        };
 
                        eeprom_reservearea_1c0000: eeprom@1c0000 {
-                               reg = <0x1c0000 0x1000>;
+                               reg = <0x1c0000 0x400>;
                        };
                };
        };
index 2c63d813b8ab01ccb38736a49e9d19659a530639..d77a915dcc996e2925e137ac9ba8aa8d53a82665 100644 (file)
        wifi@0,0 {
                compatible = "mediatek,mt76";
                reg = <0x0000 0 0 0 0>;
-               nvmem-cells = <&macaddr_dzs 8>, <&eeprom_reservearea_40000>;
+               nvmem-cells = <&macaddr_dzs 8>, <&eeprom_reservearea_1c0000>;
                nvmem-cell-names = "mac-address", "eeprom";
                ieee80211-freq-limit = <2400000 2500000>;
        };
        wifi@0,0 {
                compatible = "mediatek,mt76";
                reg = <0x0000 0 0 0 0>;
-               nvmem-cells = <&macaddr_dzs 9>, <&eeprom_reservearea_1c0000>;
+               nvmem-cells = <&macaddr_dzs 9>, <&eeprom_reservearea_40000>;
                nvmem-cell-names = "mac-address", "eeprom";
                ieee80211-freq-limit = <5000000 6000000>;
        };