ramips: fix nvmem-cells for routers based on TP-Link Archer
[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 <dt-bindings/leds/common.h>
4
5 #include "mt7621_xiaomi_mi-router-4a-common.dtsi"
6
7 / {
8 aliases {
9 label-mac-device = &gmac1;
10 };
11
12 leds {
13 compatible = "gpio-leds";
14
15 led_status_blue: status_blue {
16 function = LED_FUNCTION_STATUS;
17 color = <LED_COLOR_ID_BLUE>;
18 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
19 };
20
21 led_status_yellow: status_yellow {
22 function = LED_FUNCTION_STATUS;
23 color = <LED_COLOR_ID_YELLOW>;
24 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
25 };
26 };
27 };
28
29 &wifi0 {
30 nvmem-cells = <&eeprom_factory_8000>;
31 nvmem-cell-names = "eeprom";
32 ieee80211-freq-limit = <5000000 6000000>;
33 };
34
35 &wifi1 {
36 nvmem-cells = <&eeprom_factory_0>;
37 nvmem-cell-names = "eeprom";
38 ieee80211-freq-limit = <2400000 2500000>;
39 };
40
41 &gmac1 {
42 status = "okay";
43 label = "wan";
44 phy-handle = <&ethphy4>;
45
46 nvmem-cells = <&macaddr_factory_e006>;
47 nvmem-cell-names = "mac-address";
48 };
49
50 &mdio {
51 ethphy4: ethernet-phy@4 {
52 reg = <4>;
53 };
54 };
55
56 &switch0 {
57 ports {
58 port@2 {
59 status = "okay";
60 label = "lan2";
61 };
62
63 port@3 {
64 status = "okay";
65 label = "lan1";
66 };
67 };
68 };