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;
21 bootargs = "console=ttyS0,115200n8";
25 compatible = "gpio-leds";
27 led_status_blue: status_blue {
28 label = "mir3gv2:blue:status";
29 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
32 led_status_yellow: status_yellow {
33 label = "mir3gv2:yellow:status";
34 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
39 compatible = "gpio-keys";
43 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
44 linux,code = <KEY_RESTART>;
53 compatible = "jedec,spi-nor";
55 spi-max-frequency = <80000000>;
58 compatible = "fixed-partitions";
70 reg = <0x30000 0x10000>;
76 reg = <0x40000 0x10000>;
80 factory: partition@50000 {
82 reg = <0x50000 0x10000>;
88 reg = <0x60000 0x10000>;
94 reg = <0x70000 0x10000>;
100 reg = <0x80000 0x100000>;
104 firmware: partition@180000 {
105 compatible = "denx,uimage";
107 reg = <0x180000 0xe80000>;
119 compatible = "pci14c3,7662";
120 reg = <0x0000 0 0 0 0>;
121 mediatek,mtd-eeprom = <&factory 0x8000>;
122 ieee80211-freq-limit = <5000000 6000000>;
128 compatible = "pci14c3,7603";
129 reg = <0x0000 0 0 0 0>;
130 mediatek,mtd-eeprom = <&factory 0x0000>;
131 ieee80211-freq-limit = <2400000 2500000>;
136 mtd-mac-address = <&factory 0xe000>;
137 mediatek,portmap = "lllwl";
141 state_default: pinctrl0 {
143 ralink,group = "jtag", "uart2", "uart3", "wdt";
144 ralink,function = "gpio";