From 3fe9307c14f9da57082c80c607c98c8f4ac3ea53 Mon Sep 17 00:00:00 2001 From: Ahmed Naseef Date: Thu, 26 Feb 2026 15:04:17 +0400 Subject: [PATCH] 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 --- target/linux/econet/dts/en7528_dasan_h660gm-a-airtel.dts | 4 ++-- target/linux/econet/dts/en7528_dasan_h660gm-a-generic.dts | 4 ++-- target/linux/econet/dts/en7528_dasan_h660gm-a.dtsi | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) 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 8f9f506e4f..a03ca91217 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 998f385a73..b50a1c6aa0 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 2c63d813b8..d77a915dcc 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>; };