aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/dts/rt3883_trendnet_tew-691gr.dts
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/ramips/dts/rt3883_trendnet_tew-691gr.dts')
-rw-r--r--target/linux/ramips/dts/rt3883_trendnet_tew-691gr.dts16
1 files changed, 14 insertions, 2 deletions
diff --git a/target/linux/ramips/dts/rt3883_trendnet_tew-691gr.dts b/target/linux/ramips/dts/rt3883_trendnet_tew-691gr.dts
index b5cae66732..fe503289a3 100644
--- a/target/linux/ramips/dts/rt3883_trendnet_tew-691gr.dts
+++ b/target/linux/ramips/dts/rt3883_trendnet_tew-691gr.dts
@@ -95,7 +95,8 @@
};
&ethernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
port@0 {
phy-handle = <&phy0>;
@@ -116,6 +117,17 @@
status = "okay";
ralink,mtd-eeprom = <&factory 0x0>;
ralink,5ghz = <0>;
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};