ramips: fix wrong eeprom data for sercomm dxx devices
authorMikhail Zhilkin <csharper2005@gmail.com>
Thu, 13 Jun 2024 15:33:20 +0000 (15:33 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Fri, 14 Jun 2024 12:41:30 +0000 (14:41 +0200)
This commit fixes wrong WiFi eeprom data:
   /sys/kernel/debug/ieee80211/phy0/mt76/eeprom
   /sys/kernel/debug/ieee80211/phy1/mt76/eeprom

Fixes: fb4cea45ec55 ("ramips: convert MT7603 EEPROM to NVMEM format")
Signed-off-by: Mikhail Zhilkin <csharper2005@gmail.com>
target/linux/ramips/dts/mt7621_beeline_smartbox-turbo.dts
target/linux/ramips/dts/mt7621_rostelecom_rt-sf-1.dts
target/linux/ramips/dts/mt7621_sercomm_dxx_nand_256m.dtsi

index f9b53ae0b368fae6e9edd07a3b6c5f6ffebe0498..eee7ab65db5d5a20d925517970d0b8422dd0b91f 100644 (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";
        };
 };
 
index b722df5bbb82606240437ddd2b66283e70b38735..1932a125480ddf5cbf81f42c9c9e7e01f1197c85 100644 (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";
        };
 };
 
index b13b621d2f21a8bce541cc0df14064c4e52717e9..4e22e45191d45a95e942dc0e95e427cc3824eba5 100644 (file)
        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>;
        };
 };
        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>;
        };
 };