[PATCH] ramips: mt7621: fix R6850 EEPROM offsets

Stijn Segers foss at volatilesystems.org
Fri Mar 12 11:45:15 GMT 2021


The Netgear R6850 has its EEPROM data sitting at 0x28000 for the 5 GHz radio
and at 0x20000 for the 2,4 GHz radio. See forum topic for a hex dump [1].

[1]  https://forum.openwrt.org/t/netgear-r6850-very-low-transmit-power-on-5ghz/90984

Signed-off-by: Stijn Segers <foss at volatilesystems.org>
Tested-by: Bernt Ø. Thorvaldsen <bernt.thorvaldsen at gmail.com>
---
 .../linux/ramips/dts/mt7621_netgear_r6850.dts  | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/target/linux/ramips/dts/mt7621_netgear_r6850.dts b/target/linux/ramips/dts/mt7621_netgear_r6850.dts
index 78e9093216..313fecf936 100644
--- a/target/linux/ramips/dts/mt7621_netgear_r6850.dts
+++ b/target/linux/ramips/dts/mt7621_netgear_r6850.dts
@@ -6,3 +6,21 @@
 	compatible = "netgear,r6850", "mediatek,mt7621-soc";
 	model = "Netgear R6850";
 };
+
+&pcie0 {
+	wifi at 0,0 {
+		compatible = "mediatek,mt76";
+		reg = <0x0 0 0 0 0>;
+		mediatek,mtd-eeprom = <&factory 0x28000>;
+		ieee80211-freq-limit = <5000000 6000000>;
+	};
+};
+
+&pcie1 {
+	wifi at 0,0 {
+		compatible = "mediatek,mt76";
+		reg = <0x0 0 0 0 0>;
+		mediatek,mtd-eeprom = <&factory 0x20000>;
+		ieee80211-freq-limit = <2400000 2500000>;
+	};
+};
-- 
2.30.1




More information about the openwrt-devel mailing list