ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / mt7621_xiaomi_mi-router-4a-gigabit-v2.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include <dt-bindings/leds/common.h>
4
5 #include "mt7621_xiaomi_mi-router-4a-common.dtsi"
6
7 / {
8 compatible = "xiaomi,mi-router-4a-gigabit-v2", "mediatek,mt7621-soc";
9 model = "Xiaomi Mi Router 4A Gigabit Edition v2";
10
11 aliases {
12 label-mac-device = &wan;
13 };
14
15 leds {
16 compatible = "gpio-leds";
17
18 led_status_blue: status_blue {
19 function = LED_FUNCTION_STATUS;
20 color = <LED_COLOR_ID_BLUE>;
21 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
22 };
23
24 led_status_yellow: status_yellow {
25 function = LED_FUNCTION_STATUS;
26 color = <LED_COLOR_ID_YELLOW>;
27 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
28 };
29
30 wan_blue {
31 function = LED_FUNCTION_WAN;
32 color = <LED_COLOR_ID_BLUE>;
33 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
34 };
35
36 wan_yellow {
37 function = LED_FUNCTION_WAN;
38 color = <LED_COLOR_ID_YELLOW>;
39 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
40 };
41 };
42 };
43
44 /* override EEPROM size to 0x4da8 for MT7613 */
45 &eeprom_factory_8000 {
46 reg = <0x8000 0x4da8>;
47 };
48
49 &partitions {
50 partition@180000 {
51 // size changed against to the common dtsi
52 reg = <0x180000 0xe70000>;
53 };
54
55 partition@ff0000 {
56 label = "Config";
57 reg = <0xff0000 0x10000>;
58 read-only;
59 };
60 };
61
62 &wifi0 {
63 nvmem-cells = <&eeprom_factory_0>;
64 nvmem-cell-names = "eeprom";
65 ieee80211-freq-limit = <2400000 2500000>;
66 };
67
68 &wifi1 {
69 nvmem-cells = <&eeprom_factory_8000>;
70 nvmem-cell-names = "eeprom";
71 ieee80211-freq-limit = <5000000 6000000>;
72 };
73
74 &switch0 {
75 ports {
76 port@1 {
77 status = "okay";
78 label = "lan1";
79 };
80
81 port@2 {
82 status = "okay";
83 label = "lan2";
84 };
85
86 wan: port@3 {
87 status = "okay";
88 label = "wan";
89 nvmem-cells = <&macaddr_factory_e006>;
90 nvmem-cell-names = "mac-address";
91 };
92 };
93 };