719d430fd874563a0bc30ead7e89a1b2bc1038e0
[openwrt/openwrt.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 "mt7621_xiaomi_mi-router-4a-common.dtsi"
4
5 / {
6 compatible = "xiaomi,mi-router-4a-gigabit-v2", "mediatek,mt7621-soc";
7 model = "Xiaomi Mi Router 4A Gigabit Edition v2";
8
9 aliases {
10 label-mac-device = &wan;
11 };
12
13 leds {
14 compatible = "gpio-leds";
15
16 led_status_blue: status_blue {
17 label = "blue:status";
18 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
19 };
20
21 led_status_yellow: status_yellow {
22 label = "yellow:status";
23 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
24 };
25
26 wan_blue {
27 label = "blue:wan";
28 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
29 };
30
31 wan_yellow {
32 label = "yellow:wan";
33 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
34 };
35 };
36 };
37
38 /* override EEPROM size to 0x4da8 for MT7613 */
39 &eeprom_factory_8000 {
40 reg = <0x8000 0x4da8>;
41 };
42
43 &partitions {
44 partition@180000 {
45 // size changed against to the common dtsi
46 reg = <0x180000 0xe70000>;
47 };
48
49 partition@ff0000 {
50 label = "Config";
51 reg = <0xff0000 0x10000>;
52 read-only;
53 };
54 };
55
56 &wifi0 {
57 nvmem-cells = <&eeprom_factory_0>;
58 nvmem-cell-names = "eeprom";
59 ieee80211-freq-limit = <2400000 2500000>;
60 };
61
62 &wifi1 {
63 nvmem-cells = <&eeprom_factory_8000>;
64 nvmem-cell-names = "eeprom";
65 ieee80211-freq-limit = <5000000 6000000>;
66 };
67
68 &switch0 {
69 ports {
70 port@1 {
71 status = "okay";
72 label = "lan1";
73 };
74
75 port@2 {
76 status = "okay";
77 label = "lan2";
78 };
79
80 wan: port@3 {
81 status = "okay";
82 label = "wan";
83 nvmem-cells = <&macaddr_factory_e006>;
84 nvmem-cell-names = "mac-address";
85 };
86 };
87 };