aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/dts/mt7621_iodata_wn-dx1200gr.dts
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/ramips/dts/mt7621_iodata_wn-dx1200gr.dts')
-rw-r--r--target/linux/ramips/dts/mt7621_iodata_wn-dx1200gr.dts20
1 files changed, 18 insertions, 2 deletions
diff --git a/target/linux/ramips/dts/mt7621_iodata_wn-dx1200gr.dts b/target/linux/ramips/dts/mt7621_iodata_wn-dx1200gr.dts
index 055c1abde0..b63b4783b8 100644
--- a/target/linux/ramips/dts/mt7621_iodata_wn-dx1200gr.dts
+++ b/target/linux/ramips/dts/mt7621_iodata_wn-dx1200gr.dts
@@ -127,7 +127,8 @@
};
&gmac0 {
- mtd-mac-address = <&factory 0x1e000>;
+ nvmem-cells = <&macaddr_factory_1e000>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
@@ -135,7 +136,8 @@
wan: port@0 {
status = "okay";
label = "wan";
- mtd-mac-address = <&factory 0x1e006>;
+ nvmem-cells = <&macaddr_factory_1e006>;
+ nvmem-cell-names = "mac-address";
};
port@1 {
@@ -194,3 +196,17 @@
&xhci {
status = "disabled";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_1e000: macaddr@1e000 {
+ reg = <0x1e000 0x6>;
+ };
+
+ macaddr_factory_1e006: macaddr@1e006 {
+ reg = <0x1e006 0x6>;
+ };
+};