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>;
70 compatible = "gpio-export";
74 gpio-export,name = "usbpower";
75 gpio-export,output = <1>;
76 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
92 reg = <0x80000 0x40000>;
97 reg = <0xc0000 0x40000>;
101 factory: partition@100000 {
103 reg = <0x100000 0x40000>;
109 reg = <0x140000 0x40000>;
113 label = "crash_syslog";
114 reg = <0x180000 0x40000>;
119 reg = <0x1c0000 0x40000>;
123 /* uboot expects to find kernels at 0x200000 & 0x600000
124 * referred to as system 1 & system 2 respectively.
125 * a kernel is considered suitable for handing control over
126 * if its linux magic number exists & uImage CRC are correct.
127 * If either of those conditions fail, a matching sys'n'_fail flag
128 * is set in uboot env & a restart performed in the hope that the
129 * alternate kernel is okay.
130 * if neither kernel checksums ok and both are marked failed, system 2
133 * Note uboot's tftp flash install writes the transferred
134 * image to both kernel partitions.
138 label = "kernel_stock";
139 reg = <0x200000 0x400000>;
144 reg = <0x600000 0x400000>;
147 /* ubi partition is the result of squashing
148 * next consecutive stock partitions:
149 * - rootfs0 (rootfs partition for stock kernel0),
150 * - rootfs1 (rootfs partition for stock failsafe kernel1),
151 * - overlay (used as ubi overlay in stock fw)
152 * resulting 117,5MiB space for packages.
157 reg = <0xa00000 0x7580000>;
166 compatible = "pci14c3,7603";
167 reg = <0x0000 0 0 0 0>;
168 mediatek,mtd-eeprom = <&factory 0x0000>;
169 ieee80211-freq-limit = <2400000 2500000>;
175 compatible = "pci14c3,7662";
176 reg = <0x0000 0 0 0 0>;
177 mediatek,mtd-eeprom = <&factory 0x8000>;
178 ieee80211-freq-limit = <5000000 6000000>;
184 mtd-mac-address = <&factory 0xe000>;
185 mediatek,portmap = "lwlll";
189 state_default: pinctrl0 {
191 ralink,group = "jtag", "uart2", "uart3", "wdt";
192 ralink,function = "gpio";