1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
10 compatible = "xiaomi,mi-router-3-pro", "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;
18 label-mac-device = &gmac0;
22 bootargs = "console=ttyS0,115200n8";
26 compatible = "gpio-leds";
28 led_status_red: led-0 {
29 color = <LED_COLOR_ID_RED>;
30 function = LED_FUNCTION_STATUS;
31 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
34 led_status_blue: led-1 {
35 color = <LED_COLOR_ID_BLUE>;
36 function = LED_FUNCTION_STATUS;
37 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
40 led_status_yellow: led-2 {
41 color = <LED_COLOR_ID_YELLOW>;
42 function = LED_FUNCTION_STATUS;
43 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
47 color = <LED_COLOR_ID_AMBER>;
48 function = LED_FUNCTION_WAN;
49 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
50 linux,default-trigger = "mt7530-0:04:1Gbps";
54 color = <LED_COLOR_ID_AMBER>;
55 function = LED_FUNCTION_LAN;
56 function-enumerator = <3>;
57 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
58 linux,default-trigger = "mt7530-0:03:1Gbps";
62 color = <LED_COLOR_ID_AMBER>;
63 function = LED_FUNCTION_LAN;
64 function-enumerator = <2>;
65 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
66 linux,default-trigger = "mt7530-0:02:1Gbps";
70 color = <LED_COLOR_ID_AMBER>;
71 function = LED_FUNCTION_LAN;
72 function-enumerator = <1>;
73 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
74 linux,default-trigger = "mt7530-0:01:1Gbps";
79 compatible = "gpio-keys";
83 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
84 linux,code = <KEY_RESTART>;
88 reg_usb_vbus: regulator {
89 compatible = "regulator-fixed";
90 regulator-name = "usb_vbus";
91 regulator-min-microvolt = <5000000>;
92 regulator-max-microvolt = <5000000>;
93 gpio = <&gpio 12 GPIO_ACTIVE_HIGH>;
99 vbus-supply = <®_usb_vbus>;
106 compatible = "fixed-partitions";
107 #address-cells = <1>;
111 label = "Bootloader";
118 reg = <0x40000 0x40000>;
123 reg = <0x80000 0x40000>;
129 reg = <0x0c0000 0x40000>;
133 compatible = "fixed-layout";
134 #address-cells = <1>;
137 eeprom_factory_0: eeprom@0 {
141 eeprom_factory_8000: eeprom@8000 {
142 reg = <0x8000 0x4da8>;
145 macaddr_factory_e000: macaddr@e000 {
149 macaddr_factory_e006: macaddr@e006 {
157 reg = <0x100000 0x40000>;
161 label = "crash_syslog";
162 reg = <0x140000 0x80000>;
167 reg = <0x1c0000 0x40000>;
171 /* We keep stock xiaomi firmware (kernel0) here */
173 label = "kernel_stock";
174 reg = <0x200000 0x400000>;
179 reg = <0x600000 0x400000>;
184 reg = <0xa00000 0xf580000>;
195 compatible = "mediatek,mt76";
196 reg = <0x0000 0 0 0 0>;
197 nvmem-cells = <&eeprom_factory_0>;
198 nvmem-cell-names = "eeprom";
199 ieee80211-freq-limit = <2400000 2500000>;
205 compatible = "mediatek,mt76";
206 reg = <0x0000 0 0 0 0>;
207 nvmem-cells = <&eeprom_factory_8000>;
208 nvmem-cell-names = "eeprom";
209 ieee80211-freq-limit = <5000000 6000000>;
214 nvmem-cells = <&macaddr_factory_e006>;
215 nvmem-cell-names = "mac-address";
221 phy-handle = <ðphy4>;
223 nvmem-cells = <&macaddr_factory_e000>;
224 nvmem-cell-names = "mac-address";
228 /delete-property/ interrupts;
252 groups = "jtag", "uart2", "uart3", "wdt";