diff options
author | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2021-08-17 14:07:57 +0200 |
---|---|---|
committer | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2021-08-17 18:41:17 +0200 |
commit | ad6b0770493e0fd332db9a7fe09f9214342c578b (patch) | |
tree | ffabf9f0c3582c531343160faf9eb2a0667d1425 /target/linux/ramips/dts/mt7628an_buffalo_wcr-1166ds.dts | |
parent | 9704d25da1ed859fa8464689eab2a7ffb284bc8c (diff) | |
download | upstream-ad6b0770493e0fd332db9a7fe09f9214342c578b.tar.gz upstream-ad6b0770493e0fd332db9a7fe09f9214342c578b.tar.bz2 upstream-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_buffalo_wcr-1166ds.dts')
-rw-r--r-- | target/linux/ramips/dts/mt7628an_buffalo_wcr-1166ds.dts | 2 |
1 files changed, 2 insertions, 0 deletions
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>; }; |