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";
68 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
69 linux,code = <KEY_RESTART>;
73 reg_usb_vbus: regulator {
74 compatible = "regulator-fixed";
75 regulator-name = "usb_vbus";
76 regulator-min-microvolt = <5000000>;
77 regulator-max-microvolt = <5000000>;
78 gpio = <&gpio0 12 GPIO_ACTIVE_HIGH>;
84 vbus-supply = <®_usb_vbus>;
91 compatible = "fixed-partitions";
103 reg = <0x40000 0x40000>;
108 reg = <0x80000 0x40000>;
112 factory: partition@c0000 {
114 reg = <0x0c0000 0x40000>;
120 reg = <0x100000 0x40000>;
124 label = "crash_syslog";
125 reg = <0x140000 0x80000>;
130 reg = <0x1c0000 0x40000>;
134 /* We keep stock xiaomi firmware (kernel0) here */
136 label = "kernel_stock";
137 reg = <0x200000 0x400000>;
142 reg = <0x600000 0x400000>;
147 reg = <0xa00000 0xf580000>;
158 compatible = "mediatek,mt76";
159 reg = <0x0000 0 0 0 0>;
160 mediatek,mtd-eeprom = <&factory 0x0000>;
161 ieee80211-freq-limit = <2400000 2500000>;
167 compatible = "mediatek,mt76";
168 reg = <0x0000 0 0 0 0>;
169 mediatek,mtd-eeprom = <&factory 0x8000>;
170 ieee80211-freq-limit = <5000000 6000000>;
175 mtd-mac-address = <&factory 0xe000>;
176 mediatek,portmap = "llllw";
181 ralink,group = "jtag", "uart2", "uart3", "wdt";
182 ralink,function = "gpio";