summaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/dts/mt7621_d-team_newifi-d2.dts
diff options
context:
space:
mode:
authorShiji Yang <yangshiji66@qq.com>2023-10-02 10:12:02 +0800
committerChristian Marangi <ansuelsmth@gmail.com>2023-10-09 11:15:52 +0200
commitfb4cea45ec55b7625e870c0375d4d7971d2fbb53 (patch)
tree38d9047f008e0ecba25699d2b2617851633d525a /target/linux/ramips/dts/mt7621_d-team_newifi-d2.dts
parent230d5de707e4a31603ccb0a7e2b32df45127b38d (diff)
downloadopenwrt-fb4cea45ec55b7625e870c0375d4d7971d2fbb53.tar.gz
openwrt-fb4cea45ec55b7625e870c0375d4d7971d2fbb53.tar.bz2
openwrt-fb4cea45ec55b7625e870c0375d4d7971d2fbb53.zip
ramips: convert MT7603 EEPROM to NVMEM format
This patch converts MT7603 WiFi calibration data to NVMEM format. The EEPROM size is 0x400. Signed-off-by: Shiji Yang <yangshiji66@qq.com>
Diffstat (limited to 'target/linux/ramips/dts/mt7621_d-team_newifi-d2.dts')
-rw-r--r--target/linux/ramips/dts/mt7621_d-team_newifi-d2.dts32
1 files changed, 17 insertions, 15 deletions
diff --git a/target/linux/ramips/dts/mt7621_d-team_newifi-d2.dts b/target/linux/ramips/dts/mt7621_d-team_newifi-d2.dts
index 33deb21dca..f539c13767 100644
--- a/target/linux/ramips/dts/mt7621_d-team_newifi-d2.dts
+++ b/target/linux/ramips/dts/mt7621_d-team_newifi-d2.dts
@@ -115,9 +115,24 @@
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x400>;
+ };
+
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
+
+ macaddr_factory_e006: macaddr@e006 {
+ reg = <0xe006 0x6>;
+ };
};
partition@50000 {
@@ -144,7 +159,8 @@
&pcie1 {
mt76@0,0 {
reg = <0x0000 0 0 0 0>;
- mediatek,mtd-eeprom = <&factory 0x0000>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
@@ -190,17 +206,3 @@
function = "gpio";
};
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_e000: macaddr@e000 {
- reg = <0xe000 0x6>;
- };
-
- macaddr_factory_e006: macaddr@e006 {
- reg = <0xe006 0x6>;
- };
-};