]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
ramips: mt76x8: fix MT7663 EEPROM cell for MERCUSYS MB130-4G v1 24284/head
authorFrank Lang <Frank_Lang@outlook.de>
Sat, 18 Jul 2026 19:58:04 +0000 (21:58 +0200)
committerJonas Jelonek <jelonek.jonas@gmail.com>
Tue, 21 Jul 2026 06:55:33 +0000 (08:55 +0200)
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>
target/linux/ramips/dts/mt7628an_mercusys_mb130-4g-v1.dts

index 053de48d796a4241544d12ed959edd5ec4e4fe3e..ed1df169391f79c518b1db9435b5295ec6e64656 100644 (file)
                                        };
 
                                        eeprom_radio_8000: eeprom@8000 {
-                                               reg = <0x8000 0x200>;
+                                               reg = <0x8000 0x4da8>;
                                        };
                                };
                        };