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-boot = &led_status_yellow;
14 led-failsafe = &led_status_red;
15 led-running = &led_status_blue;
16 led-upgrade = &led_status_yellow;
17 label-mac-device = &gmac0;
21 bootargs = "console=ttyS0,115200n8";
25 compatible = "gpio-leds";
27 led_status_red: status_red {
28 label = "mir3g:red:status";
29 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
32 led_status_blue: status_blue {
33 label = "mir3g:blue:status";
34 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
37 led_status_yellow: status_yellow {
38 label = "mir3g:yellow:status";
39 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
43 label = "mir3g:amber:wan";
44 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
45 linux,default-trigger = "dsa-0.0:01:1Gbps";
49 label = "mir3g:amber:lan1";
50 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
51 linux,default-trigger = "dsa-0.0:03:1Gbps";
55 label = "mir3g:amber:lan2";
56 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
57 linux,default-trigger = "dsa-0.0:02:1Gbps";
62 compatible = "gpio-keys";
66 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
67 linux,code = <KEY_RESTART>;
71 reg_usb_vbus: regulator {
72 compatible = "regulator-fixed";
73 regulator-name = "usb_vbus";
74 regulator-min-microvolt = <5000000>;
75 regulator-max-microvolt = <5000000>;
76 gpio = <&gpio 12 GPIO_ACTIVE_HIGH>;
82 vbus-supply = <®_usb_vbus>;
89 compatible = "fixed-partitions";
101 reg = <0x80000 0x40000>;
106 reg = <0xc0000 0x40000>;
110 factory: partition@100000 {
112 reg = <0x100000 0x40000>;
118 reg = <0x140000 0x40000>;
122 label = "crash_syslog";
123 reg = <0x180000 0x40000>;
128 reg = <0x1c0000 0x40000>;
132 /* uboot expects to find kernels at 0x200000 & 0x600000
133 * referred to as system 1 & system 2 respectively.
134 * a kernel is considered suitable for handing control over
135 * if its linux magic number exists & uImage CRC are correct.
136 * If either of those conditions fail, a matching sys'n'_fail flag
137 * is set in uboot env & a restart performed in the hope that the
138 * alternate kernel is okay.
139 * if neither kernel checksums ok and both are marked failed, system 2
142 * Note uboot's tftp flash install writes the transferred
143 * image to both kernel partitions.
147 label = "kernel_stock";
148 reg = <0x200000 0x400000>;
153 reg = <0x600000 0x400000>;
156 /* ubi partition is the result of squashing
157 * next consecutive stock partitions:
158 * - rootfs0 (rootfs partition for stock kernel0),
159 * - rootfs1 (rootfs partition for stock failsafe kernel1),
160 * - overlay (used as ubi overlay in stock fw)
161 * resulting 117,5MiB space for packages.
166 reg = <0xa00000 0x7580000>;
177 compatible = "pci14c3,7603";
178 reg = <0x0000 0 0 0 0>;
179 mediatek,mtd-eeprom = <&factory 0x0000>;
180 ieee80211-freq-limit = <2400000 2500000>;
186 compatible = "pci14c3,7662";
187 reg = <0x0000 0 0 0 0>;
188 mediatek,mtd-eeprom = <&factory 0x8000>;
189 ieee80211-freq-limit = <5000000 6000000>;
194 mtd-mac-address = <&factory 0xe006>;
202 mtd-mac-address = <&factory 0xe000>;
219 groups = "jtag", "uart2", "uart3", "wdt";