1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include <dt-bindings/leds/common.h>
5 #include "mt7621_xiaomi_nand_128m.dtsi"
8 compatible = "xiaomi,mi-router-4", "mediatek,mt7621-soc";
9 model = "Xiaomi Mi Router 4";
12 led-boot = &led_status_yellow;
13 led-failsafe = &led_status_red;
14 led-running = &led_status_blue;
15 led-upgrade = &led_status_yellow;
16 label-mac-device = &gmac0;
20 compatible = "gpio-leds";
22 led_status_red: status_red {
23 function = LED_FUNCTION_STATUS;
24 color = <LED_COLOR_ID_RED>;
25 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
28 led_status_blue: status_blue {
29 function = LED_FUNCTION_STATUS;
30 color = <LED_COLOR_ID_BLUE>;
31 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
34 led_status_yellow: status_yellow {
35 function = LED_FUNCTION_STATUS;
36 color = <LED_COLOR_ID_YELLOW>;
37 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
45 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
46 linux,code = <KEY_WPS_BUTTON>;
56 compatible = "pci14c3,7603";
57 reg = <0x0000 0 0 0 0>;
58 nvmem-cells = <&eeprom_factory_0>;
59 nvmem-cell-names = "eeprom";
60 ieee80211-freq-limit = <2400000 2500000>;
66 compatible = "pci14c3,7662";
67 reg = <0x0000 0 0 0 0>;
68 nvmem-cells = <&eeprom_factory_8000>;
69 nvmem-cell-names = "eeprom";
70 ieee80211-freq-limit = <5000000 6000000>;
75 nvmem-cells = <&macaddr_factory_e000>;
76 nvmem-cell-names = "mac-address";
82 phy-handle = <ðphy4>;
84 nvmem-cells = <&macaddr_factory_e006>;
85 nvmem-cell-names = "mac-address";
89 /delete-property/ interrupts;
108 groups = "jtag", "uart2", "uart3", "wdt";