aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/dts/mt7621_jcg_q20.dts
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/ramips/dts/mt7621_jcg_q20.dts')
-rw-r--r--target/linux/ramips/dts/mt7621_jcg_q20.dts20
1 files changed, 18 insertions, 2 deletions
diff --git a/target/linux/ramips/dts/mt7621_jcg_q20.dts b/target/linux/ramips/dts/mt7621_jcg_q20.dts
index f0e829393c..c9bf648a31 100644
--- a/target/linux/ramips/dts/mt7621_jcg_q20.dts
+++ b/target/linux/ramips/dts/mt7621_jcg_q20.dts
@@ -144,7 +144,8 @@
};
&gmac0 {
- mtd-mac-address = <&factory 0x3fff4>;
+ nvmem-cells = <&macaddr_factory_3fff4>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
@@ -152,7 +153,8 @@
port@0 {
status = "okay";
label = "wan";
- mtd-mac-address = <&factory 0x3fffa>;
+ nvmem-cells = <&macaddr_factory_3fffa>;
+ nvmem-cell-names = "mac-address";
};
port@1 {
@@ -173,3 +175,17 @@
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_3fff4: macaddr@3fff4 {
+ reg = <0x3fff4 0x6>;
+ };
+
+ macaddr_factory_3fffa: macaddr@3fffa {
+ reg = <0x3fffa 0x6>;
+ };
+};