1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "mt7628an.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "xiaomi,mi-router-4c", "mediatek,mt7628an-soc";
10 model = "Xiaomi Mi Router 4C";
13 led-boot = &led_power_yellow;
14 led-failsafe = &led_power_yellow;
15 led-running = &led_power_blue;
16 led-upgrade = &led_power_yellow;
17 label-mac-device = ðernet;
21 bootargs = "console=ttyS0,115200";
25 compatible = "gpio-leds";
27 led_power_blue: power_blue {
29 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
32 led_power_yellow: power_yellow {
33 label = "yellow:power";
34 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
39 compatible = "gpio-keys";
43 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
44 linux,code = <KEY_RESTART>;
51 groups = "gpio", "wdt", "wled_an";
65 mediatek,portmap = <0x3d>;
66 mediatek,portdisable = <0x29>;
74 mtd-mac-address = <&factory 0x28>;
81 compatible = "jedec,spi-nor";
83 spi-max-frequency = <40000000>;
86 compatible = "fixed-partitions";
98 reg = <0x20000 0x10000>;
102 factory: partition@30000 {
104 reg = <0x30000 0x10000>;
110 reg = <0x40000 0x10000>;
116 reg = <0x50000 0x10000>;
122 reg = <0x60000 0x100000>;
128 reg = <0x160000 0xea0000>;
129 compatible = "denx,uimage";