aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/dts
diff options
context:
space:
mode:
authorMathias Kresin <dev@kresin.me>2017-03-26 10:53:35 +0200
committerMathias Kresin <dev@kresin.me>2017-05-05 19:59:18 +0200
commitd49920e45044dfb635a93f317e5b965b5c8afdad (patch)
tree2805b0028169e03ef244f729b57af2a886e49345 /target/linux/lantiq/dts
parent79cd14152c4478620eb0280fec9816f39e8a0dc5 (diff)
downloadupstream-d49920e45044dfb635a93f317e5b965b5c8afdad.tar.gz
upstream-d49920e45044dfb635a93f317e5b965b5c8afdad.tar.bz2
upstream-d49920e45044dfb635a93f317e5b965b5c8afdad.zip
lantiq: fix avm fritz box mac addresses
It has been shown that the Fritz boxes have the correct mac address set in the wireless calibration data/eeeprom. Use this mac address as base for the ethernet and xdsl interface increment/decrement the address to match the values stored in the tffs. Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/lantiq/dts')
-rw-r--r--target/linux/lantiq/dts/FRITZ3370.dts5
-rw-r--r--target/linux/lantiq/dts/FRITZ7320.dts2
-rw-r--r--target/linux/lantiq/dts/FRITZ7360SL.dts3
3 files changed, 7 insertions, 3 deletions
diff --git a/target/linux/lantiq/dts/FRITZ3370.dts b/target/linux/lantiq/dts/FRITZ3370.dts
index 1e2e90ca1b..3f57f45ee8 100644
--- a/target/linux/lantiq/dts/FRITZ3370.dts
+++ b/target/linux/lantiq/dts/FRITZ3370.dts
@@ -189,7 +189,7 @@
reg = <4 0>;
spi-max-frequency = <1000000>;
- partition@0 {
+ urlader: partition@0 {
reg = <0x0 0x20000>;
label = "urlader";
read-only;
@@ -215,7 +215,8 @@
#address-cells = <1>;
#size-cells = <0>;
reg = <0>;
- mac-address = [ 00 11 22 33 44 55 ];
+ mtd-mac-address = <&urlader 0x987>;
+ mtd-mac-address-increment = <(-2)>;
lantiq,switch;
ethernet@0 {
diff --git a/target/linux/lantiq/dts/FRITZ7320.dts b/target/linux/lantiq/dts/FRITZ7320.dts
index 1d3e02f9aa..491baee7ea 100644
--- a/target/linux/lantiq/dts/FRITZ7320.dts
+++ b/target/linux/lantiq/dts/FRITZ7320.dts
@@ -90,6 +90,8 @@
etop@E180000 {
phy-mode = "mii";
+ mtd-mac-address = <&ath9k_cal 0xa91>;
+ mtd-mac-address-increment = <(-2)>;
};
ifxhcd@E101000 {
diff --git a/target/linux/lantiq/dts/FRITZ7360SL.dts b/target/linux/lantiq/dts/FRITZ7360SL.dts
index b4b12246ce..31a9527b79 100644
--- a/target/linux/lantiq/dts/FRITZ7360SL.dts
+++ b/target/linux/lantiq/dts/FRITZ7360SL.dts
@@ -155,7 +155,8 @@
#address-cells = <1>;
#size-cells = <0>;
reg = <0>;
- mac-address = [ 00 11 22 33 44 55 ];
+ mtd-mac-address = <&urlader 0xa91>;
+ mtd-mac-address-increment = <(-2)>;
lantiq,switch;
ethernet@0 {