1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include <dt-bindings/leds/common.h>
5 #include "mt7628an_xiaomi_mi-router-4.dtsi"
8 compatible = "xiaomi,mi-router-4c", "mediatek,mt7628an-soc";
9 model = "Xiaomi Mi Router 4C";
12 led-boot = &led_power_yellow;
13 led-failsafe = &led_power_yellow;
14 led-running = &led_power_blue;
15 led-upgrade = &led_power_yellow;
16 label-mac-device = ðernet;
20 compatible = "gpio-leds";
22 led_power_blue: power_blue {
23 function = LED_FUNCTION_POWER;
24 color = <LED_COLOR_ID_BLUE>;
25 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
28 led_power_yellow: power_yellow {
29 function = LED_FUNCTION_POWER;
30 color = <LED_COLOR_ID_YELLOW>;
31 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
35 function = LED_FUNCTION_WAN;
36 color = <LED_COLOR_ID_BLUE>;
37 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
45 spi-max-frequency = <40000000>;
51 reg = <0x60000 0x100000>;
57 reg = <0x160000 0xea0000>;
58 compatible = "denx,uimage";
71 nvmem-cells = <&macaddr_factory_28>;
72 nvmem-cell-names = "mac-address";
76 mediatek,portmap = <0x3d>;
77 mediatek,portdisable = <0x29>;