1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
10 compatible = "xiaomi,mir3p", "mediatek,mt7621-soc";
11 model = "Xiaomi Mi Router 3 Pro";
14 led-boot = &led_status_yellow;
15 led-failsafe = &led_status_red;
16 led-running = &led_status_blue;
17 led-upgrade = &led_status_yellow;
21 bootargs = "console=ttyS0,115200n8";
25 compatible = "gpio-leds";
27 led_status_red: status_red {
28 label = "mir3p:red:status";
29 gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
32 led_status_blue: status_blue {
33 label = "mir3p:blue:status";
34 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
37 led_status_yellow: status_yellow {
38 label = "mir3p:yellow:status";
39 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
43 label = "mir3p:amber:wan";
44 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
48 label = "mir3p:amber:lan3";
49 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
53 label = "mir3p:amber:lan2";
54 gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
58 label = "mir3p:amber:lan1";
59 gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
64 compatible = "gpio-keys-polled";
69 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
70 linux,code = <KEY_RESTART>;
74 reg_usb_vbus: regulator {
75 compatible = "regulator-fixed";
76 regulator-name = "usb_vbus";
77 regulator-min-microvolt = <5000000>;
78 regulator-max-microvolt = <5000000>;
79 gpio = <&gpio0 12 GPIO_ACTIVE_HIGH>;
85 vbus-supply = <®_usb_vbus>;
92 compatible = "fixed-partitions";
104 reg = <0x40000 0x40000>;
109 reg = <0x80000 0x40000>;
113 factory: partition@c0000 {
115 reg = <0x0c0000 0x40000>;
121 reg = <0x100000 0x40000>;
125 label = "crash_syslog";
126 reg = <0x140000 0x80000>;
131 reg = <0x1c0000 0x40000>;
135 /* We keep stock xiaomi firmware (kernel0) here */
137 label = "kernel_stock";
138 reg = <0x200000 0x400000>;
143 reg = <0x600000 0x400000>;
148 reg = <0xa00000 0xf580000>;
159 compatible = "mediatek,mt76";
160 reg = <0x0000 0 0 0 0>;
161 mediatek,mtd-eeprom = <&factory 0x0000>;
162 ieee80211-freq-limit = <2400000 2500000>;
168 compatible = "mediatek,mt76";
169 reg = <0x0000 0 0 0 0>;
170 mediatek,mtd-eeprom = <&factory 0x8000>;
171 ieee80211-freq-limit = <5000000 6000000>;
176 mtd-mac-address = <&factory 0xe000>;
177 mediatek,portmap = "llllw";
181 state_default: pinctrl0 {
183 ralink,group = "jtag", "uart2", "uart3", "wdt";
184 ralink,function = "gpio";