aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/dts/mt7621_iptime_a6ns-m.dts
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/ramips/dts/mt7621_iptime_a6ns-m.dts')
-rw-r--r--target/linux/ramips/dts/mt7621_iptime_a6ns-m.dts20
1 files changed, 18 insertions, 2 deletions
diff --git a/target/linux/ramips/dts/mt7621_iptime_a6ns-m.dts b/target/linux/ramips/dts/mt7621_iptime_a6ns-m.dts
index 4ebd980521..b3efe557e2 100644
--- a/target/linux/ramips/dts/mt7621_iptime_a6ns-m.dts
+++ b/target/linux/ramips/dts/mt7621_iptime_a6ns-m.dts
@@ -111,7 +111,8 @@
};
&gmac0 {
- mtd-mac-address = <&uboot 0x1fc20>;
+ nvmem-cells = <&macaddr_uboot_1fc20>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
@@ -119,7 +120,8 @@
port@0 {
status = "okay";
label = "wan";
- mtd-mac-address = <&uboot 0x1fc40>;
+ nvmem-cells = <&macaddr_uboot_1fc40>;
+ nvmem-cell-names = "mac-address";
};
port@1 {
@@ -165,3 +167,17 @@
ieee80211-freq-limit = <2400000 2500000>;
};
};
+
+&uboot {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_uboot_1fc20: macaddr@1fc20 {
+ reg = <0x1fc20 0x6>;
+ };
+
+ macaddr_uboot_1fc40: macaddr@1fc40 {
+ reg = <0x1fc40 0x6>;
+ };
+};