projects
/
openwrt
/
staging
/
wigyori.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/wigyori.git]
/
target
/
linux
/
ramips
/
dts
/
mt7620n_sunvalley_filehub.dtsi
diff --git
a/target/linux/ramips/dts/mt7620n_sunvalley_filehub.dtsi
b/target/linux/ramips/dts/mt7620n_sunvalley_filehub.dtsi
index 20ff2dbd1c3db91e900e47da72e0d8b8965e01bb..cd9e6cacce7e1b0be4587dd17caf8c13419bc26a 100644
(file)
--- a/
target/linux/ramips/dts/mt7620n_sunvalley_filehub.dtsi
+++ b/
target/linux/ramips/dts/mt7620n_sunvalley_filehub.dtsi
@@
-123,7
+123,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
};
&wmac {
};
&wmac {
@@
-136,3
+137,13
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};