1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
10 compatible = "xiaomi,mir3g-v2", "mediatek,mt7621-soc";
11 model = "Xiaomi Mi Router 3G v2";
14 led-boot = &led_status_yellow;
15 led-failsafe = &led_status_yellow;
16 led-running = &led_status_blue;
17 led-upgrade = &led_status_yellow;
18 label-mac-device = &wan;
22 bootargs = "console=ttyS0,115200n8";
26 compatible = "gpio-leds";
28 led_status_blue: status_blue {
29 label = "mir3gv2:blue:status";
30 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
33 led_status_yellow: status_yellow {
34 label = "mir3gv2:yellow:status";
35 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
40 compatible = "gpio-keys";
44 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
45 linux,code = <KEY_RESTART>;
54 compatible = "jedec,spi-nor";
56 spi-max-frequency = <80000000>;
59 compatible = "fixed-partitions";
71 reg = <0x30000 0x10000>;
77 reg = <0x40000 0x10000>;
81 factory: partition@50000 {
83 reg = <0x50000 0x10000>;
89 reg = <0x60000 0x10000>;
95 reg = <0x70000 0x10000>;
101 reg = <0x80000 0x100000>;
105 firmware: partition@180000 {
106 compatible = "denx,uimage";
108 reg = <0x180000 0xe80000>;
120 compatible = "pci14c3,7662";
121 reg = <0x0000 0 0 0 0>;
122 mediatek,mtd-eeprom = <&factory 0x8000>;
123 ieee80211-freq-limit = <5000000 6000000>;
129 compatible = "pci14c3,7603";
130 reg = <0x0000 0 0 0 0>;
131 mediatek,mtd-eeprom = <&factory 0x0000>;
132 ieee80211-freq-limit = <2400000 2500000>;
137 mtd-mac-address = <&factory 0xe000>;
154 mtd-mac-address = <&factory 0xe006>;
161 groups = "jtag", "uart2", "uart3", "wdt";