summaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/dts/mt7628an_wavlink_wl-wn570ha1.dts
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2021-08-17 14:07:57 +0200
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2021-08-17 18:41:17 +0200
commitad6b0770493e0fd332db9a7fe09f9214342c578b (patch)
treeffabf9f0c3582c531343160faf9eb2a0667d1425 /target/linux/ramips/dts/mt7628an_wavlink_wl-wn570ha1.dts
parent9704d25da1ed859fa8464689eab2a7ffb284bc8c (diff)
downloadopenwrt-ad6b0770493e0fd332db9a7fe09f9214342c578b.tar.gz
openwrt-ad6b0770493e0fd332db9a7fe09f9214342c578b.tar.bz2
openwrt-ad6b0770493e0fd332db9a7fe09f9214342c578b.zip
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 <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/ramips/dts/mt7628an_wavlink_wl-wn570ha1.dts')
-rw-r--r--target/linux/ramips/dts/mt7628an_wavlink_wl-wn570ha1.dts2
1 files changed, 2 insertions, 0 deletions
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>;
};
&ethernet {