openwrt/target/linux/ramips
Adrian Schmutzler 62d5ece70b ramips: remove bogus ralink,mtd-eeprom with offset 0x4
Several devices in mt76x8 subtarget use the following line to set
up wmac in their DTS(I) files:

ralink,mtd-eeprom = <&factory 0x4>

This is strange for several reasons:
- They should use mediatek,mtd-eeprom on this SOC
- The caldata is supposed to start at 0x0
- The parent DTSI mt7628an.dtsi specifies mediatek,mtd-eeprom anyway,
  starting from 0x0
- The offset coincides with the default location of the MAC address
  in caldata

Based on the comment in b28e94d4bf ("ramips: MiWiFi Nano fixes"),
it looks like the author for this device wanted to actually use
mtd-mac-address instead of ralink,mtd-eeprom. A check on the same
device revealed that actually the MAC address start at offset 4 there,
so the correct caldata offset is 0x0.

Based on these findings, and the fact that the expected location on
this SOC is 0x0, we remove the "ralink,mtd-eeprom = <&factory 0x4>"
statement from all devices in ramips (being only mt7628an anyway).

Thanks to Sungbo Eo for finding and researching this.

Reported-by: Sungbo Eo <mans0n@gorani.run>
Fixes: b28e94d4bf ("ramips: MiWiFi Nano fixes")
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
(cherry picked from commit 09d38a3bc3)
2019-12-28 02:34:41 +01:00
..
base-files ramips: fix USB LED for Belkin F9K1109v1 2019-12-20 15:57:02 +01:00
dts ramips: remove bogus ralink,mtd-eeprom with offset 0x4 2019-12-28 02:34:41 +01:00
files-4.14/drivers ramips: ethernet: remove unused SIOCETHTOOL ioctl handling 2019-06-05 10:12:30 +02:00
image ramips: allow JCG_MAXSIZE in kiB in Build/jcg-header 2019-12-13 19:54:14 +01:00
mt76x8 ramips: refresh all subtargets kernel configs 2019-11-24 17:49:35 +01:00
mt7620 ramips: refresh all subtargets kernel configs 2019-11-24 17:49:35 +01:00
mt7621 ramips: add support for ALFA Network Quad-E4G 2019-11-24 21:47:25 +01:00
patches-4.14 kernel: bump 4.14 to 4.14.158 2019-12-10 09:53:30 +01:00
rt288x ramips: refresh all subtargets kernel configs 2019-11-24 17:49:35 +01:00
rt305x ramips: refresh all subtargets kernel configs 2019-11-24 17:49:35 +01:00
rt3883 ramips: refresh all subtargets kernel configs 2019-11-24 17:49:35 +01:00
Makefile ramips: switch to linux 4.14 2018-04-06 18:07:43 +02:00
modules.mk kernel: Fix kmod-regmap split 2019-01-27 11:07:14 +01:00