5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "xiaomi,mir3g", "mediatek,mt7621-soc";
10 model = "Xiaomi Mi Router 3G";
13 led-status = &led_status_blue;
17 device_type = "memory";
18 reg = <0x0 0x10000000>;
22 bootargs = "console=ttyS0,115200n8";
26 compatible = "gpio-leds";
29 label = "mir3g:red:status";
30 gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
33 led_status_blue: status_blue {
34 label = "mir3g:blue:status";
35 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
39 label = "mir3g:yellow:status";
40 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
44 label = "mir3g:amber:wan";
45 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
49 label = "mir3g:amber:lan1";
50 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
54 label = "mir3g:amber:lan2";
55 gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
61 compatible = "gpio-keys-polled";
66 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
67 linux,code = <KEY_RESTART>;
71 reg_usb_vbus: reg_usb_vbus {
72 compatible = "regulator-fixed";
73 regulator-name = "usb_vbus";
74 regulator-min-microvolt = <5000000>;
75 regulator-max-microvolt = <5000000>;
76 gpio = <&gpio0 12 GPIO_ACTIVE_HIGH>;
83 vbus-supply = <®_usb_vbus>;
90 compatible = "fixed-partitions";
102 reg = <0x80000 0x40000>;
107 reg = <0xc0000 0x40000>;
111 factory: partition@100000 {
113 reg = <0x100000 0x40000>;
119 reg = <0x140000 0x40000>;
123 label = "crash_syslog";
124 reg = <0x180000 0x40000>;
129 reg = <0x1c0000 0x40000>;
133 /* uboot expects to find kernels at 0x200000 & 0x600000
134 * referred to as system 1 & system 2 respectively.
135 * a kernel is considered suitable for handing control over
136 * if its linux magic number exists & uImage CRC are correct.
137 * If either of those conditions fail, a matching sys'n'_fail flag
138 * is set in uboot env & a restart performed in the hope that the
139 * alternate kernel is okay.
140 * if neither kernel checksums ok and both are marked failed, system 2
143 * Note uboot's tftp flash install writes the transferred
144 * image to both kernel partitions.
148 label = "kernel_stock";
149 reg = <0x200000 0x400000>;
154 reg = <0x600000 0x400000>;
157 /* ubi partition is the result of squashing
158 * next consecutive stock partitions:
159 * - rootfs0 (rootfs partition for stock kernel0),
160 * - rootfs1 (rootfs partition for stock failsafe kernel1),
161 * - overlay (used as ubi overlay in stock fw)
162 * resulting 117,5MiB space for packages.
167 reg = <0xa00000 0x7580000>;
178 compatible = "pci14c3,7603";
179 reg = <0x0000 0 0 0 0>;
180 mediatek,mtd-eeprom = <&factory 0x0000>;
181 ieee80211-freq-limit = <2400000 2500000>;
187 compatible = "pci14c3,7662";
188 reg = <0x0000 0 0 0 0>;
189 mediatek,mtd-eeprom = <&factory 0x8000>;
190 ieee80211-freq-limit = <5000000 6000000>;
195 mtd-mac-address = <&factory 0xe000>;
196 mediatek,portmap = "lwlll";
200 state_default: pinctrl0 {
202 ralink,group = "jtag", "uart2", "uart3", "wdt";
203 ralink,function = "gpio";