|
@@ -4,6 +4,10 @@
|
|
|
#include "rtl9302_zyxel_xgs1x10-12-common.dtsi"
|
|
#include "rtl9302_zyxel_xgs1x10-12-common.dtsi"
|
|
|
|
|
|
|
|
/ {
|
|
/ {
|
|
|
|
|
+ aliases {
|
|
|
|
|
+ label-mac-device = ðernet0;
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
keys {
|
|
keys {
|
|
|
compatible = "gpio-keys";
|
|
compatible = "gpio-keys";
|
|
|
|
|
|
|
@@ -35,6 +39,14 @@
|
|
|
partition@e0000 {
|
|
partition@e0000 {
|
|
|
label = "u-boot-env";
|
|
label = "u-boot-env";
|
|
|
reg = <0xe0000 0x10000>;
|
|
reg = <0xe0000 0x10000>;
|
|
|
|
|
+
|
|
|
|
|
+ nvmem-layout {
|
|
|
|
|
+ compatible = "u-boot,env";
|
|
|
|
|
+
|
|
|
|
|
+ macaddr_ubootenv_ethaddr: ethaddr {
|
|
|
|
|
+ #nvmem-cell-cells = <1>;
|
|
|
|
|
+ };
|
|
|
|
|
+ };
|
|
|
};
|
|
};
|
|
|
partition@f0000 {
|
|
partition@f0000 {
|
|
|
label = "u-boot-env2";
|
|
label = "u-boot-env2";
|
|
@@ -63,3 +75,8 @@
|
|
|
};
|
|
};
|
|
|
};
|
|
};
|
|
|
};
|
|
};
|
|
|
|
|
+
|
|
|
|
|
+ðernet0 {
|
|
|
|
|
+ nvmem-cells = <&macaddr_ubootenv_ethaddr 0>;
|
|
|
|
|
+ nvmem-cell-names = "mac-address";
|
|
|
|
|
+};
|