aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2023-11-23 18:31:55 -0800
committerChristian Marangi <ansuelsmth@gmail.com>2023-11-25 23:58:40 +0100
commit0a1d15642fa6b4eba45104a4b7bbeb202162f9a5 (patch)
treef4aadb2cf1737994008e6bddbf9e37bac2360276 /target/linux
parent3eb899fd36752ce07fed14cf05de7868d1a67944 (diff)
downloadupstream-0a1d15642fa6b4eba45104a4b7bbeb202162f9a5.tar.gz
upstream-0a1d15642fa6b4eba45104a4b7bbeb202162f9a5.tar.bz2
upstream-0a1d15642fa6b4eba45104a4b7bbeb202162f9a5.zip
ramips: mt7628: use nvmem-layout
Will allow using mac-base. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/ramips/dts/mt7628an_alfa-network_awusfree1.dts19
-rw-r--r--target/linux/ramips/dts/mt7628an_asus_rt-ac1200.dtsi25
-rw-r--r--target/linux/ramips/dts/mt7628an_asus_rt-n1x.dtsi19
-rw-r--r--target/linux/ramips/dts/mt7628an_buffalo_wcr-1166ds.dts19
-rw-r--r--target/linux/ramips/dts/mt7628an_comfast_cf-wr617ac.dts31
-rw-r--r--target/linux/ramips/dts/mt7628an_comfast_cf-wr758ac.dtsi25
-rw-r--r--target/linux/ramips/dts/mt7628an_cudy_wr1000.dts25
-rw-r--r--target/linux/ramips/dts/mt7628an_d-team_pbr-d1.dts20
-rw-r--r--target/linux/ramips/dts/mt7628an_dlink_dap-1325-a1.dts19
-rw-r--r--target/linux/ramips/dts/mt7628an_duzun_dm06.dts20
-rw-r--r--target/linux/ramips/dts/mt7628an_elecom_wrc-1167fs.dts25
-rw-r--r--target/linux/ramips/dts/mt7628an_glinet_gl-mt300n-v2.dts19
-rw-r--r--target/linux/ramips/dts/mt7628an_glinet_vixmini_microuter.dtsi19
-rw-r--r--target/linux/ramips/dts/mt7628an_hak5_wifi-pineapple-mk7.dts19
-rw-r--r--target/linux/ramips/dts/mt7628an_hilink_hlk-7628n.dts19
-rw-r--r--target/linux/ramips/dts/mt7628an_hilink_hlk-7688a.dts19
-rw-r--r--target/linux/ramips/dts/mt7628an_hiwifi_hc5x61a.dtsi31
-rw-r--r--target/linux/ramips/dts/mt7628an_iptime.dtsi32
-rw-r--r--target/linux/ramips/dts/mt7628an_jotale_js76x8.dtsi19
-rw-r--r--target/linux/ramips/dts/mt7628an_keenetic_kn-1613.dts25
-rw-r--r--target/linux/ramips/dts/mt7628an_kroks.dtsi19
-rw-r--r--target/linux/ramips/dts/mt7628an_linksys_e5400.dts25
-rw-r--r--target/linux/ramips/dts/mt7628an_mediatek_linkit-smart-7688.dts19
-rw-r--r--target/linux/ramips/dts/mt7628an_mediatek_mt7628an-eval-board.dts13
-rw-r--r--target/linux/ramips/dts/mt7628an_mercury_mac1200r-v2.dts32
-rw-r--r--target/linux/ramips/dts/mt7628an_minew_g1-c.dts19
-rw-r--r--target/linux/ramips/dts/mt7628an_motorola_mwr03.dts25
-rw-r--r--target/linux/ramips/dts/mt7628an_netgear_r6xxx.dtsi25
-rw-r--r--target/linux/ramips/dts/mt7628an_onion_omega2.dtsi19
-rw-r--r--target/linux/ramips/dts/mt7628an_oraybox_x1.dts20
-rw-r--r--target/linux/ramips/dts/mt7628an_rakwireless_rak633.dts19
-rw-r--r--target/linux/ramips/dts/mt7628an_ravpower_rp-wd009.dts25
-rw-r--r--target/linux/ramips/dts/mt7628an_skylab_skw92a.dts19
-rw-r--r--target/linux/ramips/dts/mt7628an_tama_w06.dts19
-rw-r--r--target/linux/ramips/dts/mt7628an_totolink_lr1200.dts25
-rw-r--r--target/linux/ramips/dts/mt7628an_tplink_8m-split-uboot.dtsi32
-rw-r--r--target/linux/ramips/dts/mt7628an_tplink_8m.dtsi25
-rw-r--r--target/linux/ramips/dts/mt7628an_tplink_re200.dtsi32
-rw-r--r--target/linux/ramips/dts/mt7628an_tplink_re305-v1.dts32
-rw-r--r--target/linux/ramips/dts/mt7628an_tplink_re305-v3.dts32
-rw-r--r--target/linux/ramips/dts/mt7628an_tplink_tl-mr3020-v3.dts19
-rw-r--r--target/linux/ramips/dts/mt7628an_tplink_tl-mr6400-v4.dts12
-rw-r--r--target/linux/ramips/dts/mt7628an_tplink_tl-mr6400-v5.dts12
-rw-r--r--target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v5.dts19
-rw-r--r--target/linux/ramips/dts/mt7628an_tplink_tl-wr841n-v14.dts19
-rw-r--r--target/linux/ramips/dts/mt7628an_unielec_u7628-01-16m.dts19
-rw-r--r--target/linux/ramips/dts/mt7628an_vocore_vocore2.dtsi19
-rw-r--r--target/linux/ramips/dts/mt7628an_wavlink_wl-wn531a3.dts25
-rw-r--r--target/linux/ramips/dts/mt7628an_wavlink_wl-wn570ha1.dts25
-rw-r--r--target/linux/ramips/dts/mt7628an_wavlink_wl-wn575a3.dts25
-rw-r--r--target/linux/ramips/dts/mt7628an_wavlink_wl-wn576a2.dts25
-rw-r--r--target/linux/ramips/dts/mt7628an_wavlink_wl-wn577a2.dts25
-rw-r--r--target/linux/ramips/dts/mt7628an_wavlink_wl-wn578a2.dts25
-rw-r--r--target/linux/ramips/dts/mt7628an_widora_neo.dtsi19
-rw-r--r--target/linux/ramips/dts/mt7628an_wiznet_wizfi630s.dts19
-rw-r--r--target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2.dtsi19
-rw-r--r--target/linux/ramips/dts/mt7628an_xiaomi_mi-router-4.dtsi37
-rw-r--r--target/linux/ramips/dts/mt7628an_xiaomi_miwifi-3c.dts19
-rw-r--r--target/linux/ramips/dts/mt7628an_xiaomi_miwifi-nano.dts19
-rw-r--r--target/linux/ramips/dts/mt7628an_zbtlink_zbt-we1226.dts19
-rw-r--r--target/linux/ramips/dts/mt7628an_zyxel_keenetic-extra-ii.dts25
61 files changed, 780 insertions, 590 deletions
diff --git a/target/linux/ramips/dts/mt7628an_alfa-network_awusfree1.dts b/target/linux/ramips/dts/mt7628an_alfa-network_awusfree1.dts
index 67f4d07f3af..641844ccc0d 100644
--- a/target/linux/ramips/dts/mt7628an_alfa-network_awusfree1.dts
+++ b/target/linux/ramips/dts/mt7628an_alfa-network_awusfree1.dts
@@ -114,19 +114,22 @@
};
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>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x400>;
+ };
- macaddr_factory_2e: macaddr@2e {
- reg = <0x2e 0x6>;
+ macaddr_factory_2e: macaddr@2e {
+ reg = <0x2e 0x6>;
+ };
};
};
diff --git a/target/linux/ramips/dts/mt7628an_asus_rt-ac1200.dtsi b/target/linux/ramips/dts/mt7628an_asus_rt-ac1200.dtsi
index 7a13921aa55..e91f1b60297 100644
--- a/target/linux/ramips/dts/mt7628an_asus_rt-ac1200.dtsi
+++ b/target/linux/ramips/dts/mt7628an_asus_rt-ac1200.dtsi
@@ -73,23 +73,26 @@
};
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>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
- eeprom_factory_8000: eeprom@8000 {
- reg = <0x8000 0x200>;
- };
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x400>;
+ };
+
+ eeprom_factory_8000: eeprom@8000 {
+ reg = <0x8000 0x200>;
+ };
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
};
diff --git a/target/linux/ramips/dts/mt7628an_asus_rt-n1x.dtsi b/target/linux/ramips/dts/mt7628an_asus_rt-n1x.dtsi
index 7404853f8cd..aa642da11fd 100644
--- a/target/linux/ramips/dts/mt7628an_asus_rt-n1x.dtsi
+++ b/target/linux/ramips/dts/mt7628an_asus_rt-n1x.dtsi
@@ -75,19 +75,22 @@
};
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>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x400>;
+ };
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
};
diff --git a/target/linux/ramips/dts/mt7628an_buffalo_wcr-1166ds.dts b/target/linux/ramips/dts/mt7628an_buffalo_wcr-1166ds.dts
index 7f774163377..1b9e0047ccc 100644
--- a/target/linux/ramips/dts/mt7628an_buffalo_wcr-1166ds.dts
+++ b/target/linux/ramips/dts/mt7628an_buffalo_wcr-1166ds.dts
@@ -141,19 +141,22 @@
};
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>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x400>;
+ };
- eeprom_factory_8000: eeprom@8000 {
- reg = <0x8000 0x200>;
+ eeprom_factory_8000: eeprom@8000 {
+ reg = <0x8000 0x200>;
+ };
};
};
diff --git a/target/linux/ramips/dts/mt7628an_comfast_cf-wr617ac.dts b/target/linux/ramips/dts/mt7628an_comfast_cf-wr617ac.dts
index 4270c48ad9f..19c220cabb5 100644
--- a/target/linux/ramips/dts/mt7628an_comfast_cf-wr617ac.dts
+++ b/target/linux/ramips/dts/mt7628an_comfast_cf-wr617ac.dts
@@ -70,27 +70,30 @@
};
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>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
- eeprom_factory_8000: eeprom@8000 {
- reg = <0x8000 0x200>;
- };
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x400>;
+ };
- macaddr_factory_8004: macaddr@8004 {
- reg = <0x8004 0x6>;
- };
+ eeprom_factory_8000: eeprom@8000 {
+ reg = <0x8000 0x200>;
+ };
+
+ macaddr_factory_8004: macaddr@8004 {
+ reg = <0x8004 0x6>;
+ };
- macaddr_factory_e000: macaddr@e000 {
- reg = <0xe000 0x6>;
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
};
};
diff --git a/target/linux/ramips/dts/mt7628an_comfast_cf-wr758ac.dtsi b/target/linux/ramips/dts/mt7628an_comfast_cf-wr758ac.dtsi
index e8cabd7fd86..9cab562bda2 100644
--- a/target/linux/ramips/dts/mt7628an_comfast_cf-wr758ac.dtsi
+++ b/target/linux/ramips/dts/mt7628an_comfast_cf-wr758ac.dtsi
@@ -85,23 +85,26 @@
};
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>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
- eeprom_factory_8000: eeprom@8000 {
- reg = <0x8000 0x200>;
- };
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x400>;
+ };
+
+ eeprom_factory_8000: eeprom@8000 {
+ reg = <0x8000 0x200>;
+ };
- macaddr_factory_e000: macaddr@e000 {
- reg = <0xe000 0x6>;
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
};
};
diff --git a/target/linux/ramips/dts/mt7628an_cudy_wr1000.dts b/target/linux/ramips/dts/mt7628an_cudy_wr1000.dts
index 57405632ddd..883459d2f30 100644
--- a/target/linux/ramips/dts/mt7628an_cudy_wr1000.dts
+++ b/target/linux/ramips/dts/mt7628an_cudy_wr1000.dts
@@ -89,23 +89,26 @@
};
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>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
- eeprom_factory_8000: eeprom@8000 {
- reg = <0x8000 0x200>;
- };
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x400>;
+ };
+
+ eeprom_factory_8000: eeprom@8000 {
+ reg = <0x8000 0x200>;
+ };
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
};
diff --git a/target/linux/ramips/dts/mt7628an_d-team_pbr-d1.dts b/target/linux/ramips/dts/mt7628an_d-team_pbr-d1.dts
index 5a0aeaf5f25..f5e9a169d4d 100644
--- a/target/linux/ramips/dts/mt7628an_d-team_pbr-d1.dts
+++ b/target/linux/ramips/dts/mt7628an_d-team_pbr-d1.dts
@@ -116,6 +116,16 @@
label = "factory";
reg = <0x40000 0x10000>;
read-only;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+ };
};
partition@50000 {
@@ -160,13 +170,3 @@
status = "okay";
mediatek,cd-high;
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
- };
-};
diff --git a/target/linux/ramips/dts/mt7628an_dlink_dap-1325-a1.dts b/target/linux/ramips/dts/mt7628an_dlink_dap-1325-a1.dts
index 0bc81291d73..3ad34c51c1a 100644
--- a/target/linux/ramips/dts/mt7628an_dlink_dap-1325-a1.dts
+++ b/target/linux/ramips/dts/mt7628an_dlink_dap-1325-a1.dts
@@ -115,19 +115,22 @@
};
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>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x400>;
+ };
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
};
diff --git a/target/linux/ramips/dts/mt7628an_duzun_dm06.dts b/target/linux/ramips/dts/mt7628an_duzun_dm06.dts
index b9a105b0e3b..e37b90d38ee 100644
--- a/target/linux/ramips/dts/mt7628an_duzun_dm06.dts
+++ b/target/linux/ramips/dts/mt7628an_duzun_dm06.dts
@@ -120,6 +120,16 @@
label = "factory";
reg = <0x40000 0x10000>;
read-only;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+ };
};
partition@50000 {
@@ -130,13 +140,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/mt7628an_elecom_wrc-1167fs.dts b/target/linux/ramips/dts/mt7628an_elecom_wrc-1167fs.dts
index 4e68137f3b2..9d8b360c6a3 100644
--- a/target/linux/ramips/dts/mt7628an_elecom_wrc-1167fs.dts
+++ b/target/linux/ramips/dts/mt7628an_elecom_wrc-1167fs.dts
@@ -102,23 +102,26 @@
};
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>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
- eeprom_factory_8000: eeprom@8000 {
- reg = <0x8000 0x200>;
- };
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x400>;
+ };
+
+ eeprom_factory_8000: eeprom@8000 {
+ reg = <0x8000 0x200>;
+ };
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
};
diff --git a/target/linux/ramips/dts/mt7628an_glinet_gl-mt300n-v2.dts b/target/linux/ramips/dts/mt7628an_glinet_gl-mt300n-v2.dts
index 2142eaa096e..d84290d4c12 100644
--- a/target/linux/ramips/dts/mt7628an_glinet_gl-mt300n-v2.dts
+++ b/target/linux/ramips/dts/mt7628an_glinet_gl-mt300n-v2.dts
@@ -118,19 +118,22 @@
};
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>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x400>;
+ };
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
};
diff --git a/target/linux/ramips/dts/mt7628an_glinet_vixmini_microuter.dtsi b/target/linux/ramips/dts/mt7628an_glinet_vixmini_microuter.dtsi
index eea070a03ad..a40be00887f 100644
--- a/target/linux/ramips/dts/mt7628an_glinet_vixmini_microuter.dtsi
+++ b/target/linux/ramips/dts/mt7628an_glinet_vixmini_microuter.dtsi
@@ -90,19 +90,22 @@
};
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>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x400>;
+ };
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
};
diff --git a/target/linux/ramips/dts/mt7628an_hak5_wifi-pineapple-mk7.dts b/target/linux/ramips/dts/mt7628an_hak5_wifi-pineapple-mk7.dts
index 18ff6c75afa..aebbc7fa888 100644
--- a/target/linux/ramips/dts/mt7628an_hak5_wifi-pineapple-mk7.dts
+++ b/target/linux/ramips/dts/mt7628an_hak5_wifi-pineapple-mk7.dts
@@ -101,19 +101,22 @@
};
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>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x400>;
+ };
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
};
diff --git a/target/linux/ramips/dts/mt7628an_hilink_hlk-7628n.dts b/target/linux/ramips/dts/mt7628an_hilink_hlk-7628n.dts
index d7d4965328a..69e22f6dd7d 100644
--- a/target/linux/ramips/dts/mt7628an_hilink_hlk-7628n.dts
+++ b/target/linux/ramips/dts/mt7628an_hilink_hlk-7628n.dts
@@ -67,19 +67,22 @@
};
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>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x400>;
+ };
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
};
diff --git a/target/linux/ramips/dts/mt7628an_hilink_hlk-7688a.dts b/target/linux/ramips/dts/mt7628an_hilink_hlk-7688a.dts
index 5357996e92b..121a24b5025 100644
--- a/target/linux/ramips/dts/mt7628an_hilink_hlk-7688a.dts
+++ b/target/linux/ramips/dts/mt7628an_hilink_hlk-7688a.dts
@@ -81,19 +81,22 @@
};
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>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x400>;
+ };
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
};
diff --git a/target/linux/ramips/dts/mt7628an_hiwifi_hc5x61a.dtsi b/target/linux/ramips/dts/mt7628an_hiwifi_hc5x61a.dtsi
index cfd4bb1dc53..034a6de6c2d 100644
--- a/target/linux/ramips/dts/mt7628an_hiwifi_hc5x61a.dtsi
+++ b/target/linux/ramips/dts/mt7628an_hiwifi_hc5x61a.dtsi
@@ -57,27 +57,30 @@
};
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>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
- eeprom_factory_8000: eeprom@8000 {
- reg = <0x8000 0x200>;
- };
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x400>;
+ };
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
+ eeprom_factory_8000: eeprom@8000 {
+ reg = <0x8000 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
- macaddr_factory_2e: macaddr@2e {
- reg = <0x2e 0x6>;
+ macaddr_factory_2e: macaddr@2e {
+ reg = <0x2e 0x6>;
+ };
};
};
diff --git a/target/linux/ramips/dts/mt7628an_iptime.dtsi b/target/linux/ramips/dts/mt7628an_iptime.dtsi
index 22cc368b0b9..9c98c6f5ca1 100644
--- a/target/linux/ramips/dts/mt7628an_iptime.dtsi
+++ b/target/linux/ramips/dts/mt7628an_iptime.dtsi
@@ -43,15 +43,18 @@
#size-cells = <1>;
uboot: partition@0 {
- compatible = "nvmem-cells";
label = "u-boot";
reg = <0x0 0x20000>;
- #address-cells = <1>;
- #size-cells = <1>;
read-only;
- macaddr_uboot_1fc20: macaddr@1fc20 {
- reg = <0x1fc20 0x6>;
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_uboot_1fc20: macaddr@1fc20 {
+ reg = <0x1fc20 0x6>;
+ };
};
};
@@ -62,19 +65,22 @@
};
factory: partition@30000 {
- compatible = "nvmem-cells";
label = "factory";
reg = <0x30000 0x10000>;
- #address-cells = <1>;
- #size-cells = <1>;
read-only;
- eeprom_factory_0: eeprom@0 {
- reg = <0x0 0x400>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x400>;
+ };
- eeprom_factory_8000: eeprom@8000 {
- reg = <0x8000 0x200>;
+ eeprom_factory_8000: eeprom@8000 {
+ reg = <0x8000 0x200>;
+ };
};
};
diff --git a/target/linux/ramips/dts/mt7628an_jotale_js76x8.dtsi b/target/linux/ramips/dts/mt7628an_jotale_js76x8.dtsi
index a9ce7680d6f..643f599246c 100644
--- a/target/linux/ramips/dts/mt7628an_jotale_js76x8.dtsi
+++ b/target/linux/ramips/dts/mt7628an_jotale_js76x8.dtsi
@@ -81,19 +81,22 @@
};
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>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x400>;
+ };
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
};
diff --git a/target/linux/ramips/dts/mt7628an_keenetic_kn-1613.dts b/target/linux/ramips/dts/mt7628an_keenetic_kn-1613.dts
index 117f278f129..47542689661 100644
--- a/target/linux/ramips/dts/mt7628an_keenetic_kn-1613.dts
+++ b/target/linux/ramips/dts/mt7628an_keenetic_kn-1613.dts
@@ -130,23 +130,26 @@
};
factory: partition@40000 {
- compatible = "nvmem-cells";
label = "rf-eeprom";
reg = <0x40000 0x10000>;
- #address-cells = <1>;
- #size-cells = <1>;
read-only;
- eeprom_factory_0: eeprom@0 {
- reg = <0x0 0x400>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
- eeprom_factory_400: eeprom@400 {
- reg = <0x400 0x4da8>;
- };
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x400>;
+ };
+
+ eeprom_factory_400: eeprom@400 {
+ reg = <0x400 0x4da8>;
+ };
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
};
diff --git a/target/linux/ramips/dts/mt7628an_kroks.dtsi b/target/linux/ramips/dts/mt7628an_kroks.dtsi
index 186f8e16edd..bfe29398a9f 100644
--- a/target/linux/ramips/dts/mt7628an_kroks.dtsi
+++ b/target/linux/ramips/dts/mt7628an_kroks.dtsi
@@ -65,18 +65,21 @@
};
factory: partition@40000 {
- compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
- #address-cells = <1>;
- #size-cells = <1>;
- eeprom_factory_0: eeprom@0 {
- reg = <0x0 0x400>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x400>;
+ };
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
};
diff --git a/target/linux/ramips/dts/mt7628an_linksys_e5400.dts b/target/linux/ramips/dts/mt7628an_linksys_e5400.dts
index 24fd31a7e20..183b5c3cd14 100644
--- a/target/linux/ramips/dts/mt7628an_linksys_e5400.dts
+++ b/target/linux/ramips/dts/mt7628an_linksys_e5400.dts
@@ -78,23 +78,26 @@
};
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>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
- eeprom_factory_8000: eeprom@8000 {
- reg = <0x8000 0x200>;
- };
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x400>;
+ };
+
+ eeprom_factory_8000: eeprom@8000 {
+ reg = <0x8000 0x200>;
+ };
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
};
diff --git a/target/linux/ramips/dts/mt7628an_mediatek_linkit-smart-7688.dts b/target/linux/ramips/dts/mt7628an_mediatek_linkit-smart-7688.dts
index c693e69f2c3..1bd7f8e6daa 100644
--- a/target/linux/ramips/dts/mt7628an_mediatek_linkit-smart-7688.dts
+++ b/target/linux/ramips/dts/mt7628an_mediatek_linkit-smart-7688.dts
@@ -108,19 +108,22 @@
};
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>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x400>;
+ };
- macaddr_factory_2e: macaddr@2e {
- reg = <0x2e 0x6>;
+ macaddr_factory_2e: macaddr@2e {
+ reg = <0x2e 0x6>;
+ };
};
};
diff --git a/target/linux/ramips/dts/mt7628an_mediatek_mt7628an-eval-board.dts b/target/linux/ramips/dts/mt7628an_mediatek_mt7628an-eval-board.dts
index 9210451c16e..7f19ab69475 100644
--- a/target/linux/ramips/dts/mt7628an_mediatek_mt7628an-eval-board.dts
+++ b/target/linux/ramips/dts/mt7628an_mediatek_mt7628an-eval-board.dts
@@ -38,15 +38,18 @@
};
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>;
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x400>;
+ };
};
};
diff --git a/target/linux/ramips/dts/mt7628an_mercury_mac1200r-v2.dts b/target/linux/ramips/dts/mt7628an_mercury_mac1200r-v2.dts
index fee64bc53fc..074011fbb9b 100644
--- a/target/linux/ramips/dts/mt7628an_mercury_mac1200r-v2.dts
+++ b/target/linux/ramips/dts/mt7628an_mercury_mac1200r-v2.dts
@@ -43,32 +43,38 @@
};
factory: partition@1d800 {
- compatible = "nvmem-cells";
label = "factory_info";
reg = <0x1d800 0x800>;
- #address-cells = <1>;
- #size-cells = <1>;
read-only;
- eeprom_factory_0: eeprom@0 {
- reg = <0x0 0x400>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x400>;
+ };
- macaddr_factory_d: macaddr@d {
- reg = <0xd 0x6>;
+ macaddr_factory_d: macaddr@d {
+ reg = <0xd 0x6>;
+ };
};
};
art: partition@1e000 {
- compatible = "nvmem-cells";
label = "art";
reg = <0x1e000 0x2000>;
- #address-cells = <1>;
- #size-cells = <1>;
read-only;
- eeprom_art_1000: eeprom@1000 {
- reg = <0x1000 0x200>;
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ eeprom_art_1000: eeprom@1000 {
+ reg = <0x1000 0x200>;
+ };
};
};
diff --git a/target/linux/ramips/dts/mt7628an_minew_g1-c.dts b/target/linux/ramips/dts/mt7628an_minew_g1-c.dts
index e7a67b72c14..a1b40e09d01 100644
--- a/target/linux/ramips/dts/mt7628an_minew_g1-c.dts
+++ b/target/linux/ramips/dts/mt7628an_minew_g1-c.dts
@@ -105,19 +105,22 @@
};
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>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x400>;
+ };
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
};
diff --git a/target/linux/ramips/dts/mt7628an_motorola_mwr03.dts b/target/linux/ramips/dts/mt7628an_motorola_mwr03.dts
index f2895481ed6..003bd9f544c 100644
--- a/target/linux/ramips/dts/mt7628an_motorola_mwr03.dts
+++ b/target/linux/ramips/dts/mt7628an_motorola_mwr03.dts
@@ -68,23 +68,26 @@
};
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>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
- eeprom_factory_8000: eeprom@8000 {
- reg = <0x8000 0x200>;
- };
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x400>;
+ };
+
+ eeprom_factory_8000: eeprom@8000 {
+ reg = <0x8000 0x200>;
+ };
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
};
diff --git a/target/linux/ramips/dts/mt7628an_netgear_r6xxx.dtsi b/target/linux/ramips/dts/mt7628an_netgear_r6xxx.dtsi
index ba38839129e..6a3b654e080 100644
--- a/target/linux/ramips/dts/mt7628an_netgear_r6xxx.dtsi
+++ b/target/linux/ramips/dts/mt7628an_netgear_r6xxx.dtsi
@@ -80,23 +80,26 @@
};
factory: partition@40000 {
- compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x20000>;
- #address-cells = <1>;
- #size-cells = <1>;
read-only;
- eeprom_factory_0: eeprom@0 {
- reg = <0x0 0x400>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
- eeprom_factory_8000: eeprom@8000 {
- reg = <0x8000 0x200>;
- };
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x400>;
+ };
+
+ eeprom_factory_8000: eeprom@8000 {
+ reg = <0x8000 0x200>;
+ };
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
};
diff --git a/target/linux/ramips/dts/mt7628an_onion_omega2.dtsi b/target/linux/ramips/dts/mt7628an_onion_omega2.dtsi
index 79d1fbc335e..001dc227bc0 100644
--- a/target/linux/ramips/dts/mt7628an_onion_omega2.dtsi
+++ b/target/linux/ramips/dts/mt7628an_onion_omega2.dtsi
@@ -118,19 +118,22 @@
};
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>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x400>;
+ };
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
};
diff --git a/target/linux/ramips/dts/mt7628an_oraybox_x1.dts b/target/linux/ramips/dts/mt7628an_oraybox_x1.dts
index eb9a20aae05..9f43e46fac0 100644
--- a/target/linux/ramips/dts/mt7628an_oraybox_x1.dts
+++ b/target/linux/ramips/dts/mt7628an_oraybox_x1.dts
@@ -91,6 +91,16 @@
label = "bdinfo";
reg = <0xfe0000 0x10000>;
read-only;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_bdinfo_9: macaddr@9 {
+ reg = <0x9 0x6>;
+ };
+ };
};
partition@ff0000 {
@@ -117,13 +127,3 @@
&wmac {
status = "okay";
};
-
-&bdinfo {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_bdinfo_9: macaddr@9 {
- reg = <0x9 0x6>;
- };
-};
diff --git a/target/linux/ramips/dts/mt7628an_rakwireless_rak633.dts b/target/linux/ramips/dts/mt7628an_rakwireless_rak633.dts
index ecdfa13e69c..46dca444b57 100644
--- a/target/linux/ramips/dts/mt7628an_rakwireless_rak633.dts
+++ b/target/linux/ramips/dts/mt7628an_rakwireless_rak633.dts
@@ -52,19 +52,22 @@
};
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>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x400>;
+ };
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
};
diff --git a/target/linux/ramips/dts/mt7628an_ravpower_rp-wd009.dts b/target/linux/ramips/dts/mt7628an_ravpower_rp-wd009.dts
index b2e0a5eacaf..7c0e7551ce2 100644
--- a/target/linux/ramips/dts/mt7628an_ravpower_rp-wd009.dts
+++ b/target/linux/ramips/dts/mt7628an_ravpower_rp-wd009.dts
@@ -138,23 +138,26 @@
};
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>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
- eeprom_factory_8000: eeprom@8000 {
- reg = <0x8000 0x200>;
- };
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x400>;
+ };
+
+ eeprom_factory_8000: eeprom@8000 {
+ reg = <0x8000 0x200>;
+ };
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
};
diff --git a/target/linux/ramips/dts/mt7628an_skylab_skw92a.dts b/target/linux/ramips/dts/mt7628an_skylab_skw92a.dts
index bfb1bd808a1..fc111019a7d 100644
--- a/target/linux/ramips/dts/mt7628an_skylab_skw92a.dts
+++ b/target/linux/ramips/dts/mt7628an_skylab_skw92a.dts
@@ -84,19 +84,22 @@
};
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>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x400>;
+ };
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
};
diff --git a/target/linux/ramips/dts/mt7628an_tama_w06.dts b/target/linux/ramips/dts/mt7628an_tama_w06.dts
index 7f00db99867..dfe5192e12c 100644
--- a/target/linux/ramips/dts/mt7628an_tama_w06.dts
+++ b/target/linux/ramips/dts/mt7628an_tama_w06.dts
@@ -75,19 +75,22 @@
};
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>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x400>;
+ };
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
};
diff --git a/target/linux/ramips/dts/mt7628an_totolink_lr1200.dts b/target/linux/ramips/dts/mt7628an_totolink_lr1200.dts
index ea07ebe492f..83bde6b9ecf 100644
--- a/target/linux/ramips/dts/mt7628an_totolink_lr1200.dts
+++ b/target/linux/ramips/dts/mt7628an_totolink_lr1200.dts
@@ -144,23 +144,26 @@
};
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>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
- eeprom_factory_8000: eeprom@8000 {
- reg = <0x8000 0x200>;
- };
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x400>;
+ };
+
+ eeprom_factory_8000: eeprom@8000 {
+ reg = <0x8000 0x200>;
+ };
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
};
diff --git a/target/linux/ramips/dts/mt7628an_tplink_8m-split-uboot.dtsi b/target/linux/ramips/dts/mt7628an_tplink_8m-split-uboot.dtsi
index 7464d1c85dc..fee3935fdfa 100644
--- a/target/linux/ramips/dts/mt7628an_tplink_8m-split-uboot.dtsi
+++ b/target/linux/ramips/dts/mt7628an_tplink_8m-split-uboot.dtsi
@@ -53,15 +53,18 @@
};
rom: partition@7d0000 {
- compatible = "nvmem-cells";
label = "rom";
reg = <0x7d0000 0x10000>;
- #address-cells = <1>;
- #size-cells = <1>;
read-only;
- macaddr_rom_f100: macaddr@f100 {
- reg = <0xf100 0x6>;
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_rom_f100: macaddr@f100 {
+ reg = <0xf100 0x6>;
+ };
};
};
@@ -71,19 +74,22 @@
};
radio: partition@7f0000 {
- compatible = "nvmem-cells";
label = "radio";
reg = <0x7f0000 0x10000>;
- #address-cells = <1>;
- #size-cells = <1>;
read-only;
- eeprom_radio_0: eeprom@0 {
- reg = <0x0 0x400>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ eeprom_radio_0: eeprom@0 {
+ reg = <0x0 0x400>;
+ };
- eeprom_radio_8000: eeprom@8000 {
- reg = <0x8000 0x200>;
+ eeprom_radio_8000: eeprom@8000 {
+ reg = <0x8000 0x200>;
+ };
};
};
};
diff --git a/target/linux/ramips/dts/mt7628an_tplink_8m.dtsi b/target/linux/ramips/dts/mt7628an_tplink_8m.dtsi
index b3c62eb4883..90ccebe723e 100644
--- a/target/linux/ramips/dts/mt7628an_tplink_8m.dtsi
+++ b/target/linux/ramips/dts/mt7628an_tplink_8m.dtsi
@@ -45,23 +45,26 @@
};
factory: partition@7d0000 {
- compatible = "nvmem-cells";
label = "factory";
reg = <0x7d0000 0x30000>;
- #address-cells = <1>;
- #size-cells = <1>;
read-only;
- macaddr_factory_f100: macaddr@f100 {
- reg = <0xf100 0x6>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
- eeprom_factory_20000: eeprom@20000 {
- reg = <0x20000 0x400>;
- };
+ macaddr_factory_f100: macaddr@f100 {
+ reg = <0xf100 0x6>;
+ };
+
+ eeprom_factory_20000: eeprom@20000 {
+ reg = <0x20000 0x400>;
+ };
- eeprom_factory_28000: eeprom@28000 {
- reg = <0x28000 0x200>;
+ eeprom_factory_28000: eeprom@28000 {
+ reg = <0x28000 0x200>;
+ };
};
};
};
diff --git a/target/linux/ramips/dts/mt7628an_tplink_re200.dtsi b/target/linux/ramips/dts/mt7628an_tplink_re200.dtsi
index 24236e5c7fe..9d39906b41c 100644
--- a/target/linux/ramips/dts/mt7628an_tplink_re200.dtsi
+++ b/target/linux/ramips/dts/mt7628an_tplink_re200.dtsi
@@ -96,32 +96,38 @@
};
config: partition@7c0000 {
- compatible = "nvmem-cells";
label = "config";
reg = <0x7c0000 0x30000>;
- #address-cells = <1>;
- #size-cells = <1>;
read-only;
- macaddr_config_2008: macaddr@2008 {
- reg = <0x2008 0x6>;
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_config_2008: macaddr@2008 {
+ reg = <0x2008 0x6>;
+ };
};
};
radio: partition@7f0000 {
- compatible = "nvmem-cells";
label = "radio";
reg = <0x7f0000 0x10000>;
- #address-cells = <1>;
- #size-cells = <1>;
read-only;
- eeprom_radio_0: eeprom@0 {
- reg = <0x0 0x400>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ eeprom_radio_0: eeprom@0 {
+ reg = <0x0 0x400>;
+ };
- eeprom_radio_8000: eeprom@8000 {
- reg = <0x8000 0x200>;
+ eeprom_radio_8000: eeprom@8000 {
+ reg = <0x8000 0x200>;
+ };
};
};
};
diff --git a/target/linux/ramips/dts/mt7628an_tplink_re305-v1.dts b/target/linux/ramips/dts/mt7628an_tplink_re305-v1.dts
index 88d96bfa020..e1c68daccf7 100644
--- a/target/linux/ramips/dts/mt7628an_tplink_re305-v1.dts
+++ b/target/linux/ramips/dts/mt7628an_tplink_re305-v1.dts
@@ -33,15 +33,18 @@
};
config: partition@600000 {
- compatible = "nvmem-cells";
label = "config";
reg = <0x600000 0x50000>;
- #address-cells = <1>;
- #size-cells = <1>;
read-only;
- macaddr_config_10008: macaddr@10008 {
- reg = <0x10008 0x6>;
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_config_10008: macaddr@10008 {
+ reg = <0x10008 0x6>;
+ };
};
};
@@ -51,19 +54,22 @@
*/
radio: partition@7f0000 {
- compatible = "nvmem-cells";
label = "radio";
reg = <0x7f0000 0x10000>;
- #address-cells = <1>;
- #size-cells = <1>;
read-only;
- eeprom_radio_0: eeprom@0 {
- reg = <0x0 0x400>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ eeprom_radio_0: eeprom@0 {
+ reg = <0x0 0x400>;
+ };
- eeprom_radio_8000: eeprom@8000 {
- reg = <0x8000 0x200>;
+ eeprom_radio_8000: eeprom@8000 {
+ reg = <0x8000 0x200>;
+ };
};
};
};
diff --git a/target/linux/ramips/dts/mt7628an_tplink_re305-v3.dts b/target/linux/ramips/dts/mt7628an_tplink_re305-v3.dts
index c6ae357e19c..d0d0701231e 100644
--- a/target/linux/ramips/dts/mt7628an_tplink_re305-v3.dts
+++ b/target/linux/ramips/dts/mt7628an_tplink_re305-v3.dts
@@ -33,32 +33,38 @@
};
config: partition@7c0000 {
- compatible = "nvmem-cells";
label = "config";
reg = <0x7c0000 0x30000>;
- #address-cells = <1>;
- #size-cells = <1>;
read-only;
- macaddr_config_2008: macaddr@2008 {
- reg = <0x2008 0x6>;
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_config_2008: macaddr@2008 {
+ reg = <0x2008 0x6>;
+ };
};
};
radio: partition@7f0000 {
- compatible = "nvmem-cells";
label = "radio";
reg = <0x7f0000 0x10000>;
- #address-cells = <1>;
- #size-cells = <1>;
read-only;
- eeprom_radio_0: eeprom@0 {
- reg = <0x0 0x400>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ eeprom_radio_0: eeprom@0 {
+ reg = <0x0 0x400>;
+ };
- eeprom_radio_8000: eeprom@8000 {
- reg = <0x8000 0x200>;
+ eeprom_radio_8000: eeprom@8000 {
+ reg = <0x8000 0x200>;
+ };
};
};
};
diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-mr3020-v3.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-mr3020-v3.dts
index 3828d859caf..5f35cb4c7fa 100644
--- a/target/linux/ramips/dts/mt7628an_tplink_tl-mr3020-v3.dts
+++ b/target/linux/ramips/dts/mt7628an_tplink_tl-mr3020-v3.dts
@@ -121,19 +121,22 @@
};
factory: partition@7d0000 {
- compatible = "nvmem-cells";
label = "factory";
reg = <0x7d0000 0x30000>;
- #address-cells = <1>;
- #size-cells = <1>;
read-only;
- eeprom_factory_20000: eeprom@20000 {
- reg = <0x20000 0x400>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ eeprom_factory_20000: eeprom@20000 {
+ reg = <0x20000 0x400>;
+ };
- macaddr_factory_f100: macaddr@f100 {
- reg = <0xf100 0x6>;
+ macaddr_factory_f100: macaddr@f100 {
+ reg = <0xf100 0x6>;
+ };
};
};
};
diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-mr6400-v4.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-mr6400-v4.dts
index 1dfb89d5285..d0350f9924d 100644
--- a/target/linux/ramips/dts/mt7628an_tplink_tl-mr6400-v4.dts
+++ b/target/linux/ramips/dts/mt7628an_tplink_tl-mr6400-v4.dts
@@ -93,11 +93,13 @@
};
&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
- macaddr_factory_1f100: macaddr@1f100 {
- reg = <0x1f100 0x6>;
+ macaddr_factory_1f100: macaddr@1f100 {
+ reg = <0x1f100 0x6>;
+ };
};
};
diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-mr6400-v5.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-mr6400-v5.dts
index 408f12aeaed..f77f1acbf2a 100644
--- a/target/linux/ramips/dts/mt7628an_tplink_tl-mr6400-v5.dts
+++ b/target/linux/ramips/dts/mt7628an_tplink_tl-mr6400-v5.dts
@@ -93,11 +93,13 @@
};
&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
- macaddr_factory_1f100: macaddr@1f100 {
- reg = <0x1f100 0x6>;
+ macaddr_factory_1f100: macaddr@1f100 {
+ reg = <0x1f100 0x6>;
+ };
};
};
diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v5.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v5.dts
index e5bb9f233bd..3e639668bba 100644
--- a/target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v5.dts
+++ b/target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v5.dts
@@ -70,19 +70,22 @@
};
factory: partition@3f0000 {
- compatible = "nvmem-cells";
label = "factory";
reg = <0x3f0000 0x10000>;
- #address-cells = <1>;
- #size-cells = <1>;
read-only;
- eeprom_factory_0: eeprom@0 {
- reg = <0x0 0x400>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x400>;
+ };
- macaddr_factory_f100: macaddr@f100 {
- reg = <0xf100 0x6>;
+ macaddr_factory_f100: macaddr@f100 {
+ reg = <0xf100 0x6>;
+ };
};
};
};
diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-wr841n-v14.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-wr841n-v14.dts
index 67df5c0127c..5b3bcbe63ab 100644
--- a/target/linux/ramips/dts/mt7628an_tplink_tl-wr841n-v14.dts
+++ b/target/linux/ramips/dts/mt7628an_tplink_tl-wr841n-v14.dts
@@ -81,19 +81,22 @@
};
factory: partition@3f0000 {
- compatible = "nvmem-cells";
label = "factory";
reg = <0x3f0000 0x10000>;
- #address-cells = <1>;
- #size-cells = <1>;
read-only;
- eeprom_factory_0: eeprom@0 {
- reg = <0x0 0x400>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x400>;
+ };
- macaddr_factory_f100: macaddr@f100 {
- reg = <0xf100 0x6>;
+ macaddr_factory_f100: macaddr@f100 {
+ reg = <0xf100 0x6>;
+ };
};
};
};
diff --git a/target/linux/ramips/dts/mt7628an_unielec_u7628-01-16m.dts b/target/linux/ramips/dts/mt7628an_unielec_u7628-01-16m.dts
index 2bc6a5f8c39..77d8b9fce65 100644
--- a/target/linux/ramips/dts/mt7628an_unielec_u7628-01-16m.dts
+++ b/target/linux/ramips/dts/mt7628an_unielec_u7628-01-16m.dts
@@ -38,19 +38,22 @@
};
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>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x400>;
+ };
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
};
diff --git a/target/linux/ramips/dts/mt7628an_vocore_vocore2.dtsi b/target/linux/ramips/dts/mt7628an_vocore_vocore2.dtsi
index 27d6d67ed41..73ee4484b4e 100644
--- a/target/linux/ramips/dts/mt7628an_vocore_vocore2.dtsi
+++ b/target/linux/ramips/dts/mt7628an_vocore_vocore2.dtsi
@@ -40,19 +40,22 @@
};
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>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x400>;
+ };
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
};
diff --git a/target/linux/ramips/dts/mt7628an_wavlink_wl-wn531a3.dts b/target/linux/ramips/dts/mt7628an_wavlink_wl-wn531a3.dts
index 25a1c1ac8ff..1ae08ed8407 100644
--- a/target/linux/ramips/dts/mt7628an_wavlink_wl-wn531a3.dts
+++ b/target/linux/ramips/dts/mt7628an_wavlink_wl-wn531a3.dts
@@ -109,23 +109,26 @@
};
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>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
- eeprom_factory_8000: eeprom@8000 {
- reg = <0x8000 0x200>;
- };
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x400>;
+ };
+
+ eeprom_factory_8000: eeprom@8000 {
+ reg = <0x8000 0x200>;
+ };
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
};
diff --git a/target/linux/ramips/dts/mt7628an_wavlink_wl-wn570ha1.dts b/target/linux/ramips/dts/mt7628an_wavlink_wl-wn570ha1.dts
index ddf2723633c..76e89b77b6c 100644
--- a/target/linux/ramips/dts/mt7628an_wavlink_wl-wn570ha1.dts
+++ b/target/linux/ramips/dts/mt7628an_wavlink_wl-wn570ha1.dts
@@ -99,23 +99,26 @@
};
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>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
- eeprom_factory_8000: eeprom@8000 {
- reg = <0x8000 0x200>;
- };
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x400>;
+ };
+
+ eeprom_factory_8000: eeprom@8000 {
+ reg = <0x8000 0x200>;
+ };
- macaddr_factory_2e: macaddr@2e {
- reg = <0x2e 0x6>;
+ macaddr_factory_2e: macaddr@2e {
+ reg = <0x2e 0x6>;
+ };
};
};
diff --git a/target/linux/ramips/dts/mt7628an_wavlink_wl-wn575a3.dts b/target/linux/ramips/dts/mt7628an_wavlink_wl-wn575a3.dts
index 8bdf764fdd2..7b12dac350c 100644
--- a/target/linux/ramips/dts/mt7628an_wavlink_wl-wn575a3.dts
+++ b/target/linux/ramips/dts/mt7628an_wavlink_wl-wn575a3.dts
@@ -94,23 +94,26 @@
};
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>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
- eeprom_factory_8000: eeprom@8000 {
- reg = <0x8000 0x200>;
- };
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x400>;
+ };
+
+ eeprom_factory_8000: eeprom@8000 {
+ reg = <0x8000 0x200>;
+ };
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
};
diff --git a/target/linux/ramips/dts/mt7628an_wavlink_wl-wn576a2.dts b/target/linux/ramips/dts/mt7628an_wavlink_wl-wn576a2.dts
index 58d5bf9168e..fa06c44e3fc 100644
--- a/target/linux/ramips/dts/mt7628an_wavlink_wl-wn576a2.dts
+++ b/target/linux/ramips/dts/mt7628an_wavlink_wl-wn576a2.dts
@@ -133,23 +133,26 @@
};
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>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
- eeprom_factory_8000: eeprom@8000 {
- reg = <0x8000 0x200>;
- };
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x400>;
+ };
+
+ eeprom_factory_8000: eeprom@8000 {
+ reg = <0x8000 0x200>;
+ };
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
};
diff --git a/target/linux/ramips/dts/mt7628an_wavlink_wl-wn577a2.dts b/target/linux/ramips/dts/mt7628an_wavlink_wl-wn577a2.dts
index bc9bef13287..d2b45faa25d 100644
--- a/target/linux/ramips/dts/mt7628an_wavlink_wl-wn577a2.dts
+++ b/target/linux/ramips/dts/mt7628an_wavlink_wl-wn577a2.dts
@@ -98,23 +98,26 @@
};
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>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
- eeprom_factory_8000: eeprom@8000 {
- reg = <0x8000 0x200>;
- };
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x400>;
+ };
+
+ eeprom_factory_8000: eeprom@8000 {
+ reg = <0x8000 0x200>;
+ };
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
};
diff --git a/target/linux/ramips/dts/mt7628an_wavlink_wl-wn578a2.dts b/target/linux/ramips/dts/mt7628an_wavlink_wl-wn578a2.dts
index 7abab0044d1..a9b98683042 100644
--- a/target/linux/ramips/dts/mt7628an_wavlink_wl-wn578a2.dts
+++ b/target/linux/ramips/dts/mt7628an_wavlink_wl-wn578a2.dts
@@ -128,23 +128,26 @@
};
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>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
- eeprom_factory_8000: eeprom@8000 {
- reg = <0x8000 0x200>;
- };
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x400>;
+ };
+
+ eeprom_factory_8000: eeprom@8000 {
+ reg = <0x8000 0x200>;
+ };
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
};
diff --git a/target/linux/ramips/dts/mt7628an_widora_neo.dtsi b/target/linux/ramips/dts/mt7628an_widora_neo.dtsi
index 5d37b124486..47ed0431d2f 100644
--- a/target/linux/ramips/dts/mt7628an_widora_neo.dtsi
+++ b/target/linux/ramips/dts/mt7628an_widora_neo.dtsi
@@ -74,19 +74,22 @@
};
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>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x400>;
+ };
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
};
diff --git a/target/linux/ramips/dts/mt7628an_wiznet_wizfi630s.dts b/target/linux/ramips/dts/mt7628an_wiznet_wizfi630s.dts
index 04b6c56bef8..3bdb06cec92 100644
--- a/target/linux/ramips/dts/mt7628an_wiznet_wizfi630s.dts
+++ b/target/linux/ramips/dts/mt7628an_wiznet_wizfi630s.dts
@@ -117,19 +117,22 @@
};
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>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x400>;
+ };
- macaddr_factory_2e: macaddr@2e {
- reg = <0x2e 0x6>;
+ macaddr_factory_2e: macaddr@2e {
+ reg = <0x2e 0x6>;
+ };
};
};
diff --git a/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2.dtsi b/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2.dtsi
index c3fcaabe2fc..207fea28e97 100644
--- a/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2.dtsi
+++ b/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2.dtsi
@@ -48,19 +48,22 @@
};
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>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x400>;
+ };
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
};
diff --git a/target/linux/ramips/dts/mt7628an_xiaomi_mi-router-4.dtsi b/target/linux/ramips/dts/mt7628an_xiaomi_mi-router-4.dtsi
index 51737a965d1..ef070549d36 100644
--- a/target/linux/ramips/dts/mt7628an_xiaomi_mi-router-4.dtsi
+++ b/target/linux/ramips/dts/mt7628an_xiaomi_mi-router-4.dtsi
@@ -47,31 +47,34 @@
};
factory: partition@30000 {
- compatible = "nvmem-cells";
label = "factory";
reg = <0x30000 0x10000>;
- #address-cells = <1>;
- #size-cells = <1>;
read-only;
- eeprom_factory_0: eeprom@0 {
- reg = <0x0 0x400>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
- eeprom_factory_8000: eeprom@8000 {
- reg = <0x8000 0x200>;
- };
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x400>;
+ };
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
+ eeprom_factory_8000: eeprom@8000 {
+ reg = <0x8000 0x200>;
+ };
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
- };
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
- macaddr_factory_8004: macaddr@8004 {
- reg = <0x8004 0x6>;
+ macaddr_factory_8004: macaddr@8004 {
+ reg = <0x8004 0x6>;
+ };
};
};
diff --git a/target/linux/ramips/dts/mt7628an_xiaomi_miwifi-3c.dts b/target/linux/ramips/dts/mt7628an_xiaomi_miwifi-3c.dts
index bc7083fb1f7..2adb6ba8e36 100644
--- a/target/linux/ramips/dts/mt7628an_xiaomi_miwifi-3c.dts
+++ b/target/linux/ramips/dts/mt7628an_xiaomi_miwifi-3c.dts
@@ -114,19 +114,22 @@
};
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 0x400>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x400>;
+ };
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
};
diff --git a/target/linux/ramips/dts/mt7628an_xiaomi_miwifi-nano.dts b/target/linux/ramips/dts/mt7628an_xiaomi_miwifi-nano.dts
index c957388228e..66297232e3a 100644
--- a/target/linux/ramips/dts/mt7628an_xiaomi_miwifi-nano.dts
+++ b/target/linux/ramips/dts/mt7628an_xiaomi_miwifi-nano.dts
@@ -106,19 +106,22 @@
};
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>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x400>;
+ };
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
};
diff --git a/target/linux/ramips/dts/mt7628an_zbtlink_zbt-we1226.dts b/target/linux/ramips/dts/mt7628an_zbtlink_zbt-we1226.dts
index fd233cd30bb..64f3d6d83f3 100644
--- a/target/linux/ramips/dts/mt7628an_zbtlink_zbt-we1226.dts
+++ b/target/linux/ramips/dts/mt7628an_zbtlink_zbt-we1226.dts
@@ -86,19 +86,22 @@
};
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>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x400>;
+ };
- macaddr_factory_2e: macaddr@2e {
- reg = <0x2e 0x6>;
+ macaddr_factory_2e: macaddr@2e {
+ reg = <0x2e 0x6>;
+ };
};
};
diff --git a/target/linux/ramips/dts/mt7628an_zyxel_keenetic-extra-ii.dts b/target/linux/ramips/dts/mt7628an_zyxel_keenetic-extra-ii.dts
index d173f536972..95eb9cfd9e6 100644
--- a/target/linux/ramips/dts/mt7628an_zyxel_keenetic-extra-ii.dts
+++ b/target/linux/ramips/dts/mt7628an_zyxel_keenetic-extra-ii.dts
@@ -121,23 +121,26 @@
};
factory: partition@40000 {
- compatible = "nvmem-cells";
label = "rf-eeprom";
reg = <0x40000 0x10000>;
- #address-cells = <1>;
- #size-cells = <1>;
read-only;
- eeprom_factory_0: eeprom@0 {
- reg = <0x0 0x400>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
- eeprom_factory_8000: eeprom@8000 {
- reg = <0x8000 0x200>;
- };
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x400>;
+ };
+
+ eeprom_factory_8000: eeprom@8000 {
+ reg = <0x8000 0x200>;
+ };
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
};