aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/dts/ar7241_tplink_tl-wr842n-v1.dts
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/ath79/dts/ar7241_tplink_tl-wr842n-v1.dts')
-rw-r--r--target/linux/ath79/dts/ar7241_tplink_tl-wr842n-v1.dts19
1 files changed, 16 insertions, 3 deletions
diff --git a/target/linux/ath79/dts/ar7241_tplink_tl-wr842n-v1.dts b/target/linux/ath79/dts/ar7241_tplink_tl-wr842n-v1.dts
index 4cc6d2a8f1..df77ca0fdc 100644
--- a/target/linux/ath79/dts/ar7241_tplink_tl-wr842n-v1.dts
+++ b/target/linux/ath79/dts/ar7241_tplink_tl-wr842n-v1.dts
@@ -135,18 +135,31 @@
#gpio-cells = <2>;
gpio-controller;
qca,no-eeprom;
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
};
};
&eth0 {
status = "okay";
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <(-1)>;
};
&eth1 {
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
+
+&uboot {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_uboot_1fc00: macaddr@1fc00 {
+ reg = <0x1fc00 0x6>;
+ };
+};