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;
20 bootargs = "console=ttyS0,115200n8";
24 compatible = "gpio-leds";
26 led_status_red: status_red {
27 label = "mir3g:red:status";
28 gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
31 led_status_blue: status_blue {
32 label = "mir3g:blue:status";
33 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
36 led_status_yellow: status_yellow {
37 label = "mir3g:yellow:status";
38 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
42 label = "mir3g:amber:wan";
43 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
47 label = "mir3g:amber:lan1";
48 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
52 label = "mir3g:amber:lan2";
53 gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
58 compatible = "gpio-keys";
62 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
63 linux,code = <KEY_RESTART>;
67 reg_usb_vbus: regulator {
68 compatible = "regulator-fixed";
69 regulator-name = "usb_vbus";
70 regulator-min-microvolt = <5000000>;
71 regulator-max-microvolt = <5000000>;
72 gpio = <&gpio0 12 GPIO_ACTIVE_HIGH>;
78 vbus-supply = <®_usb_vbus>;
85 compatible = "fixed-partitions";
97 reg = <0x80000 0x40000>;
102 reg = <0xc0000 0x40000>;
106 factory: partition@100000 {
108 reg = <0x100000 0x40000>;
114 reg = <0x140000 0x40000>;
118 label = "crash_syslog";
119 reg = <0x180000 0x40000>;
124 reg = <0x1c0000 0x40000>;
128 /* uboot expects to find kernels at 0x200000 & 0x600000
129 * referred to as system 1 & system 2 respectively.
130 * a kernel is considered suitable for handing control over
131 * if its linux magic number exists & uImage CRC are correct.
132 * If either of those conditions fail, a matching sys'n'_fail flag
133 * is set in uboot env & a restart performed in the hope that the
134 * alternate kernel is okay.
135 * if neither kernel checksums ok and both are marked failed, system 2
138 * Note uboot's tftp flash install writes the transferred
139 * image to both kernel partitions.
143 label = "kernel_stock";
144 reg = <0x200000 0x400000>;
149 reg = <0x600000 0x400000>;
152 /* ubi partition is the result of squashing
153 * next consecutive stock partitions:
154 * - rootfs0 (rootfs partition for stock kernel0),
155 * - rootfs1 (rootfs partition for stock failsafe kernel1),
156 * - overlay (used as ubi overlay in stock fw)
157 * resulting 117,5MiB space for packages.
162 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>;
190 mtd-mac-address = <&factory 0xe000>;
191 mediatek,portmap = "lwlll";
196 ralink,group = "jtag", "uart2", "uart3", "wdt";
197 ralink,function = "gpio";