From: Adrian Schmutzler Date: Tue, 17 Aug 2021 12:07:57 +0000 (+0200) Subject: ramips: mt7628: move mtd-eeprom out of root DTSI X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ad6b0770493e0fd332db9a7fe09f9214342c578b;p=openwrt%2Fstaging%2Flynxis.git ramips: mt7628: move mtd-eeprom out of root DTSI The mt76x8 subtarget is the only one in ramips that stores the mediatek,mtd-eeprom property directly in the "root" mt7628an.dtsi. This is not optimal for a few different reasons: * If you don't really know it or are used to other (sub)targets, the property will be set somewhat magically. * The property is set based on &factory partition before (if at all) this partition is defined. * There are several devices that have different offset or even different partitions to read from, which will then be overwritten in the DTS files. Thus, definitions are scattered between root DTSI and individual files. Based on these circumstances, the "root" definition is removed and the property is added to the device-based DTS(I) files where needed and applicable. This should be easier to grasp for unexperienced developers and will move the property closer to the partition definitions. Signed-off-by: Adrian Schmutzler --- diff --git a/target/linux/ramips/dts/mt7628an.dtsi b/target/linux/ramips/dts/mt7628an.dtsi index 0dafdc790e..7bc001207b 100644 --- a/target/linux/ramips/dts/mt7628an.dtsi +++ b/target/linux/ramips/dts/mt7628an.dtsi @@ -492,7 +492,5 @@ interrupts = <6>; status = "disabled"; - - mediatek,mtd-eeprom = <&factory 0x0000>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_alfa-network_awusfree1.dts b/target/linux/ramips/dts/mt7628an_alfa-network_awusfree1.dts index 2e01b974a8..f5cff3bb60 100644 --- a/target/linux/ramips/dts/mt7628an_alfa-network_awusfree1.dts +++ b/target/linux/ramips/dts/mt7628an_alfa-network_awusfree1.dts @@ -130,6 +130,8 @@ &wmac { status = "okay"; + + mediatek,mtd-eeprom = <&factory 0x0>; }; &factory { diff --git a/target/linux/ramips/dts/mt7628an_asus_rt-n1x.dtsi b/target/linux/ramips/dts/mt7628an_asus_rt-n1x.dtsi index 3a2de12f6a..8fd86dcb16 100644 --- a/target/linux/ramips/dts/mt7628an_asus_rt-n1x.dtsi +++ b/target/linux/ramips/dts/mt7628an_asus_rt-n1x.dtsi @@ -100,6 +100,8 @@ &wmac { status = "okay"; + + mediatek,mtd-eeprom = <&factory 0x0>; }; &state_default { diff --git a/target/linux/ramips/dts/mt7628an_buffalo_wcr-1166ds.dts b/target/linux/ramips/dts/mt7628an_buffalo_wcr-1166ds.dts index cb4c61ecbd..41bad4e3ed 100644 --- a/target/linux/ramips/dts/mt7628an_buffalo_wcr-1166ds.dts +++ b/target/linux/ramips/dts/mt7628an_buffalo_wcr-1166ds.dts @@ -173,4 +173,6 @@ &wmac { status = "okay"; + + mediatek,mtd-eeprom = <&factory 0x0>; }; diff --git a/target/linux/ramips/dts/mt7628an_cudy_wr1000.dts b/target/linux/ramips/dts/mt7628an_cudy_wr1000.dts index 5a2962a315..82f0e7c690 100644 --- a/target/linux/ramips/dts/mt7628an_cudy_wr1000.dts +++ b/target/linux/ramips/dts/mt7628an_cudy_wr1000.dts @@ -131,6 +131,8 @@ &wmac { status = "okay"; + + mediatek,mtd-eeprom = <&factory 0x0>; }; ðernet { diff --git a/target/linux/ramips/dts/mt7628an_elecom_wrc-1167fs.dts b/target/linux/ramips/dts/mt7628an_elecom_wrc-1167fs.dts index e4b5f31ada..f716ad9f23 100644 --- a/target/linux/ramips/dts/mt7628an_elecom_wrc-1167fs.dts +++ b/target/linux/ramips/dts/mt7628an_elecom_wrc-1167fs.dts @@ -162,6 +162,8 @@ &wmac { status = "okay"; + + mediatek,mtd-eeprom = <&factory 0x0>; }; &factory { 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 e0445c61dd..48f0fbd92b 100644 --- a/target/linux/ramips/dts/mt7628an_glinet_gl-mt300n-v2.dts +++ b/target/linux/ramips/dts/mt7628an_glinet_gl-mt300n-v2.dts @@ -87,6 +87,8 @@ &wmac { status = "okay"; + + mediatek,mtd-eeprom = <&factory 0x0>; }; &spi0 { diff --git a/target/linux/ramips/dts/mt7628an_glinet_vixmini_microuter.dtsi b/target/linux/ramips/dts/mt7628an_glinet_vixmini_microuter.dtsi index 6e3f64632d..089a3f3c42 100644 --- a/target/linux/ramips/dts/mt7628an_glinet_vixmini_microuter.dtsi +++ b/target/linux/ramips/dts/mt7628an_glinet_vixmini_microuter.dtsi @@ -59,6 +59,8 @@ &wmac { status = "okay"; + + mediatek,mtd-eeprom = <&factory 0x0>; }; &spi0 { 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 945f680618..0b21724b1a 100644 --- a/target/linux/ramips/dts/mt7628an_hak5_wifi-pineapple-mk7.dts +++ b/target/linux/ramips/dts/mt7628an_hak5_wifi-pineapple-mk7.dts @@ -1,6 +1,7 @@ // SPDX-License-Identifier: GPL-2.0-or-later OR MIT #include "mt7628an.dtsi" + #include #include @@ -122,6 +123,8 @@ &wmac { status = "okay"; + + mediatek,mtd-eeprom = <&factory 0x0>; }; &factory { diff --git a/target/linux/ramips/dts/mt7628an_hilink_hlk-7628n.dts b/target/linux/ramips/dts/mt7628an_hilink_hlk-7628n.dts index 97acb3ff3f..b7c3af796d 100644 --- a/target/linux/ramips/dts/mt7628an_hilink_hlk-7628n.dts +++ b/target/linux/ramips/dts/mt7628an_hilink_hlk-7628n.dts @@ -88,6 +88,8 @@ &wmac { status = "okay"; + + mediatek,mtd-eeprom = <&factory 0x0>; }; &factory { diff --git a/target/linux/ramips/dts/mt7628an_hilink_hlk-7688a.dts b/target/linux/ramips/dts/mt7628an_hilink_hlk-7688a.dts index 8e07dff0f1..231aa15bfc 100644 --- a/target/linux/ramips/dts/mt7628an_hilink_hlk-7688a.dts +++ b/target/linux/ramips/dts/mt7628an_hilink_hlk-7688a.dts @@ -113,6 +113,8 @@ &wmac { status = "okay"; + + mediatek,mtd-eeprom = <&factory 0x0>; }; &factory { diff --git a/target/linux/ramips/dts/mt7628an_hiwifi_hc5x61a.dtsi b/target/linux/ramips/dts/mt7628an_hiwifi_hc5x61a.dtsi index dcdf0cddc7..bfc510e06f 100644 --- a/target/linux/ramips/dts/mt7628an_hiwifi_hc5x61a.dtsi +++ b/target/linux/ramips/dts/mt7628an_hiwifi_hc5x61a.dtsi @@ -96,6 +96,8 @@ &wmac { status = "okay"; + + mediatek,mtd-eeprom = <&factory 0x0>; }; &factory { diff --git a/target/linux/ramips/dts/mt7628an_iptime.dtsi b/target/linux/ramips/dts/mt7628an_iptime.dtsi index bc8965ca27..ccc6debfc9 100644 --- a/target/linux/ramips/dts/mt7628an_iptime.dtsi +++ b/target/linux/ramips/dts/mt7628an_iptime.dtsi @@ -104,6 +104,8 @@ &wmac { status = "okay"; + + mediatek,mtd-eeprom = <&factory 0x0>; }; &uboot { diff --git a/target/linux/ramips/dts/mt7628an_jotale_js76x8.dtsi b/target/linux/ramips/dts/mt7628an_jotale_js76x8.dtsi index 8e73767dc2..03de21224b 100644 --- a/target/linux/ramips/dts/mt7628an_jotale_js76x8.dtsi +++ b/target/linux/ramips/dts/mt7628an_jotale_js76x8.dtsi @@ -123,6 +123,8 @@ &wmac { status = "okay"; + + mediatek,mtd-eeprom = <&factory 0x0>; }; &factory { 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 7beda75806..57624c302e 100644 --- a/target/linux/ramips/dts/mt7628an_mediatek_linkit-smart-7688.dts +++ b/target/linux/ramips/dts/mt7628an_mediatek_linkit-smart-7688.dts @@ -158,6 +158,8 @@ &wmac { status = "okay"; + + mediatek,mtd-eeprom = <&factory 0x0>; }; &factory { 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 5418dac886..4dede4287f 100644 --- a/target/linux/ramips/dts/mt7628an_mediatek_mt7628an-eval-board.dts +++ b/target/linux/ramips/dts/mt7628an_mediatek_mt7628an-eval-board.dts @@ -12,10 +12,6 @@ }; }; -&wmac { - status = "okay"; -}; - &spi0 { status = "okay"; @@ -58,4 +54,6 @@ &wmac { status = "okay"; + + mediatek,mtd-eeprom = <&factory 0x0>; }; diff --git a/target/linux/ramips/dts/mt7628an_mercury_mac1200r-v2.dts b/target/linux/ramips/dts/mt7628an_mercury_mac1200r-v2.dts index f79d2d2641..3797565908 100644 --- a/target/linux/ramips/dts/mt7628an_mercury_mac1200r-v2.dts +++ b/target/linux/ramips/dts/mt7628an_mercury_mac1200r-v2.dts @@ -85,6 +85,8 @@ &wmac { status = "okay"; + + mediatek,mtd-eeprom = <&factory 0x0>; ralink,mtd-eeprom = <&art 0x0>; }; diff --git a/target/linux/ramips/dts/mt7628an_minew_g1-c.dts b/target/linux/ramips/dts/mt7628an_minew_g1-c.dts index e741d2182c..eeee1c25ed 100644 --- a/target/linux/ramips/dts/mt7628an_minew_g1-c.dts +++ b/target/linux/ramips/dts/mt7628an_minew_g1-c.dts @@ -135,6 +135,8 @@ &wmac { status = "okay"; + + mediatek,mtd-eeprom = <&factory 0x0>; }; &sdhci { diff --git a/target/linux/ramips/dts/mt7628an_netgear_r6xxx.dtsi b/target/linux/ramips/dts/mt7628an_netgear_r6xxx.dtsi index f811466c16..e6374e7bac 100644 --- a/target/linux/ramips/dts/mt7628an_netgear_r6xxx.dtsi +++ b/target/linux/ramips/dts/mt7628an_netgear_r6xxx.dtsi @@ -96,6 +96,8 @@ &wmac { status = "okay"; + + mediatek,mtd-eeprom = <&factory 0x0>; }; ðernet { diff --git a/target/linux/ramips/dts/mt7628an_onion_omega2.dtsi b/target/linux/ramips/dts/mt7628an_onion_omega2.dtsi index d4de7fe6a4..555a2a1261 100644 --- a/target/linux/ramips/dts/mt7628an_onion_omega2.dtsi +++ b/target/linux/ramips/dts/mt7628an_onion_omega2.dtsi @@ -163,6 +163,8 @@ &wmac { status = "okay"; + + mediatek,mtd-eeprom = <&factory 0x0>; }; &factory { diff --git a/target/linux/ramips/dts/mt7628an_rakwireless_rak633.dts b/target/linux/ramips/dts/mt7628an_rakwireless_rak633.dts index bf5fbcc64e..61f78c162c 100644 --- a/target/linux/ramips/dts/mt7628an_rakwireless_rak633.dts +++ b/target/linux/ramips/dts/mt7628an_rakwireless_rak633.dts @@ -93,6 +93,8 @@ &wmac { status = "okay"; + + mediatek,mtd-eeprom = <&factory 0x0>; }; &factory { diff --git a/target/linux/ramips/dts/mt7628an_ravpower_rp-wd009.dts b/target/linux/ramips/dts/mt7628an_ravpower_rp-wd009.dts index 4775f8f076..5c3b14f87f 100644 --- a/target/linux/ramips/dts/mt7628an_ravpower_rp-wd009.dts +++ b/target/linux/ramips/dts/mt7628an_ravpower_rp-wd009.dts @@ -182,6 +182,8 @@ &wmac { status = "okay"; + + mediatek,mtd-eeprom = <&factory 0x0>; }; ðernet { diff --git a/target/linux/ramips/dts/mt7628an_skylab_skw92a.dts b/target/linux/ramips/dts/mt7628an_skylab_skw92a.dts index 4ceccde06d..174272f95f 100644 --- a/target/linux/ramips/dts/mt7628an_skylab_skw92a.dts +++ b/target/linux/ramips/dts/mt7628an_skylab_skw92a.dts @@ -53,6 +53,8 @@ &wmac { status = "okay"; + + mediatek,mtd-eeprom = <&factory 0x0>; }; &spi0 { diff --git a/target/linux/ramips/dts/mt7628an_tama_w06.dts b/target/linux/ramips/dts/mt7628an_tama_w06.dts index def722832d..7a202eb6ef 100644 --- a/target/linux/ramips/dts/mt7628an_tama_w06.dts +++ b/target/linux/ramips/dts/mt7628an_tama_w06.dts @@ -97,6 +97,8 @@ &wmac { status = "okay"; + + mediatek,mtd-eeprom = <&factory 0x0>; }; &factory { diff --git a/target/linux/ramips/dts/mt7628an_totolink_lr1200.dts b/target/linux/ramips/dts/mt7628an_totolink_lr1200.dts index ef60f01002..9d1c930d76 100644 --- a/target/linux/ramips/dts/mt7628an_totolink_lr1200.dts +++ b/target/linux/ramips/dts/mt7628an_totolink_lr1200.dts @@ -107,6 +107,8 @@ &wmac { status = "okay"; + + mediatek,mtd-eeprom = <&factory 0x0>; }; ðernet { 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 bbd66e113c..d7c65d4703 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_8m-split-uboot.dtsi +++ b/target/linux/ramips/dts/mt7628an_tplink_8m-split-uboot.dtsi @@ -74,9 +74,11 @@ &wmac { status = "okay"; + + mediatek,mtd-eeprom = <&radio 0x0>; + nvmem-cells = <&macaddr_rom_f100>; nvmem-cell-names = "mac-address"; - mediatek,mtd-eeprom = <&radio 0x0>; }; ðernet { diff --git a/target/linux/ramips/dts/mt7628an_tplink_8m.dtsi b/target/linux/ramips/dts/mt7628an_tplink_8m.dtsi index 8372f057cd..ecb6ce1e4e 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_8m.dtsi +++ b/target/linux/ramips/dts/mt7628an_tplink_8m.dtsi @@ -55,9 +55,11 @@ &wmac { status = "okay"; + + mediatek,mtd-eeprom = <&factory 0x20000>; + nvmem-cells = <&macaddr_factory_f100>; nvmem-cell-names = "mac-address"; - mediatek,mtd-eeprom = <&factory 0x20000>; }; ðernet { diff --git a/target/linux/ramips/dts/mt7628an_tplink_re200.dtsi b/target/linux/ramips/dts/mt7628an_tplink_re200.dtsi index d221a5c7c8..d6b06ba2fc 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_re200.dtsi +++ b/target/linux/ramips/dts/mt7628an_tplink_re200.dtsi @@ -138,6 +138,7 @@ status = "okay"; mediatek,mtd-eeprom = <&radio 0x0>; + nvmem-cells = <&macaddr_config_2008>; nvmem-cell-names = "mac-address"; mac-address-increment = <1>; 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 496f8db2ca..c90442da1f 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_tl-mr3020-v3.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_tl-mr3020-v3.dts @@ -123,9 +123,11 @@ &wmac { status = "okay"; + + mediatek,mtd-eeprom = <&factory 0x20000>; + nvmem-cells = <&macaddr_factory_f100>; nvmem-cell-names = "mac-address"; - mediatek,mtd-eeprom = <&factory 0x20000>; }; ðernet { 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 ad65152a95..01a1a7f09e 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v5.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v5.dts @@ -88,6 +88,9 @@ &wmac { status = "okay"; + + mediatek,mtd-eeprom = <&factory 0x0>; + nvmem-cells = <&macaddr_factory_f100>; nvmem-cell-names = "mac-address"; }; 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 9f1d667070..ff2c8d48d1 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_tl-wr841n-v14.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_tl-wr841n-v14.dts @@ -100,6 +100,8 @@ &wmac { status = "okay"; + mediatek,mtd-eeprom = <&factory 0x0>; + nvmem-cells = <&macaddr_factory_f100>; nvmem-cell-names = "mac-address"; }; diff --git a/target/linux/ramips/dts/mt7628an_unielec_u7628-01.dtsi b/target/linux/ramips/dts/mt7628an_unielec_u7628-01.dtsi index f0a6b1df5d..805d5debf5 100644 --- a/target/linux/ramips/dts/mt7628an_unielec_u7628-01.dtsi +++ b/target/linux/ramips/dts/mt7628an_unielec_u7628-01.dtsi @@ -91,6 +91,8 @@ &wmac { status = "okay"; + + mediatek,mtd-eeprom = <&factory 0x0>; }; &state_default { diff --git a/target/linux/ramips/dts/mt7628an_vocore_vocore2.dtsi b/target/linux/ramips/dts/mt7628an_vocore_vocore2.dtsi index bffcdf67c6..06a80fdde7 100644 --- a/target/linux/ramips/dts/mt7628an_vocore_vocore2.dtsi +++ b/target/linux/ramips/dts/mt7628an_vocore_vocore2.dtsi @@ -23,6 +23,8 @@ &wmac { status = "okay"; + + mediatek,mtd-eeprom = <&factory 0x0>; }; ðernet { diff --git a/target/linux/ramips/dts/mt7628an_wavlink_wl-wn570ha1.dts b/target/linux/ramips/dts/mt7628an_wavlink_wl-wn570ha1.dts index eb74c2ae51..dcba4b64e2 100644 --- a/target/linux/ramips/dts/mt7628an_wavlink_wl-wn570ha1.dts +++ b/target/linux/ramips/dts/mt7628an_wavlink_wl-wn570ha1.dts @@ -114,6 +114,8 @@ &wmac { status = "okay"; + + mediatek,mtd-eeprom = <&factory 0x0>; }; ðernet { diff --git a/target/linux/ramips/dts/mt7628an_wavlink_wl-wn575a3.dts b/target/linux/ramips/dts/mt7628an_wavlink_wl-wn575a3.dts index b12e1f7106..83e269b366 100644 --- a/target/linux/ramips/dts/mt7628an_wavlink_wl-wn575a3.dts +++ b/target/linux/ramips/dts/mt7628an_wavlink_wl-wn575a3.dts @@ -109,6 +109,8 @@ &wmac { status = "okay"; + + mediatek,mtd-eeprom = <&factory 0x0>; }; ðernet { diff --git a/target/linux/ramips/dts/mt7628an_wavlink_wl-wn577a2.dts b/target/linux/ramips/dts/mt7628an_wavlink_wl-wn577a2.dts index 5e19e331c8..b4e6905624 100644 --- a/target/linux/ramips/dts/mt7628an_wavlink_wl-wn577a2.dts +++ b/target/linux/ramips/dts/mt7628an_wavlink_wl-wn577a2.dts @@ -113,6 +113,8 @@ &wmac { status = "okay"; + + mediatek,mtd-eeprom = <&factory 0x0>; }; ðernet { diff --git a/target/linux/ramips/dts/mt7628an_wavlink_wl-wn578a2.dts b/target/linux/ramips/dts/mt7628an_wavlink_wl-wn578a2.dts index 96633c062e..1d5c99da31 100644 --- a/target/linux/ramips/dts/mt7628an_wavlink_wl-wn578a2.dts +++ b/target/linux/ramips/dts/mt7628an_wavlink_wl-wn578a2.dts @@ -143,6 +143,8 @@ &wmac { status = "okay"; + + mediatek,mtd-eeprom = <&factory 0x0>; }; ðernet { diff --git a/target/linux/ramips/dts/mt7628an_widora_neo.dtsi b/target/linux/ramips/dts/mt7628an_widora_neo.dtsi index 4c60ad95aa..185f554df7 100644 --- a/target/linux/ramips/dts/mt7628an_widora_neo.dtsi +++ b/target/linux/ramips/dts/mt7628an_widora_neo.dtsi @@ -115,4 +115,6 @@ &wmac { status = "okay"; + + mediatek,mtd-eeprom = <&factory 0x0>; }; diff --git a/target/linux/ramips/dts/mt7628an_wiznet_wizfi630s.dts b/target/linux/ramips/dts/mt7628an_wiznet_wizfi630s.dts index a25f4d8d28..3f5db4441f 100644 --- a/target/linux/ramips/dts/mt7628an_wiznet_wizfi630s.dts +++ b/target/linux/ramips/dts/mt7628an_wiznet_wizfi630s.dts @@ -159,6 +159,8 @@ &wmac { status = "okay"; + + mediatek,mtd-eeprom = <&factory 0x0>; }; &factory { diff --git a/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2.dtsi b/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2.dtsi index 7158101ab7..9024fb711b 100644 --- a/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2.dtsi +++ b/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2.dtsi @@ -88,6 +88,8 @@ &wmac { status = "okay"; + + mediatek,mtd-eeprom = <&factory 0x0>; }; &factory { 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 d3f5e33be7..0a48c06019 100644 --- a/target/linux/ramips/dts/mt7628an_xiaomi_mi-router-4.dtsi +++ b/target/linux/ramips/dts/mt7628an_xiaomi_mi-router-4.dtsi @@ -100,4 +100,6 @@ &wmac { status = "okay"; + + mediatek,mtd-eeprom = <&factory 0x0>; }; diff --git a/target/linux/ramips/dts/mt7628an_xiaomi_miwifi-nano.dts b/target/linux/ramips/dts/mt7628an_xiaomi_miwifi-nano.dts index 37f409eee9..f9adca9d71 100644 --- a/target/linux/ramips/dts/mt7628an_xiaomi_miwifi-nano.dts +++ b/target/linux/ramips/dts/mt7628an_xiaomi_miwifi-nano.dts @@ -71,6 +71,8 @@ &wmac { status = "okay"; + + mediatek,mtd-eeprom = <&factory 0x0>; }; ðernet { diff --git a/target/linux/ramips/dts/mt7628an_zbtlink_zbt-we1226.dts b/target/linux/ramips/dts/mt7628an_zbtlink_zbt-we1226.dts index fef199ac34..aca4555a40 100644 --- a/target/linux/ramips/dts/mt7628an_zbtlink_zbt-we1226.dts +++ b/target/linux/ramips/dts/mt7628an_zbtlink_zbt-we1226.dts @@ -102,6 +102,8 @@ &wmac { status = "okay"; + + mediatek,mtd-eeprom = <&factory 0x0>; }; ðernet { 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 f3650dc6ae..50094a82da 100644 --- a/target/linux/ramips/dts/mt7628an_zyxel_keenetic-extra-ii.dts +++ b/target/linux/ramips/dts/mt7628an_zyxel_keenetic-extra-ii.dts @@ -178,6 +178,8 @@ &wmac { status = "okay"; + + mediatek,mtd-eeprom = <&factory 0x0>; }; &pcie {