3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
7 compatible = "xiaomi,mir3g", "mediatek,mt7621-soc";
8 model = "Xiaomi Mi Router 3G";
11 led-boot = &led_status_yellow;
12 led-failsafe = &led_status_red;
13 led-running = &led_status_blue;
14 led-upgrade = &led_status_yellow;
15 label-mac-device = &gmac0;
19 bootargs = "console=ttyS0,115200n8";
23 compatible = "gpio-leds";
25 led_status_red: status_red {
26 label = "mir3g:red:status";
27 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
30 led_status_blue: status_blue {
31 label = "mir3g:blue:status";
32 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
35 led_status_yellow: status_yellow {
36 label = "mir3g:yellow:status";
37 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
41 label = "mir3g:amber:wan";
42 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
43 linux,default-trigger = "dsa-0.0:01:1Gbps";
47 label = "mir3g:amber:lan1";
48 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
49 linux,default-trigger = "dsa-0.0:03:1Gbps";
53 label = "mir3g:amber:lan2";
54 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
55 linux,default-trigger = "dsa-0.0:02:1Gbps";
60 compatible = "gpio-keys";
64 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
65 linux,code = <KEY_RESTART>;
69 reg_usb_vbus: regulator {
70 compatible = "regulator-fixed";
71 regulator-name = "usb_vbus";
72 regulator-min-microvolt = <5000000>;
73 regulator-max-microvolt = <5000000>;
74 gpio = <&gpio 12 GPIO_ACTIVE_HIGH>;
80 vbus-supply = <®_usb_vbus>;
87 compatible = "fixed-partitions";
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>;
175 compatible = "pci14c3,7603";
176 reg = <0x0000 0 0 0 0>;
177 mediatek,mtd-eeprom = <&factory 0x0000>;
178 ieee80211-freq-limit = <2400000 2500000>;
184 compatible = "pci14c3,7662";
185 reg = <0x0000 0 0 0 0>;
186 mediatek,mtd-eeprom = <&factory 0x8000>;
187 ieee80211-freq-limit = <5000000 6000000>;
192 mtd-mac-address = <&factory 0xe006>;
200 mtd-mac-address = <&factory 0xe000>;
217 groups = "jtag", "uart2", "uart3", "wdt";