From ad6b0770493e0fd332db9a7fe09f9214342c578b Mon Sep 17 00:00:00 2001 From: Adrian Schmutzler Date: Tue, 17 Aug 2021 14:07:57 +0200 Subject: [PATCH] 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 --- target/linux/ramips/dts/mt7628an.dtsi | 2 -- target/linux/ramips/dts/mt7628an_alfa-network_awusfree1.dts | 2 ++ target/linux/ramips/dts/mt7628an_asus_rt-n1x.dtsi | 2 ++ target/linux/ramips/dts/mt7628an_buffalo_wcr-1166ds.dts | 2 ++ target/linux/ramips/dts/mt7628an_cudy_wr1000.dts | 2 ++ target/linux/ramips/dts/mt7628an_elecom_wrc-1167fs.dts | 2 ++ target/linux/ramips/dts/mt7628an_glinet_gl-mt300n-v2.dts | 2 ++ .../linux/ramips/dts/mt7628an_glinet_vixmini_microuter.dtsi | 2 ++ .../linux/ramips/dts/mt7628an_hak5_wifi-pineapple-mk7.dts | 3 +++ target/linux/ramips/dts/mt7628an_hilink_hlk-7628n.dts | 2 ++ target/linux/ramips/dts/mt7628an_hilink_hlk-7688a.dts | 2 ++ target/linux/ramips/dts/mt7628an_hiwifi_hc5x61a.dtsi | 2 ++ target/linux/ramips/dts/mt7628an_iptime.dtsi | 2 ++ target/linux/ramips/dts/mt7628an_jotale_js76x8.dtsi | 2 ++ .../ramips/dts/mt7628an_mediatek_linkit-smart-7688.dts | 2 ++ .../ramips/dts/mt7628an_mediatek_mt7628an-eval-board.dts | 6 ++---- target/linux/ramips/dts/mt7628an_mercury_mac1200r-v2.dts | 2 ++ target/linux/ramips/dts/mt7628an_minew_g1-c.dts | 2 ++ target/linux/ramips/dts/mt7628an_netgear_r6xxx.dtsi | 2 ++ target/linux/ramips/dts/mt7628an_onion_omega2.dtsi | 2 ++ target/linux/ramips/dts/mt7628an_rakwireless_rak633.dts | 2 ++ target/linux/ramips/dts/mt7628an_ravpower_rp-wd009.dts | 2 ++ target/linux/ramips/dts/mt7628an_skylab_skw92a.dts | 2 ++ target/linux/ramips/dts/mt7628an_tama_w06.dts | 2 ++ target/linux/ramips/dts/mt7628an_totolink_lr1200.dts | 2 ++ target/linux/ramips/dts/mt7628an_tplink_8m-split-uboot.dtsi | 4 +++- target/linux/ramips/dts/mt7628an_tplink_8m.dtsi | 4 +++- target/linux/ramips/dts/mt7628an_tplink_re200.dtsi | 1 + target/linux/ramips/dts/mt7628an_tplink_tl-mr3020-v3.dts | 4 +++- target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v5.dts | 3 +++ target/linux/ramips/dts/mt7628an_tplink_tl-wr841n-v14.dts | 2 ++ target/linux/ramips/dts/mt7628an_unielec_u7628-01.dtsi | 2 ++ target/linux/ramips/dts/mt7628an_vocore_vocore2.dtsi | 2 ++ target/linux/ramips/dts/mt7628an_wavlink_wl-wn570ha1.dts | 2 ++ target/linux/ramips/dts/mt7628an_wavlink_wl-wn575a3.dts | 2 ++ target/linux/ramips/dts/mt7628an_wavlink_wl-wn577a2.dts | 2 ++ target/linux/ramips/dts/mt7628an_wavlink_wl-wn578a2.dts | 2 ++ target/linux/ramips/dts/mt7628an_widora_neo.dtsi | 2 ++ target/linux/ramips/dts/mt7628an_wiznet_wizfi630s.dts | 2 ++ target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2.dtsi | 2 ++ target/linux/ramips/dts/mt7628an_xiaomi_mi-router-4.dtsi | 2 ++ target/linux/ramips/dts/mt7628an_xiaomi_miwifi-nano.dts | 2 ++ target/linux/ramips/dts/mt7628an_zbtlink_zbt-we1226.dts | 2 ++ .../linux/ramips/dts/mt7628an_zyxel_keenetic-extra-ii.dts | 2 ++ 44 files changed, 90 insertions(+), 9 deletions(-) diff --git a/target/linux/ramips/dts/mt7628an.dtsi b/target/linux/ramips/dts/mt7628an.dtsi index 0dafdc790e1..7bc001207bc 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 2e01b974a8a..f5cff3bb609 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 3a2de12f6a8..8fd86dcb16f 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 cb4c61ecbd2..41bad4e3edb 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 5a2962a3155..82f0e7c690a 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 e4b5f31ada8..f716ad9f23b 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 e0445c61dd0..48f0fbd92bb 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 6e3f64632dd..089a3f3c427 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 945f6806189..0b21724b1a8 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 97acb3ff3f5..b7c3af796d5 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 8e07dff0f14..231aa15bfce 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 dcdf0cddc77..bfc510e06fe 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 bc8965ca277..ccc6debfc9b 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 8e73767dc28..03de21224b1 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 7beda75806e..57624c302eb 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 5418dac886e..4dede4287f5 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 f79d2d2641d..37975659082 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 e741d2182c0..eeee1c25ed2 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 f811466c16f..e6374e7bac8 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 d4de7fe6a47..555a2a12617 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 bf5fbcc64ef..61f78c162cb 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 4775f8f0762..5c3b14f87f2 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 4ceccde06d5..174272f95fd 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 def722832da..7a202eb6ef7 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 ef60f010023..9d1c930d762 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 bbd66e113cc..d7c65d4703e 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 8372f057cd6..ecb6ce1e4ea 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 d221a5c7c88..d6b06ba2fcb 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 496f8db2ca0..c90442da1f6 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 ad65152a95f..01a1a7f09e2 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 9f1d6670705..ff2c8d48d15 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 f0a6b1df5de..805d5debf58 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 bffcdf67c61..06a80fdde77 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 eb74c2ae511..dcba4b64e28 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 b12e1f71066..83e269b3660 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 5e19e331c88..b4e6905624a 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 96633c062ed..1d5c99da318 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 4c60ad95aaa..185f554df74 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 a25f4d8d285..3f5db4441f1 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 7158101ab70..9024fb711bd 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 d3f5e33be73..0a48c060192 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 37f409eee9f..f9adca9d714 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 fef199ac34a..aca4555a40b 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 f3650dc6ae7..50094a82dae 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 { -- 2.30.2