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:wan";
26 gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
30 label = "mir3g:blue:usb";
31 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
35 label = "mir3g:yellow:status";
36 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
41 compatible = "gpio-keys-polled";
48 gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>;
49 linux,code = <KEY_RESTART>;
65 reg = <0x80000 0x40000>;
71 reg = <0xc0000 0x40000>;
75 factory: partition@100000 {
77 reg = <0x100000 0x40000>;
83 reg = <0x140000 0x40000>;
88 label = "crash_syslog";
89 reg = <0x180000 0x40000>;
95 reg = <0x1c0000 0x40000>;
100 * kernel0 partition should be erased, so
101 * u-boot in failsafe routine switches
102 * to next one looking for kernel image.
103 * To remind about this fact rename kernel0
107 label = "kernel_erase";
108 reg = <0x200000 0x400000>;
113 reg = <0x600000 0x400000>;
116 /* ubi partition is the result of squashing
117 * next consequent stock partitions:
118 * - rootfs0 (rootfs partition for stock kernel0),
119 * - rootfs1 (rootfs partition for stock failsafe kernel1),
120 * - overlay (used as ubi overlay in stock fw)
121 * resulting 117,5MiB space for packages.
125 reg = <0xa00000 0x7580000>;
134 compatible = "pci14c3,7603";
135 reg = <0x0000 0 0 0 0>;
136 mediatek,mtd-eeprom = <&factory 0x0000>;
137 ieee80211-freq-limit = <2400000 2500000>;
143 compatible = "pci14c3,7662";
144 reg = <0x0000 0 0 0 0>;
145 mediatek,mtd-eeprom = <&factory 0x8000>;
146 ieee80211-freq-limit = <5000000 6000000>;
152 mtd-mac-address = <&factory 0xe000>;
153 mediatek,portmap = "lwlll";
157 state_default: pinctrl0 {
159 ralink,group = "jtag", "uart3", "wdt";
160 ralink,function = "gpio";