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>;
60 compatible = "gpio-keys-polled";
65 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
66 linux,code = <KEY_RESTART>;
70 reg_usb_vbus: reg_usb_vbus {
71 compatible = "regulator-fixed";
72 regulator-name = "usb_vbus";
73 regulator-min-microvolt = <5000000>;
74 regulator-max-microvolt = <5000000>;
75 gpio = <&gpio0 12 GPIO_ACTIVE_HIGH>;
81 vbus-supply = <®_usb_vbus>;
88 compatible = "fixed-partitions";
100 reg = <0x80000 0x40000>;
105 reg = <0xc0000 0x40000>;
109 factory: partition@100000 {
111 reg = <0x100000 0x40000>;
117 reg = <0x140000 0x40000>;
121 label = "crash_syslog";
122 reg = <0x180000 0x40000>;
127 reg = <0x1c0000 0x40000>;
131 /* uboot expects to find kernels at 0x200000 & 0x600000
132 * referred to as system 1 & system 2 respectively.
133 * a kernel is considered suitable for handing control over
134 * if its linux magic number exists & uImage CRC are correct.
135 * If either of those conditions fail, a matching sys'n'_fail flag
136 * is set in uboot env & a restart performed in the hope that the
137 * alternate kernel is okay.
138 * if neither kernel checksums ok and both are marked failed, system 2
141 * Note uboot's tftp flash install writes the transferred
142 * image to both kernel partitions.
146 label = "kernel_stock";
147 reg = <0x200000 0x400000>;
152 reg = <0x600000 0x400000>;
155 /* ubi partition is the result of squashing
156 * next consecutive stock partitions:
157 * - rootfs0 (rootfs partition for stock kernel0),
158 * - rootfs1 (rootfs partition for stock failsafe kernel1),
159 * - overlay (used as ubi overlay in stock fw)
160 * resulting 117,5MiB space for packages.
165 reg = <0xa00000 0x7580000>;
176 compatible = "pci14c3,7603";
177 reg = <0x0000 0 0 0 0>;
178 mediatek,mtd-eeprom = <&factory 0x0000>;
179 ieee80211-freq-limit = <2400000 2500000>;
185 compatible = "pci14c3,7662";
186 reg = <0x0000 0 0 0 0>;
187 mediatek,mtd-eeprom = <&factory 0x8000>;
188 ieee80211-freq-limit = <5000000 6000000>;
193 mtd-mac-address = <&factory 0xe000>;
194 mediatek,portmap = "lwlll";
198 state_default: pinctrl0 {
200 ralink,group = "jtag", "uart2", "uart3", "wdt";
201 ralink,function = "gpio";