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 device_type = "memory";
14 reg = <0x0 0x10000000>;
18 bootargs = "console=ttyS0,115200n8";
22 compatible = "gpio-leds";
25 label = "mir3g:red:status";
26 gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
30 label = "mir3g:blue:status";
31 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
35 label = "mir3g:yellow:status";
36 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
40 label = "mir3g:amber:wan";
41 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
45 label = "mir3g:amber:lan1";
46 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
50 label = "mir3g:amber:lan2";
51 gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
57 compatible = "gpio-keys-polled";
64 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
65 linux,code = <KEY_RESTART>;
69 reg_usb_vbus: reg_usb_vbus {
70 compatible = "regulator-fixed";
71 regulator-name = "usb_vbus";
72 regulator-min-microvolt = <5000000>;
73 regulator-max-microvolt = <5000000>;
74 gpio = <&gpio0 12 GPIO_ACTIVE_HIGH>;
81 vbus-supply = <®_usb_vbus>;
95 reg = <0x80000 0x40000>;
100 reg = <0xc0000 0x40000>;
104 factory: partition@100000 {
106 reg = <0x100000 0x40000>;
112 reg = <0x140000 0x40000>;
116 label = "crash_syslog";
117 reg = <0x180000 0x40000>;
122 reg = <0x1c0000 0x40000>;
126 /* uboot expects to find kernels at 0x200000 & 0x600000
127 * referred to as system 1 & system 2 respectively.
128 * a kernel is considered suitable for handing control over
129 * if its linux magic number exists & uImage CRC are correct.
130 * If either of those conditions fail, a matching sys'n'_fail flag
131 * is set in uboot env & a restart performed in the hope that the
132 * alternate kernel is okay.
133 * if neither kernel checksums ok and both are marked failed, system 2
136 * Note uboot's tftp flash install writes the transferred
137 * image to both kernel partitions.
141 label = "kernel_stock";
142 reg = <0x200000 0x400000>;
147 reg = <0x600000 0x400000>;
150 /* ubi partition is the result of squashing
151 * next consecutive stock partitions:
152 * - rootfs0 (rootfs partition for stock kernel0),
153 * - rootfs1 (rootfs partition for stock failsafe kernel1),
154 * - overlay (used as ubi overlay in stock fw)
155 * resulting 117,5MiB space for packages.
160 reg = <0xa00000 0x7580000>;
169 compatible = "pci14c3,7603";
170 reg = <0x0000 0 0 0 0>;
171 mediatek,mtd-eeprom = <&factory 0x0000>;
172 ieee80211-freq-limit = <2400000 2500000>;
178 compatible = "pci14c3,7662";
179 reg = <0x0000 0 0 0 0>;
180 mediatek,mtd-eeprom = <&factory 0x8000>;
181 ieee80211-freq-limit = <5000000 6000000>;
187 mtd-mac-address = <&factory 0xe000>;
188 mediatek,portmap = "lwlll";
192 state_default: pinctrl0 {
194 ralink,group = "jtag", "uart2", "uart3", "wdt";
195 ralink,function = "gpio";