ramips: Xiaomi Mi Router 4A Gigabit Edition boot issue

This commit is contained in:
lean 2022-04-21 23:29:02 +08:00
parent 70ca3376d0
commit cb609bce6c

View File

@ -131,7 +131,8 @@
};
&gmac0 {
mtd-mac-address = <&factory 0xe000>;
nvmem-cells = <&macaddr_factory_e000>;
nvmem-cell-names = "mac-address";
};
&switch0 {
@ -149,7 +150,8 @@
wan: port@4 {
status = "okay";
label = "wan";
mtd-mac-address = <&factory 0xe006>;
nvmem-cells = <&macaddr_factory_e006>;
nvmem-cell-names = "mac-address";
};
};
};
@ -160,3 +162,17 @@
function = "gpio";
};
};
&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>;
};
};