ramips: mt7621: add support for Xiaomi Mi Router 4A Gigabit v2
[openwrt/staging/wigyori.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 mediatek,mtd-eeprom = <&factory 0x8000>;
27 ieee80211-freq-limit = <5000000 6000000>;
28 };
29
30 &wifi1 {
31 mediatek,mtd-eeprom = <&factory 0x0000>;
32 ieee80211-freq-limit = <2400000 2500000>;
33 };
34
35 &gmac1 {
36 status = "okay";
37 label = "wan";
38 phy-handle = <&ethphy4>;
39
40 nvmem-cells = <&macaddr_factory_e006>;
41 nvmem-cell-names = "mac-address";
42 };
43
44 &mdio {
45 ethphy4: ethernet-phy@4 {
46 reg = <4>;
47 };
48 };
49
50 &switch0 {
51 ports {
52 port@2 {
53 status = "okay";
54 label = "lan2";
55 };
56
57 port@3 {
58 status = "okay";
59 label = "lan1";
60 };
61 };
62 };