ramips: mt7621-dts: describe switch PHYs and adjust PHY muxing
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_xiaomi_router-ac2100.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7621_xiaomi_nand_128m.dtsi"
4
5 /* override EEPROM size to 0x4da8 for MT7615 */
6 &eeprom_factory_8000 {
7 reg = <0x8000 0x4da8>;
8 };
9
10 &pcie {
11 status = "okay";
12 };
13
14 &pcie0 {
15 wifi@0,0 {
16 compatible = "mediatek,mt76";
17 reg = <0x0000 0 0 0 0>;
18 nvmem-cells = <&eeprom_factory_8000>;
19 nvmem-cell-names = "eeprom";
20 ieee80211-freq-limit = <5000000 6000000>;
21 };
22 };
23
24 &pcie1 {
25 wifi@0,0 {
26 compatible = "mediatek,mt76";
27 reg = <0x0000 0 0 0 0>;
28 nvmem-cells = <&eeprom_factory_0>;
29 nvmem-cell-names = "eeprom";
30 ieee80211-freq-limit = <2400000 2500000>;
31 };
32 };
33
34 &gmac0 {
35 nvmem-cells = <&macaddr_factory_e000>;
36 nvmem-cell-names = "mac-address";
37 };
38
39 &gmac1 {
40 status = "okay";
41 label = "wan";
42 phy-handle = <&ethphy0>;
43
44 nvmem-cells = <&macaddr_factory_e006>;
45 nvmem-cell-names = "mac-address";
46 };
47
48 &ethphy0 {
49 /delete-property/ interrupts;
50 };
51
52 &switch0 {
53 ports {
54 port@2 {
55 status = "okay";
56 label = "lan1";
57 };
58
59 port@3 {
60 status = "okay";
61 label = "lan2";
62 };
63
64 port@4 {
65 status = "okay";
66 label = "lan3";
67 };
68 };
69 };
70
71 &state_default {
72 gpio {
73 groups = "uart2", "uart3", "wdt";
74 function = "gpio";
75 };
76 };