From: Ahmed Naseef Date: Thu, 26 Feb 2026 11:04:17 +0000 (+0400) Subject: econet: en7528: fix swapped WiFi eeprom references for DASAN H660GM-A X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3fe9307c14f9da57082c80c607c98c8f4ac3ea53;p=thirdparty%2Fopenwrt.git econet: en7528: fix swapped WiFi eeprom references for DASAN H660GM-A 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 Link: https://github.com/openwrt/openwrt/pull/22195 Signed-off-by: Hauke Mehrtens --- diff --git a/target/linux/econet/dts/en7528_dasan_h660gm-a-airtel.dts b/target/linux/econet/dts/en7528_dasan_h660gm-a-airtel.dts index 8f9f506e4f2..a03ca91217c 100644 --- a/target/linux/econet/dts/en7528_dasan_h660gm-a-airtel.dts +++ b/target/linux/econet/dts/en7528_dasan_h660gm-a-airtel.dts @@ -59,11 +59,11 @@ #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>; }; }; }; diff --git a/target/linux/econet/dts/en7528_dasan_h660gm-a-generic.dts b/target/linux/econet/dts/en7528_dasan_h660gm-a-generic.dts index 998f385a737..b50a1c6aa00 100644 --- a/target/linux/econet/dts/en7528_dasan_h660gm-a-generic.dts +++ b/target/linux/econet/dts/en7528_dasan_h660gm-a-generic.dts @@ -90,11 +90,11 @@ #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>; }; }; }; diff --git a/target/linux/econet/dts/en7528_dasan_h660gm-a.dtsi b/target/linux/econet/dts/en7528_dasan_h660gm-a.dtsi index 2c63d813b8a..d77a915dcc9 100644 --- a/target/linux/econet/dts/en7528_dasan_h660gm-a.dtsi +++ b/target/linux/econet/dts/en7528_dasan_h660gm-a.dtsi @@ -119,7 +119,7 @@ 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>; }; @@ -131,7 +131,7 @@ 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>; };