summaryrefslogtreecommitdiffstats
path: root/target/linux/ramips
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
commit9ac891f8c44124e931c15f1257347cd8ba311a19 (patch)
tree72cb12e437bee37c9955f20e421fefb19684f365 /target/linux/ramips
parent65cd6a6fec891b0502350c6782f12ee914dfa6a8 (diff)
downloadopenwrt-9ac891f8c44124e931c15f1257347cd8ba311a19.tar.gz
openwrt-9ac891f8c44124e931c15f1257347cd8ba311a19.tar.bz2
openwrt-9ac891f8c44124e931c15f1257347cd8ba311a19.zip
ramips: convert MT7915 EEPROM to NVMEM format
This patch converts MT7915 WiFi calibration data to NVMEM format. The EEPROM size is 0xe00. Signed-off-by: Shiji Yang <yangshiji66@qq.com>
Diffstat (limited to 'target/linux/ramips')
-rw-r--r--target/linux/ramips/dts/mt7621_asus_rt-ax53u.dts12
-rw-r--r--target/linux/ramips/dts/mt7621_asus_rt-ax54.dts12
-rw-r--r--target/linux/ramips/dts/mt7621_belkin_rt1800.dts10
-rw-r--r--target/linux/ramips/dts/mt7621_comfast_cf-e390ax.dts24
-rw-r--r--target/linux/ramips/dts/mt7621_cudy_m1800.dts10
-rw-r--r--target/linux/ramips/dts/mt7621_cudy_x6.dtsi10
-rw-r--r--target/linux/ramips/dts/mt7621_dlink_dap-x1860-a1.dts12
-rw-r--r--target/linux/ramips/dts/mt7621_h3c_tx180x.dtsi10
-rw-r--r--target/linux/ramips/dts/mt7621_haier-sim_wr1800k.dtsi12
-rw-r--r--target/linux/ramips/dts/mt7621_iptime_ax2004m.dts12
-rw-r--r--target/linux/ramips/dts/mt7621_jcg_q20.dts32
-rw-r--r--target/linux/ramips/dts/mt7621_linksys_e7350.dts10
-rw-r--r--target/linux/ramips/dts/mt7621_mercusys_mr70x-v1.dts29
-rw-r--r--target/linux/ramips/dts/mt7621_netgear_eax12.dts10
-rw-r--r--target/linux/ramips/dts/mt7621_netgear_wax202.dts10
-rw-r--r--target/linux/ramips/dts/mt7621_tenbay_t-mb5eu-v01.dts24
-rw-r--r--target/linux/ramips/dts/mt7621_totolink_x5000r.dts32
-rw-r--r--target/linux/ramips/dts/mt7621_tplink_archer-ax23-v1.dts29
-rw-r--r--target/linux/ramips/dts/mt7621_tplink_eap613-v1.dts10
-rw-r--r--target/linux/ramips/dts/mt7621_tplink_eap615-wall-v1.dts27
-rw-r--r--target/linux/ramips/dts/mt7621_ubnt_unifi-6-lite.dts10
-rwxr-xr-xtarget/linux/ramips/dts/mt7621_wavlink_wl-wn573hx1.dts26
-rw-r--r--target/linux/ramips/dts/mt7621_xiaomi_mi-router-cr660x.dtsi32
-rw-r--r--target/linux/ramips/dts/mt7621_yuncore_ax820.dts24
-rw-r--r--target/linux/ramips/dts/mt7621_yuncore_fap640.dts33
-rw-r--r--target/linux/ramips/dts/mt7621_yuncore_fap690.dts24
-rw-r--r--target/linux/ramips/dts/mt7621_zyxel_nwa-ax.dtsi27
-rw-r--r--target/linux/ramips/dts/mt7621_zyxel_wsm20.dts32
28 files changed, 332 insertions, 213 deletions
diff --git a/target/linux/ramips/dts/mt7621_asus_rt-ax53u.dts b/target/linux/ramips/dts/mt7621_asus_rt-ax53u.dts
index d740d00c6d..8aa141b108 100644
--- a/target/linux/ramips/dts/mt7621_asus_rt-ax53u.dts
+++ b/target/linux/ramips/dts/mt7621_asus_rt-ax53u.dts
@@ -95,13 +95,16 @@
};
factory: partition@1e0000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x1e0000 0x100000>;
- read-only;
-
- compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
+ read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0xe00>;
+ };
macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
@@ -155,7 +158,8 @@
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
- mediatek,mtd-eeprom = <&factory 0x0000>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
mediatek,disable-radar-background;
};
};
diff --git a/target/linux/ramips/dts/mt7621_asus_rt-ax54.dts b/target/linux/ramips/dts/mt7621_asus_rt-ax54.dts
index 3191692e4e..571d8375a4 100644
--- a/target/linux/ramips/dts/mt7621_asus_rt-ax54.dts
+++ b/target/linux/ramips/dts/mt7621_asus_rt-ax54.dts
@@ -87,13 +87,16 @@
};
factory: partition@1e0000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x1e0000 0x100000>;
- read-only;
-
- compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
+ read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0xe00>;
+ };
macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
@@ -128,7 +131,8 @@
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
- mediatek,mtd-eeprom = <&factory 0x0000>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
mediatek,disable-radar-background;
};
};
diff --git a/target/linux/ramips/dts/mt7621_belkin_rt1800.dts b/target/linux/ramips/dts/mt7621_belkin_rt1800.dts
index 16ae732429..2e5fcc8bca 100644
--- a/target/linux/ramips/dts/mt7621_belkin_rt1800.dts
+++ b/target/linux/ramips/dts/mt7621_belkin_rt1800.dts
@@ -86,9 +86,16 @@
};
factory: partition@100000 {
+ compatible = "nvmem-cells";
label = "Factory";
reg = <0x100000 0x80000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0xe00>;
+ };
};
partition@180000 {
@@ -133,7 +140,8 @@
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
- mediatek,mtd-eeprom = <&factory 0x0000>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git a/target/linux/ramips/dts/mt7621_comfast_cf-e390ax.dts b/target/linux/ramips/dts/mt7621_comfast_cf-e390ax.dts
index 80600470e7..8c0dd1ac2e 100644
--- a/target/linux/ramips/dts/mt7621_comfast_cf-e390ax.dts
+++ b/target/linux/ramips/dts/mt7621_comfast_cf-e390ax.dts
@@ -59,7 +59,8 @@
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
- mediatek,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
@@ -87,9 +88,20 @@
};
factory: partition@50000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x50000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0xe00>;
+ };
+
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
};
partition@90000 {
@@ -101,16 +113,6 @@
};
};
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_e000: macaddr@e000 {
- reg = <0xe000 0x6>;
- };
-};
-
&gmac0 {
nvmem-cells = <&macaddr_factory_e000>;
nvmem-cell-names = "mac-address";
diff --git a/target/linux/ramips/dts/mt7621_cudy_m1800.dts b/target/linux/ramips/dts/mt7621_cudy_m1800.dts
index 314fdb206c..90110da4fb 100644
--- a/target/linux/ramips/dts/mt7621_cudy_m1800.dts
+++ b/target/linux/ramips/dts/mt7621_cudy_m1800.dts
@@ -81,7 +81,8 @@
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
- mediatek,mtd-eeprom = <&factory 0x0000>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
mediatek,disable-radar-background;
};
};
@@ -114,9 +115,16 @@
};
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 0xe00>;
+ };
};
partition@50000 {
diff --git a/target/linux/ramips/dts/mt7621_cudy_x6.dtsi b/target/linux/ramips/dts/mt7621_cudy_x6.dtsi
index 4c34f58a4b..84e053cb42 100644
--- a/target/linux/ramips/dts/mt7621_cudy_x6.dtsi
+++ b/target/linux/ramips/dts/mt7621_cudy_x6.dtsi
@@ -76,9 +76,16 @@
};
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 0xe00>;
+ };
};
/* additional partitions in DTS */
@@ -94,7 +101,8 @@
wifi:wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
- mediatek,mtd-eeprom = <&factory 0x0000>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
mediatek,disable-radar-background;
};
};
diff --git a/target/linux/ramips/dts/mt7621_dlink_dap-x1860-a1.dts b/target/linux/ramips/dts/mt7621_dlink_dap-x1860-a1.dts
index 818d2d8c41..3be48e11af 100644
--- a/target/linux/ramips/dts/mt7621_dlink_dap-x1860-a1.dts
+++ b/target/linux/ramips/dts/mt7621_dlink_dap-x1860-a1.dts
@@ -125,13 +125,16 @@
};
factory: partition@100000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x100000 0x80000>;
- read-only;
-
- compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
+ read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0xe00>;
+ };
macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
@@ -175,7 +178,8 @@
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
- mediatek,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
mediatek,disable-radar-background;
};
};
diff --git a/target/linux/ramips/dts/mt7621_h3c_tx180x.dtsi b/target/linux/ramips/dts/mt7621_h3c_tx180x.dtsi
index fe374bfa6b..afb188dff4 100644
--- a/target/linux/ramips/dts/mt7621_h3c_tx180x.dtsi
+++ b/target/linux/ramips/dts/mt7621_h3c_tx180x.dtsi
@@ -97,9 +97,16 @@
};
factory: partition@180000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x0180000 0x0080000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0xe00>;
+ };
};
partition@200000 {
@@ -133,7 +140,8 @@
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
- mediatek,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
mediatek,disable-radar-background;
};
};
diff --git a/target/linux/ramips/dts/mt7621_haier-sim_wr1800k.dtsi b/target/linux/ramips/dts/mt7621_haier-sim_wr1800k.dtsi
index 4dd6f3b0ae..afda347ee7 100644
--- a/target/linux/ramips/dts/mt7621_haier-sim_wr1800k.dtsi
+++ b/target/linux/ramips/dts/mt7621_haier-sim_wr1800k.dtsi
@@ -103,13 +103,16 @@
};
factory: partition@100000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x0100000 0x0080000>;
- read-only;
-
- compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
+ read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0xe00>;
+ };
macaddr_factory_8004: macaddr@8004 {
reg = <0x8004 0x6>;
@@ -147,7 +150,8 @@
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
- mediatek,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
mediatek,disable-radar-background;
};
};
diff --git a/target/linux/ramips/dts/mt7621_iptime_ax2004m.dts b/target/linux/ramips/dts/mt7621_iptime_ax2004m.dts
index 554d73ce3d..10fa667f04 100644
--- a/target/linux/ramips/dts/mt7621_iptime_ax2004m.dts
+++ b/target/linux/ramips/dts/mt7621_iptime_ax2004m.dts
@@ -73,13 +73,16 @@
};
factory: partition@100000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x100000 0x80000>;
- read-only;
-
- compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
+ read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0xe00>;
+ };
macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
@@ -168,6 +171,7 @@
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
- mediatek,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git a/target/linux/ramips/dts/mt7621_jcg_q20.dts b/target/linux/ramips/dts/mt7621_jcg_q20.dts
index 34236954d0..4f480ab2c8 100644
--- a/target/linux/ramips/dts/mt7621_jcg_q20.dts
+++ b/target/linux/ramips/dts/mt7621_jcg_q20.dts
@@ -88,9 +88,24 @@
};
factory: partition@100000 {
+ compatible = "nvmem-cells";
label = "Factory";
reg = <0x100000 0x80000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0xe00>;
+ };
+
+ macaddr_factory_3fff4: macaddr@3fff4 {
+ reg = <0x3fff4 0x6>;
+ };
+
+ macaddr_factory_3fffa: macaddr@3fffa {
+ reg = <0x3fffa 0x6>;
+ };
};
partition@180000 {
@@ -139,7 +154,8 @@
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
- mediatek,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
mediatek,disable-radar-background;
};
};
@@ -184,17 +200,3 @@
function = "gpio";
};
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_3fff4: macaddr@3fff4 {
- reg = <0x3fff4 0x6>;
- };
-
- macaddr_factory_3fffa: macaddr@3fffa {
- reg = <0x3fffa 0x6>;
- };
-};
diff --git a/target/linux/ramips/dts/mt7621_linksys_e7350.dts b/target/linux/ramips/dts/mt7621_linksys_e7350.dts
index ea8a684148..4451e5e3f3 100644
--- a/target/linux/ramips/dts/mt7621_linksys_e7350.dts
+++ b/target/linux/ramips/dts/mt7621_linksys_e7350.dts
@@ -80,9 +80,16 @@
};
factory: partition@100000 {
+ compatible = "nvmem-cells";
label = "Factory";
reg = <0x100000 0x80000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0xe00>;
+ };
};
partition@180000 {
@@ -127,7 +134,8 @@
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
- mediatek,mtd-eeprom = <&factory 0x0000>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git a/target/linux/ramips/dts/mt7621_mercusys_mr70x-v1.dts b/target/linux/ramips/dts/mt7621_mercusys_mr70x-v1.dts
index 245d130a1f..ce365450ab 100644
--- a/target/linux/ramips/dts/mt7621_mercusys_mr70x-v1.dts
+++ b/target/linux/ramips/dts/mt7621_mercusys_mr70x-v1.dts
@@ -72,9 +72,16 @@
};
config: partition@fa0000 {
+ compatible = "nvmem-cells";
label = "config";
reg = <0xfa0000 0x010000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
+
+ macaddr_config_8: macaddr@8 {
+ reg = <0x8 0x6>;
+ };
};
partition@fb0000 {
@@ -84,9 +91,16 @@
};
radio: partition@ff0000 {
+ compatible = "nvmem-cells";
label = "radio";
reg = <0xff0000 0x010000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
+
+ eeprom_radio_0: eeprom@0 {
+ reg = <0x0 0xe00>;
+ };
};
};
};
@@ -100,9 +114,8 @@
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
- mediatek,mtd-eeprom = <&radio 0x0>;
- nvmem-cells = <&macaddr_config_8>;
- nvmem-cell-names = "mac-address";
+ nvmem-cells = <&eeprom_radio_0>, <&macaddr_config_8>;
+ nvmem-cell-names = "eeprom", "mac-address";
mediatek,disable-radar-background;
};
};
@@ -153,13 +166,3 @@
function = "gpio";
};
};
-
-&config {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_config_8: macaddr@8 {
- reg = <0x8 0x6>;
- };
-};
diff --git a/target/linux/ramips/dts/mt7621_netgear_eax12.dts b/target/linux/ramips/dts/mt7621_netgear_eax12.dts
index d5ad404be0..e65d881e82 100644
--- a/target/linux/ramips/dts/mt7621_netgear_eax12.dts
+++ b/target/linux/ramips/dts/mt7621_netgear_eax12.dts
@@ -107,9 +107,16 @@
};
factory: partition@100000 {
+ compatible = "nvmem-cells";
label = "Factory";
reg = <0x100000 0x80000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0xe00>;
+ };
};
partition@180000 {
@@ -171,7 +178,8 @@
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
- mediatek,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git a/target/linux/ramips/dts/mt7621_netgear_wax202.dts b/target/linux/ramips/dts/mt7621_netgear_wax202.dts
index fbe17ef0d3..eb7d1bb7e5 100644
--- a/target/linux/ramips/dts/mt7621_netgear_wax202.dts
+++ b/target/linux/ramips/dts/mt7621_netgear_wax202.dts
@@ -113,9 +113,16 @@
};
factory: partition@100000 {
+ compatible = "nvmem-cells";
label = "Factory";
reg = <0x100000 0x80000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0xe00>;
+ };
};
partition@180000 {
@@ -213,7 +220,8 @@
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
- mediatek,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git a/target/linux/ramips/dts/mt7621_tenbay_t-mb5eu-v01.dts b/target/linux/ramips/dts/mt7621_tenbay_t-mb5eu-v01.dts
index 2d91d1c481..a7e048f9ae 100644
--- a/target/linux/ramips/dts/mt7621_tenbay_t-mb5eu-v01.dts
+++ b/target/linux/ramips/dts/mt7621_tenbay_t-mb5eu-v01.dts
@@ -105,7 +105,8 @@
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0 0 0 0 0>;
- mediatek,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
mediatek,disable-radar-background;
};
};
@@ -194,9 +195,20 @@
};
factory: partition@50000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x50000 0x40000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0xe00>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@90000 {
@@ -207,13 +219,3 @@
};
};
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
diff --git a/target/linux/ramips/dts/mt7621_totolink_x5000r.dts b/target/linux/ramips/dts/mt7621_totolink_x5000r.dts
index 79667caf73..23d47d6ea3 100644
--- a/target/linux/ramips/dts/mt7621_totolink_x5000r.dts
+++ b/target/linux/ramips/dts/mt7621_totolink_x5000r.dts
@@ -70,9 +70,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 0xe00>;
+ };
+
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
+
+ macaddr_factory_e006: macaddr@e006 {
+ reg = <0xe006 0x6>;
+ };
};
partition@50000 {
@@ -92,7 +107,8 @@
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
- mediatek,mtd-eeprom = <&factory 0x0000>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
mediatek,disable-radar-background;
};
};
@@ -147,17 +163,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>;
- };
-};
diff --git a/target/linux/ramips/dts/mt7621_tplink_archer-ax23-v1.dts b/target/linux/ramips/dts/mt7621_tplink_archer-ax23-v1.dts
index 50834c5866..69652772ac 100644
--- a/target/linux/ramips/dts/mt7621_tplink_archer-ax23-v1.dts
+++ b/target/linux/ramips/dts/mt7621_tplink_archer-ax23-v1.dts
@@ -105,9 +105,16 @@
};
config: partition@fa0000 {
+ compatible = "nvmem-cells";
label = "config";
reg = <0xfa0000 0x010000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
+
+ macaddr_config_8: macaddr@8 {
+ reg = <0x8 0x6>;
+ };
};
partition@fb0000 {
@@ -117,9 +124,16 @@
};
radio: partition@ff0000 {
+ compatible = "nvmem-cells";
label = "radio";
reg = <0xff0000 0x010000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
+
+ eeprom_radio_0: eeprom@0 {
+ reg = <0x0 0xe00>;
+ };
};
};
};
@@ -133,9 +147,8 @@
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
- mediatek,mtd-eeprom = <&radio 0x0>;
- nvmem-cells = <&macaddr_config_8>;
- nvmem-cell-names = "mac-address";
+ nvmem-cells = <&eeprom_radio_0>, <&macaddr_config_8>;
+ nvmem-cell-names = "eeprom", "mac-address";
mediatek,disable-radar-background;
};
};
@@ -191,13 +204,3 @@
function = "gpio";
};
};
-
-&config {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_config_8: macaddr@8 {
- reg = <0x8 0x6>;
- };
-};
diff --git a/target/linux/ramips/dts/mt7621_tplink_eap613-v1.dts b/target/linux/ramips/dts/mt7621_tplink_eap613-v1.dts
index d25bf57560..277b2bbcf4 100644
--- a/target/linux/ramips/dts/mt7621_tplink_eap613-v1.dts
+++ b/target/linux/ramips/dts/mt7621_tplink_eap613-v1.dts
@@ -108,9 +108,16 @@
};
radio: partition@ff0000 {
+ compatible = "nvmem-cells";
label = "radio";
reg = <0xff0000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
+
+ eeprom_radio_0: eeprom@0 {
+ reg = <0x0 0xe00>;
+ };
};
};
};
@@ -131,7 +138,8 @@
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
- mediatek,mtd-eeprom = <&radio 0x0>;
+ nvmem-cells = <&eeprom_radio_0>;
+ nvmem-cell-names = "eeprom";
mediatek,disable-radar-background;
};
};
diff --git a/target/linux/ramips/dts/mt7621_tplink_eap615-wall-v1.dts b/target/linux/ramips/dts/mt7621_tplink_eap615-wall-v1.dts
index 58e4bbf757..d23ab9c4db 100644
--- a/target/linux/ramips/dts/mt7621_tplink_eap615-wall-v1.dts
+++ b/target/linux/ramips/dts/mt7621_tplink_eap615-wall-v1.dts
@@ -90,9 +90,16 @@
};
info: partition@90000 {
+ compatible = "nvmem-cells";
label = "product-info";
reg = <0x90000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
+
+ macaddr_info_8: macaddr@8 {
+ reg = <0x8 0x6>;
+ };
};
partition@a0000 {
@@ -120,9 +127,16 @@
};
radio: partition@ff0000 {
+ compatible = "nvmem-cells";
label = "radio";
reg = <0xff0000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
+
+ eeprom_radio_0: eeprom@0 {
+ reg = <0x0 0xe00>;
+ };
};
};
};
@@ -143,7 +157,8 @@
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
- mediatek,mtd-eeprom = <&radio 0x0>;
+ nvmem-cells = <&eeprom_radio_0>;
+ nvmem-cell-names = "eeprom";
mediatek,disable-radar-background;
};
};
@@ -186,13 +201,3 @@
};
};
};
-
-&info {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_info_8: macaddr@8 {
- reg = <0x8 0x6>;
- };
-};
diff --git a/target/linux/ramips/dts/mt7621_ubnt_unifi-6-lite.dts b/target/linux/ramips/dts/mt7621_ubnt_unifi-6-lite.dts
index 8f78a60557..c0b6b77585 100644
--- a/target/linux/ramips/dts/mt7621_ubnt_unifi-6-lite.dts
+++ b/target/linux/ramips/dts/mt7621_ubnt_unifi-6-lite.dts
@@ -47,6 +47,10 @@
eeprom_factory_0: eeprom@0 {
reg = <0x0 0x400>;
};
+
+ eeprom_factory_20000: eeprom@20000 {
+ reg = <0x20000 0xe00>;
+ };
};
eeprom: partition@b0000 {
@@ -104,10 +108,8 @@
&wlan_5g {
compatible = "mediatek,mt76";
- mediatek,mtd-eeprom = <&factory 0x20000>;
-
- nvmem-cells = <&macaddr_eeprom_6>;
- nvmem-cell-names = "mac-address";
+ nvmem-cells = <&eeprom_factory_20000>, <&macaddr_eeprom_6>;
+ nvmem-cell-names = "eeprom", "mac-address";
/* This is a workaround.
*
diff --git a/target/linux/ramips/dts/mt7621_wavlink_wl-wn573hx1.dts b/target/linux/ramips/dts/mt7621_wavlink_wl-wn573hx1.dts
index d8a94c85b9..1bdbebfad7 100755
--- a/target/linux/ramips/dts/mt7621_wavlink_wl-wn573hx1.dts
+++ b/target/linux/ramips/dts/mt7621_wavlink_wl-wn573hx1.dts
@@ -61,7 +61,8 @@
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
- mediatek,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
@@ -87,8 +88,19 @@
};
factory:partition@50000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x50000 0x40000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0xe00>;
+ };
+
+ macaddr_factory_3fff4: macaddr@3fff4 {
+ reg = <0x3fff4 0x6>;
+ };
};
partition@90000 {
@@ -119,15 +131,3 @@
};
};
};
-
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_3fff4: macaddr@3fff4 {
- reg = <0x3fff4 0x6>;
- };
-
-};
diff --git a/target/linux/ramips/dts/mt7621_xiaomi_mi-router-cr660x.dtsi b/target/linux/ramips/dts/mt7621_xiaomi_mi-router-cr660x.dtsi
index 14ad0f26ba..f0e0ae8e7e 100644
--- a/target/linux/ramips/dts/mt7621_xiaomi_mi-router-cr660x.dtsi
+++ b/target/linux/ramips/dts/mt7621_xiaomi_mi-router-cr660x.dtsi
@@ -86,9 +86,24 @@
};
factory: partition@100000 {
+ compatible = "nvmem-cells";
label = "Factory";
reg = <0x100000 0x80000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0xe00>;
+ };
+
+ macaddr_factory_3fff4: macaddr@3fff4 {
+ reg = <0x3fff4 0x6>;
+ };
+
+ macaddr_factory_3fffa: macaddr@3fffa {
+ reg = <0x3fffa 0x6>;
+ };
};
partition@180000 {
@@ -135,7 +150,8 @@
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
- mediatek,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
mediatek,disable-radar-background;
};
};
@@ -185,17 +201,3 @@
function = "gpio";
};
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_3fff4: macaddr@3fff4 {
- reg = <0x3fff4 0x6>;
- };
-
- macaddr_factory_3fffa: macaddr@3fffa {
- reg = <0x3fffa 0x6>;
- };
-};
diff --git a/target/linux/ramips/dts/mt7621_yuncore_ax820.dts b/target/linux/ramips/dts/mt7621_yuncore_ax820.dts
index 1aba94a912..277c584509 100644
--- a/target/linux/ramips/dts/mt7621_yuncore_ax820.dts
+++ b/target/linux/ramips/dts/mt7621_yuncore_ax820.dts
@@ -112,9 +112,20 @@
*/
factory: partition@50000 {
+ compatible = "nvmem-cells";
label = "Factory";
reg = <0x50000 0x40000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0xe00>;
+ };
+
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
};
partition@90000 {
@@ -134,7 +145,8 @@
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
- mediatek,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
mediatek,disable-radar-background;
};
};
@@ -178,13 +190,3 @@
function = "gpio";
};
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_e000: macaddr@e000 {
- reg = <0xe000 0x6>;
- };
-};
diff --git a/target/linux/ramips/dts/mt7621_yuncore_fap640.dts b/target/linux/ramips/dts/mt7621_yuncore_fap640.dts
index d525dde385..8fd6ad347e 100644
--- a/target/linux/ramips/dts/mt7621_yuncore_fap640.dts
+++ b/target/linux/ramips/dts/mt7621_yuncore_fap640.dts
@@ -120,9 +120,24 @@
*/
factory: partition@50000 {
+ compatible = "nvmem-cells";
label = "Factory";
reg = <0x50000 0x40000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0xe00>;
+ };
+
+ macaddr_factory_0004: macaddr@0004 {
+ reg = <0x0004 0x6>;
+ };
+
+ macaddr_factory_e006: macaddr@e006 {
+ reg = <0xe006 0x6>;
+ };
};
partition@90000 {
@@ -142,7 +157,8 @@
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
- mediatek,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
mediatek,disable-radar-background;
};
};
@@ -201,18 +217,3 @@
function = "gpio";
};
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_0004: macaddr@0004 {
- reg = <0x0004 0x6>;
- };
-
- macaddr_factory_e006: macaddr@e006 {
- reg = <0xe006 0x6>;
- };
-};
-
diff --git a/target/linux/ramips/dts/mt7621_yuncore_fap690.dts b/target/linux/ramips/dts/mt7621_yuncore_fap690.dts
index a998b95d4c..35e320b974 100644
--- a/target/linux/ramips/dts/mt7621_yuncore_fap690.dts
+++ b/target/linux/ramips/dts/mt7621_yuncore_fap690.dts
@@ -90,9 +90,20 @@
*/
factory: partition@50000 {
+ compatible = "nvmem-cells";
label = "Factory";
reg = <0x50000 0x40000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0xe00>;
+ };
+
+ macaddr_factory_0004: macaddr@0004 {
+ reg = <0x0004 0x6>;
+ };
};
partition@90000 {
@@ -112,7 +123,8 @@
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
- mediatek,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
mediatek,disable-radar-background;
};
};
@@ -137,13 +149,3 @@
function = "gpio";
};
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_0004: macaddr@0004 {
- reg = <0x0004 0x6>;
- };
-};
diff --git a/target/linux/ramips/dts/mt7621_zyxel_nwa-ax.dtsi b/target/linux/ramips/dts/mt7621_zyxel_nwa-ax.dtsi
index fa7e23dd47..8dfb2ceaa7 100644
--- a/target/linux/ramips/dts/mt7621_zyxel_nwa-ax.dtsi
+++ b/target/linux/ramips/dts/mt7621_zyxel_nwa-ax.dtsi
@@ -37,9 +37,16 @@
};
factory: partition@100000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x100000 0x80000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0xe00>;
+ };
};
partition@180000 {
@@ -93,9 +100,16 @@
};
mrd: partition@7780000 {
+ compatible = "nvmem-cells";
label = "mrd";
reg = <0x7780000 0x80000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
+
+ macaddr_mrd_1fff8: macaddr@1fff8 {
+ reg = <0x1fff8 0x6>;
+ };
};
};
};
@@ -109,7 +123,8 @@
reg = <0x0 0 0 0 0>;
compatible = "mediatek,mt76";
- mediatek,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
/* MAC-Address set in userspace */
};
@@ -129,16 +144,6 @@
};
};
-&mrd {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_mrd_1fff8: macaddr@1fff8 {
- reg = <0x1fff8 0x6>;
- };
-};
-
&state_default {
gpio {
groups = "uart3";
diff --git a/target/linux/ramips/dts/mt7621_zyxel_wsm20.dts b/target/linux/ramips/dts/mt7621_zyxel_wsm20.dts
index 299d982dc1..5615e56864 100644
--- a/target/linux/ramips/dts/mt7621_zyxel_wsm20.dts
+++ b/target/linux/ramips/dts/mt7621_zyxel_wsm20.dts
@@ -103,9 +103,24 @@
};
factory: partition@200000 {
+ compatible = "nvmem-cells";
reg = <0x200000 0x1c0000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
label = "Factory";
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0xe00>;
+ };
+
+ macaddr_factory_1fdfa: macaddr@1fdfa {
+ reg = <0x1fdfa 0x6>;
+ };
+
+ macaddr_factory_1fdf4: macaddr@1fdf4 {
+ reg = <0x1fdf4 0x6>;
+ };
};
partition@3c0000 {
@@ -185,7 +200,8 @@
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
- mediatek,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
mediatek,disable-radar-background;
};
};
@@ -217,17 +233,3 @@
function = "gpio";
};
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_1fdfa: macaddr@1fdfa {
- reg = <0x1fdfa 0x6>;
- };
-
- macaddr_factory_1fdf4: macaddr@1fdf4 {
- reg = <0x1fdf4 0x6>;
- };
-};