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";
68 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
69 linux,code = <KEY_RESTART>;
73 reg_usb_vbus: reg_usb_vbus {
74 compatible = "regulator-fixed";
75 regulator-name = "usb_vbus";
76 regulator-min-microvolt = <5000000>;
77 regulator-max-microvolt = <5000000>;
78 gpio = <&gpio0 12 GPIO_ACTIVE_HIGH>;
85 vbus-supply = <®_usb_vbus>;
99 reg = <0x80000 0x40000>;
104 reg = <0xc0000 0x40000>;
108 factory: partition@100000 {
110 reg = <0x100000 0x40000>;
116 reg = <0x140000 0x40000>;
120 label = "crash_syslog";
121 reg = <0x180000 0x40000>;
126 reg = <0x1c0000 0x40000>;
130 /* uboot expects to find kernels at 0x200000 & 0x600000
131 * referred to as system 1 & system 2 respectively.
132 * a kernel is considered suitable for handing control over
133 * if its linux magic number exists & uImage CRC are correct.
134 * If either of those conditions fail, a matching sys'n'_fail flag
135 * is set in uboot env & a restart performed in the hope that the
136 * alternate kernel is okay.
137 * if neither kernel checksums ok and both are marked failed, system 2
140 * Note uboot's tftp flash install writes the transferred
141 * image to both kernel partitions.
145 label = "kernel_stock";
146 reg = <0x200000 0x400000>;
151 reg = <0x600000 0x400000>;
154 /* ubi partition is the result of squashing
155 * next consecutive stock partitions:
156 * - rootfs0 (rootfs partition for stock kernel0),
157 * - rootfs1 (rootfs partition for stock failsafe kernel1),
158 * - overlay (used as ubi overlay in stock fw)
159 * resulting 117,5MiB space for packages.
164 reg = <0xa00000 0x7580000>;
173 compatible = "pci14c3,7603";
174 reg = <0x0000 0 0 0 0>;
175 mediatek,mtd-eeprom = <&factory 0x0000>;
176 ieee80211-freq-limit = <2400000 2500000>;
182 compatible = "pci14c3,7662";
183 reg = <0x0000 0 0 0 0>;
184 mediatek,mtd-eeprom = <&factory 0x8000>;
185 ieee80211-freq-limit = <5000000 6000000>;
191 mtd-mac-address = <&factory 0xe000>;
192 mediatek,portmap = "lwlll";
196 state_default: pinctrl0 {
198 ralink,group = "jtag", "uart2", "uart3", "wdt";
199 ralink,function = "gpio";