From cc80fc4cff784cc166a004d97103c777c03f2364 Mon Sep 17 00:00:00 2001 From: Frank Lang Date: Sat, 18 Jul 2026 21:58:04 +0200 Subject: [PATCH] ramips: mt76x8: fix MT7663 EEPROM cell for MERCUSYS MB130-4G v1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The nvmem cell for the MT7663 (5 GHz) radio was too small. The MT7663 EEPROM at offset 0x8000 requires the full MT7615_EEPROM_FULL_SIZE (0x4da8), but the cell only declared 0x200 bytes. The driver always requests the full buffer, also for the MT7663, so the undersized cell makes the nvmem read fail with -EINVAL. The driver then falls back to default values, which limits TX power to 3 dBm. Fix this by enlarging the cell to 0x4da8. The offset 0x8000 was already correct — offset 0x0 holds the MT7628 (2.4 GHz) calibration data. Fixes: #23632 Signed-off-by: Frank Lang Link: https://github.com/openwrt/openwrt/pull/24284 Signed-off-by: Jonas Jelonek --- target/linux/ramips/dts/mt7628an_mercusys_mb130-4g-v1.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/ramips/dts/mt7628an_mercusys_mb130-4g-v1.dts b/target/linux/ramips/dts/mt7628an_mercusys_mb130-4g-v1.dts index 053de48d796..ed1df169391 100644 --- a/target/linux/ramips/dts/mt7628an_mercusys_mb130-4g-v1.dts +++ b/target/linux/ramips/dts/mt7628an_mercusys_mb130-4g-v1.dts @@ -187,7 +187,7 @@ }; eeprom_radio_8000: eeprom@8000 { - reg = <0x8000 0x200>; + reg = <0x8000 0x4da8>; }; }; };