aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mediatek/dts/mt7622-linksys-e8450-ubi.dts
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/mediatek/dts/mt7622-linksys-e8450-ubi.dts')
-rw-r--r--target/linux/mediatek/dts/mt7622-linksys-e8450-ubi.dts20
1 files changed, 18 insertions, 2 deletions
diff --git a/target/linux/mediatek/dts/mt7622-linksys-e8450-ubi.dts b/target/linux/mediatek/dts/mt7622-linksys-e8450-ubi.dts
index d6cadd320c..9df736eb01 100644
--- a/target/linux/mediatek/dts/mt7622-linksys-e8450-ubi.dts
+++ b/target/linux/mediatek/dts/mt7622-linksys-e8450-ubi.dts
@@ -53,9 +53,25 @@
};
&gmac0 {
- mtd-mac-address = <&factory 0x7fff4>;
+ nvmem-cells = <&macaddr_factory_7fff4>;
+ nvmem-cell-names = "mac-address";
};
&wan {
- mtd-mac-address = <&factory 0x7fffa>;
+ nvmem-cells = <&macaddr_factory_7fffa>;
+ nvmem-cell-names = "mac-address";
+};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_7fff4: macaddr@7fff4 {
+ reg = <0x7fff4 0x6>;
+ };
+
+ macaddr_factory_7fffa: macaddr@7fffa {
+ reg = <0x7fffa 0x6>;
+ };
};