8f88eb175dd60e2658c318c0af1d8a6d0c1ba2dc
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_xiaomi_mi-router-4a-3g-v2.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7621_xiaomi_mi-router-4a-common.dtsi"
4
5 / {
6 aliases {
7 label-mac-device = &gmac1;
8 };
9
10 leds {
11 compatible = "gpio-leds";
12
13 led_status_blue: status_blue {
14 label = "blue:status";
15 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
16 };
17
18 led_status_yellow: status_yellow {
19 label = "yellow:status";
20 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
21 };
22 };
23 };
24
25 &wifi0 {
26 nvmem-cells = <&eeprom_factory_8000>;
27 nvmem-cell-names = "eeprom";
28 ieee80211-freq-limit = <5000000 6000000>;
29 };
30
31 &wifi1 {
32 nvmem-cells = <&eeprom_factory_0>;
33 nvmem-cell-names = "eeprom";
34 ieee80211-freq-limit = <2400000 2500000>;
35 };
36
37 &gmac1 {
38 status = "okay";
39 label = "wan";
40 phy-handle = <&ethphy4>;
41
42 nvmem-cells = <&macaddr_factory_e006>;
43 nvmem-cell-names = "mac-address";
44 };
45
46 &mdio {
47 ethphy4: ethernet-phy@4 {
48 reg = <4>;
49 };
50 };
51
52 &switch0 {
53 ports {
54 port@2 {
55 status = "okay";
56 label = "lan2";
57 };
58
59 port@3 {
60 status = "okay";
61 label = "lan1";
62 };
63 };
64 };