ramips: fix wrong eeprom data for sercomm dxx devices

This commit fixes wrong WiFi eeprom data:
   /sys/kernel/debug/ieee80211/phy0/mt76/eeprom
   /sys/kernel/debug/ieee80211/phy1/mt76/eeprom

Fixes: fb4cea45ec ("ramips: convert MT7603 EEPROM to NVMEM format")
Signed-off-by: Mikhail Zhilkin <csharper2005@gmail.com>
This commit is contained in:
Mikhail Zhilkin 2024-06-13 15:33:20 +00:00 committed by Hauke Mehrtens
parent 1b846fe208
commit 24d2519755
3 changed files with 10 additions and 12 deletions

View File

@ -9,15 +9,15 @@
&pcie0 {
wifi@0,0 {
nvmem-cells = <&macaddr_factory_21000 5>;
nvmem-cell-names = "mac-address";
nvmem-cells = <&eeprom_factory_8000>, <&macaddr_factory_21000 5>;
nvmem-cell-names = "eeprom", "mac-address";
};
};
&pcie1 {
wifi@0,0 {
nvmem-cells = <&macaddr_factory_21000 4>;
nvmem-cell-names = "mac-address";
nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_21000 4>;
nvmem-cell-names = "eeprom", "mac-address";
};
};

View File

@ -9,15 +9,15 @@
&pcie0 {
wifi@0,0 {
nvmem-cells = <&macaddr_factory_21000 3>;
nvmem-cell-names = "mac-address";
nvmem-cells = <&eeprom_factory_8000>, <&macaddr_factory_21000 3>;
nvmem-cell-names = "eeprom", "mac-address";
};
};
&pcie1 {
wifi@0,0 {
nvmem-cells = <&macaddr_factory_21000 2>;
nvmem-cell-names = "mac-address";
nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_21000 2>;
nvmem-cell-names = "eeprom", "mac-address";
};
};

View File

@ -181,8 +181,7 @@
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
nvmem-cells = <&eeprom_factory_8000>;
nvmem-cell-names = "eeprom";
ieee80211-freq-limit = <5000000 6000000>;
};
};
@ -191,8 +190,7 @@
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
nvmem-cells = <&eeprom_factory_0>;
nvmem-cell-names = "eeprom";
ieee80211-freq-limit = <2400000 2500000>;
};
};