2020-11-25 18:16:51 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
2020-08-19 18:43:54 +00:00
|
|
|
|
2020-12-08 14:33:32 +00:00
|
|
|
#include "mt7628an_xiaomi_mi-router-4.dtsi"
|
2020-08-19 18:43:54 +00:00
|
|
|
|
|
|
|
/ {
|
|
|
|
compatible = "xiaomi,mi-router-4c", "mediatek,mt7628an-soc";
|
|
|
|
model = "Xiaomi Mi Router 4C";
|
|
|
|
|
|
|
|
aliases {
|
|
|
|
label-mac-device = ðernet;
|
|
|
|
};
|
2020-12-08 14:33:32 +00:00
|
|
|
};
|
2020-08-19 18:43:54 +00:00
|
|
|
|
2020-12-08 14:33:32 +00:00
|
|
|
&flash0 {
|
|
|
|
spi-max-frequency = <40000000>;
|
|
|
|
};
|
2020-08-19 18:43:54 +00:00
|
|
|
|
2020-12-08 14:33:32 +00:00
|
|
|
&partitions {
|
|
|
|
partition@60000 {
|
|
|
|
label = "overlay";
|
|
|
|
reg = <0x60000 0x100000>;
|
|
|
|
read-only;
|
2020-08-19 18:43:54 +00:00
|
|
|
};
|
|
|
|
|
2020-12-08 14:33:32 +00:00
|
|
|
partition@160000 {
|
|
|
|
label = "firmware";
|
|
|
|
reg = <0x160000 0xea0000>;
|
|
|
|
compatible = "denx,uimage";
|
2020-08-19 18:43:54 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&ehci {
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
|
|
|
&ohci {
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
|
|
|
ðernet {
|
2021-04-02 21:50:02 +00:00
|
|
|
nvmem-cells = <&macaddr_factory_28>;
|
|
|
|
nvmem-cell-names = "mac-address";
|
2020-08-19 18:43:54 +00:00
|
|
|
};
|
|
|
|
|
2020-12-08 14:33:32 +00:00
|
|
|
&esw {
|
|
|
|
mediatek,portmap = <0x3d>;
|
|
|
|
mediatek,portdisable = <0x29>;
|
2020-08-19 18:43:54 +00:00
|
|
|
};
|
2021-04-02 21:50:02 +00:00
|
|
|
|
|
|
|
&factory {
|
|
|
|
compatible = "nvmem-cells";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
|
|
|
macaddr_factory_28: macaddr@28 {
|
|
|
|
reg = <0x28 0x6>;
|
|
|
|
};
|
|
|
|
};
|