projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ramips: fix and clean up D-Link MAC address
[openwrt/openwrt.git]
/
target
/
linux
/
ramips
/
dts
/
mt7621_asiarf_ap7621.dtsi
diff --git
a/target/linux/ramips/dts/mt7621_asiarf_ap7621.dtsi
b/target/linux/ramips/dts/mt7621_asiarf_ap7621.dtsi
index bea0b79df5eb95cd74ff8759d67285a0e4bff5ce..edfdc9b173f037d5ad5240e6a4c1785c2200a0cb 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_asiarf_ap7621.dtsi
+++ b/
target/linux/ramips/dts/mt7621_asiarf_ap7621.dtsi
@@
-74,10
+74,22
@@
reg = <0x38000 0x8000>;
};
reg = <0x38000 0x8000>;
};
-
factory:
partition@40000 {
+ partition@40000 {
label = "factory";
reg = <0x40000 0x10000>;
read-only;
label = "factory";
reg = <0x40000 0x10000>;
read-only;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_e000: macaddr@e000 {
+ compatible = "mac-base";
+ reg = <0xe000 0x6>;
+ #nvmem-cell-cells = <1>;
+ };
+ };
};
partition@50000 {
};
partition@50000 {
@@
-99,8
+111,23
@@
status = "okay";
};
status = "okay";
};
+&mdio {
+ ethphy4: ethernet-phy@4 {
+ reg = <4>;
+ };
+};
+
&gmac0 {
&gmac0 {
- nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cells = <&macaddr_factory_e000 0>;
+ nvmem-cell-names = "mac-address";
+};
+
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy4>;
+
+ nvmem-cells = <&macaddr_factory_e000 1>;
nvmem-cell-names = "mac-address";
};
nvmem-cell-names = "mac-address";
};
@@
-110,13
+137,3
@@
function = "gpio";
};
};
function = "gpio";
};
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_e000: macaddr@e000 {
- reg = <0xe000 0x6>;
- };
-};