aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/dts/mt7620a_lenovo_newifi-y1s.dts
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2019-08-16 15:39:43 +0200
committerChuanhong Guo <gch981213@gmail.com>2019-09-07 21:41:44 +0800
commit869a0183b953db6dbbced296294f667ce2b2353c (patch)
tree33ea7e197d55404ccab9cb7382eefc67407ae230 /target/linux/ramips/dts/mt7620a_lenovo_newifi-y1s.dts
parentaaf90d88087d7d23b1b829bef5012cc0a0b5ed4c (diff)
downloadupstream-869a0183b953db6dbbced296294f667ce2b2353c.tar.gz
upstream-869a0183b953db6dbbced296294f667ce2b2353c.tar.bz2
upstream-869a0183b953db6dbbced296294f667ce2b2353c.zip
ramips: fix MAC address setup for Newifi Y1 and Y1S
So far, MAC address setup for those devices has been using local addresses although additional MAC addresses are available on flash. On device, we found the following situation: position Y1 Y1S 0x4 *:d4 *:e4 0x8004 *:d6 *:e8 0x28 *:d4 *:e4 0x2e *:d7 *:eb Since 0x4 and 0x28 yield the same address, the former was set for &ethernet in DTS. However, the typical location on this architecture is 0x28, so this patch changes that. For further setup in 02_network, the local bit for lan_mac is removed, so the address from &ethernet is used at all. For wan_mac, instead of calculating an address with local bit set, this patch exploits the previously unused address in 0x2e. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/ramips/dts/mt7620a_lenovo_newifi-y1s.dts')
-rw-r--r--target/linux/ramips/dts/mt7620a_lenovo_newifi-y1s.dts2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/ramips/dts/mt7620a_lenovo_newifi-y1s.dts b/target/linux/ramips/dts/mt7620a_lenovo_newifi-y1s.dts
index 007e0e69e8..bf51329114 100644
--- a/target/linux/ramips/dts/mt7620a_lenovo_newifi-y1s.dts
+++ b/target/linux/ramips/dts/mt7620a_lenovo_newifi-y1s.dts
@@ -78,7 +78,7 @@
&ethernet {
status = "okay";
- mtd-mac-address = <&factory 0x4>;
+ mtd-mac-address = <&factory 0x28>;
pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
mediatek,portmap = "wllll";