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
/
mt7621_iodata_wn-xx-xr.dtsi
diff --git
a/target/linux/ramips/dts/mt7621_iodata_wn-xx-xr.dtsi
b/target/linux/ramips/dts/mt7621_iodata_wn-xx-xr.dtsi
index ff9e525ae28deab3957f0a04aa1be325affa6bfc..1dd3d77878012a4d2026f3ffc4601e91dc52bfbb 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_iodata_wn-xx-xr.dtsi
+++ b/
target/linux/ramips/dts/mt7621_iodata_wn-xx-xr.dtsi
@@
-118,7
+118,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-126,7
+127,8
@@
wan: port@0 {
status = "okay";
label = "wan";
wan: port@0 {
status = "okay";
label = "wan";
- mtd-mac-address = <&factory 0xe006>;
+ nvmem-cells = <&macaddr_factory_e006>;
+ nvmem-cell-names = "mac-address";
};
port@1 {
};
port@1 {
@@
-165,3
+167,17
@@
&xhci {
status = "disabled";
};
&xhci {
status = "disabled";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
+
+ macaddr_factory_e006: macaddr@e006 {
+ reg = <0xe006 0x6>;
+ };
+};