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;
18 label-mac-device = &gmac0;
22 bootargs = "console=ttyS0,115200n8";
26 compatible = "gpio-leds";
28 led_status_red: status_red {
29 label = "mir3p:red:status";
30 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
33 led_status_blue: status_blue {
34 label = "mir3p:blue:status";
35 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
38 led_status_yellow: status_yellow {
39 label = "mir3p:yellow:status";
40 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
44 label = "mir3p:amber:wan";
45 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
46 linux,default-trigger = "dsa-0.0:04:1Gbps";
50 label = "mir3p:amber:lan3";
51 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
52 linux,default-trigger = "dsa-0.0:01:1Gbps";
56 label = "mir3p:amber:lan2";
57 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
58 linux,default-trigger = "dsa-0.0:02:1Gbps";
62 label = "mir3p:amber:lan1";
63 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
64 linux,default-trigger = "dsa-0.0:03:1Gbps";
69 compatible = "gpio-keys";
73 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
74 linux,code = <KEY_RESTART>;
78 reg_usb_vbus: regulator {
79 compatible = "regulator-fixed";
80 regulator-name = "usb_vbus";
81 regulator-min-microvolt = <5000000>;
82 regulator-max-microvolt = <5000000>;
83 gpio = <&gpio 12 GPIO_ACTIVE_HIGH>;
89 vbus-supply = <®_usb_vbus>;
96 compatible = "fixed-partitions";
101 label = "Bootloader";
108 reg = <0x40000 0x40000>;
113 reg = <0x80000 0x40000>;
117 factory: partition@c0000 {
119 reg = <0x0c0000 0x40000>;
125 reg = <0x100000 0x40000>;
129 label = "crash_syslog";
130 reg = <0x140000 0x80000>;
135 reg = <0x1c0000 0x40000>;
139 /* We keep stock xiaomi firmware (kernel0) here */
141 label = "kernel_stock";
142 reg = <0x200000 0x400000>;
147 reg = <0x600000 0x400000>;
152 reg = <0xa00000 0xf580000>;
163 compatible = "mediatek,mt76";
164 reg = <0x0000 0 0 0 0>;
165 mediatek,mtd-eeprom = <&factory 0x0000>;
166 ieee80211-freq-limit = <2400000 2500000>;
172 compatible = "mediatek,mt76";
173 reg = <0x0000 0 0 0 0>;
174 mediatek,mtd-eeprom = <&factory 0x8000>;
175 ieee80211-freq-limit = <5000000 6000000>;
180 mtd-mac-address = <&factory 0xe006>;
203 mtd-mac-address = <&factory 0xe000>;
210 groups = "jtag", "uart2", "uart3", "wdt";