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>
9 compatible = "xiaomi,mi-router-3-pro", "mediatek,mt7621-soc";
10 model = "Xiaomi Mi Router 3 Pro";
13 led-boot = &led_status_yellow;
14 led-failsafe = &led_status_red;
15 led-running = &led_status_blue;
16 led-upgrade = &led_status_yellow;
17 label-mac-device = &gmac0;
21 bootargs = "console=ttyS0,115200n8";
25 compatible = "gpio-leds";
27 led_status_red: status_red {
29 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
32 led_status_blue: status_blue {
33 label = "blue:status";
34 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
37 led_status_yellow: status_yellow {
38 label = "yellow:status";
39 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
44 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
45 linux,default-trigger = "dsa-0.0:04:1Gbps";
50 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
51 linux,default-trigger = "dsa-0.0:03:1Gbps";
56 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
57 linux,default-trigger = "dsa-0.0:02:1Gbps";
62 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
63 linux,default-trigger = "dsa-0.0:01:1Gbps";
68 compatible = "gpio-keys";
72 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
73 linux,code = <KEY_RESTART>;
77 reg_usb_vbus: regulator {
78 compatible = "regulator-fixed";
79 regulator-name = "usb_vbus";
80 regulator-min-microvolt = <5000000>;
81 regulator-max-microvolt = <5000000>;
82 gpio = <&gpio 12 GPIO_ACTIVE_HIGH>;
88 vbus-supply = <®_usb_vbus>;
95 compatible = "fixed-partitions";
100 label = "Bootloader";
107 reg = <0x40000 0x40000>;
112 reg = <0x80000 0x40000>;
116 factory: partition@c0000 {
118 reg = <0x0c0000 0x40000>;
124 reg = <0x100000 0x40000>;
128 label = "crash_syslog";
129 reg = <0x140000 0x80000>;
134 reg = <0x1c0000 0x40000>;
138 /* We keep stock xiaomi firmware (kernel0) here */
140 label = "kernel_stock";
141 reg = <0x200000 0x400000>;
146 reg = <0x600000 0x400000>;
151 reg = <0xa00000 0xf580000>;
162 compatible = "mediatek,mt76";
163 reg = <0x0000 0 0 0 0>;
164 mediatek,mtd-eeprom = <&factory 0x0000>;
165 ieee80211-freq-limit = <2400000 2500000>;
171 compatible = "mediatek,mt76";
172 reg = <0x0000 0 0 0 0>;
173 mediatek,mtd-eeprom = <&factory 0x8000>;
174 ieee80211-freq-limit = <5000000 6000000>;
179 nvmem-cells = <&macaddr_factory_e006>;
180 nvmem-cell-names = "mac-address";
186 phy-handle = <ðphy4>;
188 nvmem-cells = <&macaddr_factory_e000>;
189 nvmem-cell-names = "mac-address";
193 ethphy4: ethernet-phy@4 {
219 groups = "jtag", "uart2", "uart3", "wdt";
225 compatible = "nvmem-cells";
226 #address-cells = <1>;
229 macaddr_factory_e000: macaddr@e000 {
233 macaddr_factory_e006: macaddr@e006 {