From: Frank Lang Date: Sat, 18 Jul 2026 19:58:04 +0000 (+0200) Subject: ramips: mt76x8: fix MT7663 EEPROM cell for MERCUSYS MB130-4G v1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cc80fc4cff784cc166a004d97103c777c03f2364;p=thirdparty%2Fopenwrt.git ramips: mt76x8: fix MT7663 EEPROM cell for MERCUSYS MB130-4G v1 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 --- 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>; }; }; };