aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/dts/mt7621_thunder_timecloud.dts
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/ramips/dts/mt7621_thunder_timecloud.dts')
-rw-r--r--target/linux/ramips/dts/mt7621_thunder_timecloud.dts13
1 files changed, 12 insertions, 1 deletions
diff --git a/target/linux/ramips/dts/mt7621_thunder_timecloud.dts b/target/linux/ramips/dts/mt7621_thunder_timecloud.dts
index fe11f4f487..917a6beb51 100644
--- a/target/linux/ramips/dts/mt7621_thunder_timecloud.dts
+++ b/target/linux/ramips/dts/mt7621_thunder_timecloud.dts
@@ -94,7 +94,8 @@
};
&gmac0 {
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
@@ -112,3 +113,13 @@
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
+};