projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ath79: ja76pf2: use nvmem cells to specify MAC addresses
[openwrt/openwrt.git]
/
target
/
linux
/
ath79
/
dts
/
ar7161_jjplus_ja76pf2.dts
diff --git
a/target/linux/ath79/dts/ar7161_jjplus_ja76pf2.dts
b/target/linux/ath79/dts/ar7161_jjplus_ja76pf2.dts
index b528c1b69ef81c1f9091da879385ec92c64c25fa..dca226d2623b582e946b09a794147bbf892ceb2a 100644
(file)
--- a/
target/linux/ath79/dts/ar7161_jjplus_ja76pf2.dts
+++ b/
target/linux/ath79/dts/ar7161_jjplus_ja76pf2.dts
@@
-101,12
+101,16
@@
ð0 {
status = "okay";
ð0 {
status = "okay";
+ nvmem-cells = <&macaddr_lan>;
+ nvmem-cell-names = "mac-address";
phy-handle = <&phy0>;
};
ð1 {
status = "okay";
phy-handle = <&phy0>;
};
ð1 {
status = "okay";
+ nvmem-cells = <&macaddr_wan>;
+ nvmem-cell-names = "mac-address";
phy-handle = <&phy4>;
};
phy-handle = <&phy4>;
};
@@
-161,6
+165,17
@@
label = "Atheros Board Data";
reg = <0xff0000 0x10000>;
read-only;
label = "Atheros Board Data";
reg = <0xff0000 0x10000>;
read-only;
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_wan: macaddr@1000 {
+ reg = <0x1000 0x6>;
+ };
+
+ macaddr_lan: macaddr@1006 {
+ reg = <0x1006 0x6>;
+ };
};
};
};
};
};
};