[openwrt/openwrt] ramips: fix wrong eeprom data for sercomm dxx devices
LEDE Commits
lede-commits at lists.infradead.org
Fri Jun 14 05:46:04 PDT 2024
hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/24d2519755256fb6382a95a360eb58f5105b383e
commit 24d2519755256fb6382a95a360eb58f5105b383e
Author: Mikhail Zhilkin <csharper2005 at gmail.com>
AuthorDate: Thu Jun 13 15:33:20 2024 +0000
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: fb4cea45ec55 ("ramips: convert MT7603 EEPROM to NVMEM format")
Signed-off-by: Mikhail Zhilkin <csharper2005 at gmail.com>
---
target/linux/ramips/dts/mt7621_beeline_smartbox-turbo.dts | 8 ++++----
target/linux/ramips/dts/mt7621_rostelecom_rt-sf-1.dts | 8 ++++----
target/linux/ramips/dts/mt7621_sercomm_dxx_nand_256m.dtsi | 6 ++----
3 files changed, 10 insertions(+), 12 deletions(-)
diff --git a/target/linux/ramips/dts/mt7621_beeline_smartbox-turbo.dts b/target/linux/ramips/dts/mt7621_beeline_smartbox-turbo.dts
index f9b53ae0b3..eee7ab65db 100644
--- a/target/linux/ramips/dts/mt7621_beeline_smartbox-turbo.dts
+++ b/target/linux/ramips/dts/mt7621_beeline_smartbox-turbo.dts
@@ -9,15 +9,15 @@
&pcie0 {
wifi at 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 at 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";
};
};
diff --git a/target/linux/ramips/dts/mt7621_rostelecom_rt-sf-1.dts b/target/linux/ramips/dts/mt7621_rostelecom_rt-sf-1.dts
index b722df5bbb..1932a12548 100644
--- a/target/linux/ramips/dts/mt7621_rostelecom_rt-sf-1.dts
+++ b/target/linux/ramips/dts/mt7621_rostelecom_rt-sf-1.dts
@@ -9,15 +9,15 @@
&pcie0 {
wifi at 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 at 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";
};
};
diff --git a/target/linux/ramips/dts/mt7621_sercomm_dxx_nand_256m.dtsi b/target/linux/ramips/dts/mt7621_sercomm_dxx_nand_256m.dtsi
index b13b621d2f..4e22e45191 100644
--- a/target/linux/ramips/dts/mt7621_sercomm_dxx_nand_256m.dtsi
+++ b/target/linux/ramips/dts/mt7621_sercomm_dxx_nand_256m.dtsi
@@ -181,8 +181,7 @@
wifi at 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 at 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>;
};
};
More information about the lede-commits
mailing list