1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include <dt-bindings/leds/common.h>
5 #include "mt7621_xiaomi_mi-router-4a-common.dtsi"
8 compatible = "xiaomi,mi-router-4a-gigabit-v2", "mediatek,mt7621-soc";
9 model = "Xiaomi Mi Router 4A Gigabit Edition v2";
12 label-mac-device = &wan;
16 compatible = "gpio-leds";
18 led_status_blue: status_blue {
19 function = LED_FUNCTION_STATUS;
20 color = <LED_COLOR_ID_BLUE>;
21 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
24 led_status_yellow: status_yellow {
25 function = LED_FUNCTION_STATUS;
26 color = <LED_COLOR_ID_YELLOW>;
27 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
31 function = LED_FUNCTION_WAN;
32 color = <LED_COLOR_ID_BLUE>;
33 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
37 function = LED_FUNCTION_WAN;
38 color = <LED_COLOR_ID_YELLOW>;
39 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
44 /* override EEPROM size to 0x4da8 for MT7613 */
45 &eeprom_factory_8000 {
46 reg = <0x8000 0x4da8>;
51 // size changed against to the common dtsi
52 reg = <0x180000 0xe70000>;
57 reg = <0xff0000 0x10000>;
63 nvmem-cells = <&eeprom_factory_0>;
64 nvmem-cell-names = "eeprom";
65 ieee80211-freq-limit = <2400000 2500000>;
69 nvmem-cells = <&eeprom_factory_8000>;
70 nvmem-cell-names = "eeprom";
71 ieee80211-freq-limit = <5000000 6000000>;
89 nvmem-cells = <&macaddr_factory_e006>;
90 nvmem-cell-names = "mac-address";