projects
/
openwrt
/
staging
/
mkresin.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/staging/mkresin.git]
/
target
/
linux
/
ramips
/
dts
/
mt7628an_hilink_hlk-7688a.dts
diff --git
a/target/linux/ramips/dts/mt7628an_hilink_hlk-7688a.dts
b/target/linux/ramips/dts/mt7628an_hilink_hlk-7688a.dts
index 969488e4167970e6b856521ddbe682acf59b8687..8e07dff0f14841f7cfa2730f5afee7fa4d2d8c41 100644
(file)
--- a/
target/linux/ramips/dts/mt7628an_hilink_hlk-7688a.dts
+++ b/
target/linux/ramips/dts/mt7628an_hilink_hlk-7688a.dts
@@
-103,7
+103,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-113,3
+114,13
@@
&wmac {
status = "okay";
};
&wmac {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};