ramips: use DT trigger for 2G WiFi on ASUS RT-AC51U
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_zbtlink_zbt-we3526.dts
1 /dts-v1/;
2
3 #include "mt7621.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "zbtlink,zbt-we3526", "mediatek,mt7621-soc";
10 model = "Zbtlink ZBT-WE3526";
11
12 chosen {
13 bootargs = "console=ttyS0,115200";
14 };
15
16 keys {
17 compatible = "gpio-keys";
18
19 reset {
20 label = "reset";
21 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
22 linux,code = <KEY_RESTART>;
23 };
24 };
25 };
26
27 &i2c {
28 status = "okay";
29 };
30
31 &sdhci {
32 status = "okay";
33 };
34
35 &spi0 {
36 status = "okay";
37
38 flash@0 {
39 compatible = "jedec,spi-nor";
40 reg = <0>;
41 spi-max-frequency = <10000000>;
42
43 partitions {
44 compatible = "fixed-partitions";
45 #address-cells = <1>;
46 #size-cells = <1>;
47
48 partition@0 {
49 label = "u-boot";
50 reg = <0x0 0x30000>;
51 read-only;
52 };
53
54 partition@30000 {
55 label = "u-boot-env";
56 reg = <0x30000 0x10000>;
57 read-only;
58 };
59
60 factory: partition@40000 {
61 label = "factory";
62 reg = <0x40000 0x10000>;
63 read-only;
64 };
65
66 firmware: partition@50000 {
67 compatible = "denx,uimage";
68 label = "firmware";
69 reg = <0x50000 0xfb0000>;
70 };
71 };
72 };
73 };
74
75 &pcie {
76 status = "okay";
77 };
78
79 &pcie0 {
80 wifi@0,0 {
81 compatible = "pci14c3,7662";
82 reg = <0x0000 0 0 0 0>;
83 mediatek,mtd-eeprom = <&factory 0x8000>;
84 ieee80211-freq-limit = <5000000 6000000>;
85
86 led {
87 led-sources = <2>;
88 };
89 };
90 };
91
92 &pcie1 {
93 wifi@0,0 {
94 compatible = "pci14c3,7603";
95 reg = <0x0000 0 0 0 0>;
96 mediatek,mtd-eeprom = <&factory 0x0000>;
97 };
98 };
99
100 &gmac0 {
101 mtd-mac-address = <&factory 0xe000>;
102 };
103
104 &switch0 {
105 ports {
106 port@0 {
107 status = "okay";
108 label = "lan1";
109 };
110
111 port@1 {
112 status = "okay";
113 label = "lan2";
114 };
115
116 port@2 {
117 status = "okay";
118 label = "lan3";
119 };
120
121 port@3 {
122 status = "okay";
123 label = "lan4";
124 };
125
126 port@4 {
127 status = "okay";
128 label = "wan";
129 mtd-mac-address = <&factory 0xe006>;
130 };
131 };
132 };
133
134 &state_default {
135 gpio {
136 groups = "wdt";
137 function = "gpio";
138 };
139 };