ramips: add support for Z-ROUTER ZR-2660
[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 &mdio {
49 ethphy0: ethernet-phy@0 {
50 reg = <0>;
51 };
52 };
53
54 &switch0 {
55 ports {
56 port@2 {
57 status = "okay";
58 label = "lan1";
59 };
60
61 port@3 {
62 status = "okay";
63 label = "lan2";
64 };
65
66 port@4 {
67 status = "okay";
68 label = "lan3";
69 };
70 };
71 };
72
73 &state_default {
74 gpio {
75 groups = "uart2", "uart3", "wdt";
76 function = "gpio";
77 };
78 };