aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/dts/mt7621_ubnt_edgerouter-x.dtsi
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/ramips/dts/mt7621_ubnt_edgerouter-x.dtsi')
-rw-r--r--target/linux/ramips/dts/mt7621_ubnt_edgerouter-x.dtsi25
1 files changed, 20 insertions, 5 deletions
diff --git a/target/linux/ramips/dts/mt7621_ubnt_edgerouter-x.dtsi b/target/linux/ramips/dts/mt7621_ubnt_edgerouter-x.dtsi
index b92dc8f3f0..e968c4e685 100644
--- a/target/linux/ramips/dts/mt7621_ubnt_edgerouter-x.dtsi
+++ b/target/linux/ramips/dts/mt7621_ubnt_edgerouter-x.dtsi
@@ -20,7 +20,8 @@
};
&gmac0 {
- mtd-mac-address = <&factory 0x22>;
+ nvmem-cells = <&macaddr_factory_22>;
+ nvmem-cell-names = "mac-address";
label = "dsa";
};
@@ -34,28 +35,32 @@
port@1 {
status = "okay";
label = "eth1";
- mtd-mac-address = <&factory 0x22>;
+ nvmem-cells = <&macaddr_factory_22>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
port@2 {
status = "okay";
label = "eth2";
- mtd-mac-address = <&factory 0x22>;
+ nvmem-cells = <&macaddr_factory_22>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <2>;
};
port@3 {
status = "okay";
label = "eth3";
- mtd-mac-address = <&factory 0x22>;
+ nvmem-cells = <&macaddr_factory_22>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <3>;
};
port@4 {
status = "okay";
label = "eth4";
- mtd-mac-address = <&factory 0x22>;
+ nvmem-cells = <&macaddr_factory_22>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <4>;
};
};
@@ -141,3 +146,13 @@
&xhci {
status = "disabled";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_22: macaddr@22 {
+ reg = <0x22 0x6>;
+ };
+};