projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ramips: convert mtd-mac-address to nvmem implementation
[openwrt/openwrt.git]
/
target
/
linux
/
ramips
/
dts
/
mt7628an_wavlink_wl-wn575a3.dts
diff --git
a/target/linux/ramips/dts/mt7628an_wavlink_wl-wn575a3.dts
b/target/linux/ramips/dts/mt7628an_wavlink_wl-wn575a3.dts
index d6d418f1b9f91c31ec3ad139bf54900b9078e43e..b12e1f71066e656e2ad8e13ea9c79e0961e13dd9 100644
(file)
--- a/
target/linux/ramips/dts/mt7628an_wavlink_wl-wn575a3.dts
+++ b/
target/linux/ramips/dts/mt7628an_wavlink_wl-wn575a3.dts
@@
-112,9
+112,20
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
};
&esw {
mediatek,portmap = <0x2f>;
};
};
&esw {
mediatek,portmap = <0x2f>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};