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 <Frank_Lang@outlook.de>
Link: https://github.com/openwrt/openwrt/pull/24284
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
This commit is contained in:
Frank Lang
2026-07-21 08:55:33 +02:00
committed by Jonas Jelonek
parent 41ad8fff38
commit cc80fc4cff
@@ -187,7 +187,7 @@
};
eeprom_radio_8000: eeprom@8000 {
reg = <0x8000 0x200>;
reg = <0x8000 0x4da8>;
};
};
};