summaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/dts/mt7621_iodata_wn-ax1167gr.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_iodata_wn-ax1167gr.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_iodata_wn-ax1167gr.dts')
-rw-r--r--target/linux/ramips/dts/mt7621_iodata_wn-ax1167gr.dts41
1 files changed, 20 insertions, 21 deletions
diff --git a/target/linux/ramips/dts/mt7621_iodata_wn-ax1167gr.dts b/target/linux/ramips/dts/mt7621_iodata_wn-ax1167gr.dts
index 69c79d7dc7..b6bafe8c89 100644
--- a/target/linux/ramips/dts/mt7621_iodata_wn-ax1167gr.dts
+++ b/target/linux/ramips/dts/mt7621_iodata_wn-ax1167gr.dts
@@ -89,15 +89,33 @@
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
iNIC_rf: partition@50000 {
+ compatible = "nvmem-cells";
label = "iNIC_rf";
reg = <0x50000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
+
+ eeprom_iNIC_rf_0: eeprom@0 {
+ reg = <0x0 0x400>;
+ };
+
+ macaddr_iNIC_rf_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@60000 {
@@ -186,7 +204,8 @@
&pcie0 {
mt76@0,0 {
reg = <0x0000 0 0 0 0>;
- mediatek,mtd-eeprom = <&iNIC_rf 0x0>;
+ nvmem-cells = <&eeprom_iNIC_rf_0>;
+ nvmem-cell-names = "eeprom";
};
};
@@ -201,23 +220,3 @@
&xhci {
status = "disabled";
};
-
-&iNIC_rf {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_iNIC_rf_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};