[openwrt/openwrt] ramips: use NVMEM cells with mt76 EEPROM for Netgear R6220 & WNDR3700 v5
LEDE Commits
lede-commits at lists.infradead.org
Fri Jul 28 10:43:33 PDT 2023
rmilecki pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/03b328480559a0183752f668dece2ff00d3bee28
commit 03b328480559a0183752f668dece2ff00d3bee28
Author: Rafał Miłecki <rafal at milecki.pl>
AuthorDate: Fri Jul 28 18:53:20 2023 +0200
ramips: use NVMEM cells with mt76 EEPROM for Netgear R6220 & WNDR3700 v5
This uses new upstream DT binding. It's more generic (NVMEM) compared to
the old one (MTD).
Signed-off-by: Rafał Miłecki <rafal at milecki.pl>
---
target/linux/ramips/dts/mt7621_netgear_r6220.dts | 8 ++++++++
target/linux/ramips/dts/mt7621_netgear_sercomm_ayx.dtsi | 6 ++++--
target/linux/ramips/dts/mt7621_netgear_wndr3700-v5.dts | 8 ++++++++
3 files changed, 20 insertions(+), 2 deletions(-)
diff --git a/target/linux/ramips/dts/mt7621_netgear_r6220.dts b/target/linux/ramips/dts/mt7621_netgear_r6220.dts
index 146b7ee752..f960d8f66f 100644
--- a/target/linux/ramips/dts/mt7621_netgear_r6220.dts
+++ b/target/linux/ramips/dts/mt7621_netgear_r6220.dts
@@ -52,11 +52,19 @@
#address-cells = <1>;
#size-cells = <1>;
+ eeprom0: eeprom at 0 {
+ reg = <0x0 0x400>;
+ };
+
macaddr_factory_4: macaddr at 4 {
compatible = "mac-base";
reg = <0x4 0x6>;
#nvmem-cell-cells = <1>;
};
+
+ eeprom1: eeprom at 8000 {
+ reg = <0x8000 0x200>;
+ };
};
};
diff --git a/target/linux/ramips/dts/mt7621_netgear_sercomm_ayx.dtsi b/target/linux/ramips/dts/mt7621_netgear_sercomm_ayx.dtsi
index 691aba1063..052b2a4bab 100644
--- a/target/linux/ramips/dts/mt7621_netgear_sercomm_ayx.dtsi
+++ b/target/linux/ramips/dts/mt7621_netgear_sercomm_ayx.dtsi
@@ -91,8 +91,9 @@
wifi at 0,0 {
compatible = "mediatek,mt76";
reg = <0x0 0 0 0 0>;
- mediatek,mtd-eeprom = <&factory 0x8000>;
ieee80211-freq-limit = <5000000 6000000>;
+ nvmem-cells = <&eeprom1>;
+ nvmem-cell-names = "eeprom";
};
};
@@ -100,8 +101,9 @@
wifi at 0,0 {
compatible = "mediatek,mt76";
reg = <0x0 0 0 0 0>;
- mediatek,mtd-eeprom = <&factory 0x0>;
ieee80211-freq-limit = <2400000 2500000>;
+ nvmem-cells = <&eeprom0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git a/target/linux/ramips/dts/mt7621_netgear_wndr3700-v5.dts b/target/linux/ramips/dts/mt7621_netgear_wndr3700-v5.dts
index dc40d71afc..8252d2b9ff 100644
--- a/target/linux/ramips/dts/mt7621_netgear_wndr3700-v5.dts
+++ b/target/linux/ramips/dts/mt7621_netgear_wndr3700-v5.dts
@@ -46,11 +46,19 @@
#address-cells = <1>;
#size-cells = <1>;
+ eeprom0: eeprom at 0 {
+ reg = <0x0 0x400>;
+ };
+
macaddr_factory_4: macaddr at 4 {
compatible = "mac-base";
reg = <0x4 0x6>;
#nvmem-cell-cells = <1>;
};
+
+ eeprom1: eeprom at 8000 {
+ reg = <0x8000 0x200>;
+ };
};
};
More information about the lede-commits
mailing list