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 {
|
2022-12-02 15:39:02 +00:00
|
|
|
led-boot = &led_power_yellow;
|
|
|
|
led-failsafe = &led_power_yellow;
|
|
|
|
led-running = &led_power_blue;
|
|
|
|
led-upgrade = &led_power_yellow;
|
2020-08-19 18:43:54 +00:00
|
|
|
label-mac-device = ðernet;
|
|
|
|
};
|
2022-12-02 15:39:02 +00:00
|
|
|
|
|
|
|
leds {
|
|
|
|
compatible = "gpio-leds";
|
|
|
|
|
|
|
|
led_power_blue: power_blue {
|
|
|
|
label = "blue:power";
|
|
|
|
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
|
|
|
led_power_yellow: power_yellow {
|
|
|
|
label = "yellow:power";
|
|
|
|
gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
|
|
|
wan {
|
|
|
|
label = "blue:wan";
|
|
|
|
gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
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
|
|
|
};
|