blob: 4235ce9588221ee483184be8f6faa9469c927062 [file] [log] [blame]
developer565bacb2021-09-28 21:26:32 +08001/dts-v1/;
2#include "mt7986a.dtsi"
3#include "mt7986a-pinctrl.dtsi"
4#include "mt7986-spim-nand-partition.dtsi"
5/ {
6 model = "MediaTek MT7986a RFB";
7 compatible = "mediatek,mt7986a-2500wan-spim-snand-rfb";
8 chosen {
9 bootargs = "console=ttyS0,115200n1 loglevel=8 \
10 earlycon=uart8250,mmio32,0x11002000";
11 };
12
13 memory {
14 reg = <0 0x40000000 0 0x10000000>;
15 };
16
17 sound {
18 compatible = "mediatek,mt7986-wm8960-machine";
19 mediatek,platform = <&afe>;
20 audio-routing = "Headphone", "HP_L",
21 "Headphone", "HP_R",
22 "LINPUT1", "AMIC",
23 "RINPUT1", "AMIC";
24 mediatek,audio-codec = <&wm8960>;
25 status = "okay";
26 };
27};
28
29&pwm {
30 pinctrl-names = "default";
31 pinctrl-0 = <&pwm0_pin &pwm1_pin_g1>;
32 status = "okay";
33};
34
35&uart0 {
36 status = "okay";
37};
38
39&uart1 {
40 pinctrl-names = "default";
41 pinctrl-0 = <&uart1_pins>;
42 status = "okay";
43};
44
45&uart2 {
46 pinctrl-names = "default";
47 pinctrl-0 = <&uart2_pins>;
48 status = "okay";
49};
50
51&i2c0 {
52 pinctrl-names = "default";
53 pinctrl-0 = <&i2c_pins>;
54 status = "okay";
55
56 wm8960: wm8960@1a {
57 compatible = "wlf,wm8960";
58 reg = <0x1a>;
59 };
60};
61
62&auxadc {
63 status = "okay";
64};
65
66&watchdog {
67 status = "okay";
68};
69
70&eth {
71 status = "okay";
72
73 gmac0: mac@0 {
74 compatible = "mediatek,eth-mac";
75 reg = <0>;
76 phy-mode = "2500base-x";
77
78 fixed-link {
79 speed = <2500>;
80 full-duplex;
81 pause;
82 };
83 };
84
85 gmac1: mac@1 {
86 compatible = "mediatek,eth-mac";
87 reg = <1>;
88 phy-mode = "2500base-x";
89
90 fixed-link {
91 speed = <2500>;
92 full-duplex;
93 pause;
94 };
95 };
96
97 mdio: mdio-bus {
98 #address-cells = <1>;
99 #size-cells = <0>;
100
101 phy5: phy@5 {
102 compatible = "ethernet-phy-id67c9.de0a";
103 reg = <5>;
104 reset-gpios = <&pio 6 1>;
developer8c5a08b2022-05-06 09:10:38 +0800105 reset-assert-us = <600>;
developer565bacb2021-09-28 21:26:32 +0800106 reset-deassert-us = <20000>;
107 phy-mode = "2500base-x";
108 };
109
110 phy6: phy@6 {
111 compatible = "ethernet-phy-id67c9.de0a";
112 reg = <6>;
113 phy-mode = "2500base-x";
114 };
115
116 switch@0 {
117 compatible = "mediatek,mt7531";
118 reg = <31>;
119 reset-gpios = <&pio 5 0>;
120
121 ports {
122 #address-cells = <1>;
123 #size-cells = <0>;
124
125 port@0 {
126 reg = <0>;
127 label = "lan0";
128 };
129
130 port@1 {
131 reg = <1>;
132 label = "lan1";
133 };
134
135 port@2 {
136 reg = <2>;
137 label = "lan2";
138 };
139
140 port@3 {
141 reg = <3>;
142 label = "lan3";
143 };
144
145 port@4 {
146 reg = <4>;
147 label = "lan4";
148 };
149
150 port@5 {
151 reg = <5>;
152 label = "lan5";
153 phy-mode = "2500base-x";
154
155 fixed-link {
156 speed = <2500>;
157 full-duplex;
158 pause;
159 };
160 };
161
162 port@6 {
163 reg = <6>;
164 label = "cpu";
165 ethernet = <&gmac0>;
166 phy-mode = "2500base-x";
167
168 fixed-link {
169 speed = <2500>;
170 full-duplex;
171 pause;
172 };
173 };
174 };
175 };
176 };
177};
178
179&hnat {
180 mtketh-wan = "eth1";
181 mtketh-lan = "lan";
182 mtketh-max-gmac = <2>;
183 status = "okay";
184};
185
186&spi0 {
187 pinctrl-names = "default";
188 pinctrl-0 = <&spi_flash_pins>;
189 cs-gpios = <0>, <0>;
190 status = "okay";
191
192 spi_nor@0 {
193 #address-cells = <1>;
194 #size-cells = <1>;
195 compatible = "jedec,spi-nor";
196 reg = <0>;
197 spi-max-frequency = <20000000>;
198 spi-tx-buswidth = <4>;
199 spi-rx-buswidth = <4>;
200 };
201
202 spi_nand: spi_nand@1 {
203 #address-cells = <1>;
204 #size-cells = <1>;
205 compatible = "spi-nand";
206 reg = <1>;
207 spi-max-frequency = <20000000>;
208 spi-tx-buswidth = <4>;
209 spi-rx-buswidth = <4>;
210 };
211};
212
213&spi1 {
214 pinctrl-names = "default";
215 pinctrl-0 = <&spic_pins_g2>;
216 status = "okay";
217};
218
219&pcie0 {
220 pinctrl-names = "default";
221 pinctrl-0 = <&pcie0_pins>;
222 status = "okay";
223};
224
225&wbsys {
226 mediatek,mtd-eeprom = <&factory 0x0000>;
227 status = "okay";
developere138bcd2021-12-06 09:20:47 +0800228 pinctrl-names = "default", "dbdc";
229 pinctrl-0 = <&wf_2g_5g_pins>;
230 pinctrl-1 = <&wf_dbdc_pins>;
developer565bacb2021-09-28 21:26:32 +0800231};
232
233&pio {
234 spi_flash_pins: spi-flash-pins-33-to-38 {
235 mux {
236 function = "flash";
237 groups = "spi0", "spi0_wp_hold";
238 };
239 conf-pu {
240 pins = "SPI2_CS", "SPI2_HOLD", "SPI2_WP";
241 drive-strength = <MTK_DRIVE_8mA>;
developerb5a819c2022-05-16 19:16:07 +0800242 bias-pull-up = <MTK_PUPD_SET_R1R0_11>;
developer565bacb2021-09-28 21:26:32 +0800243 };
244 conf-pd {
245 pins = "SPI2_CLK", "SPI2_MOSI", "SPI2_MISO";
246 drive-strength = <MTK_DRIVE_8mA>;
developerb5a819c2022-05-16 19:16:07 +0800247 bias-pull-down = <MTK_PUPD_SET_R1R0_11>;
developer565bacb2021-09-28 21:26:32 +0800248 };
249 };
developere138bcd2021-12-06 09:20:47 +0800250
251 wf_2g_5g_pins: wf_2g_5g-pins {
252 mux {
253 function = "wifi";
254 groups = "wf_2g", "wf_5g";
255 };
256 conf {
257 pins = "WF0_HB1", "WF0_HB2", "WF0_HB3", "WF0_HB4",
258 "WF0_HB0", "WF0_HB0_B", "WF0_HB5", "WF0_HB6",
259 "WF0_HB7", "WF0_HB8", "WF0_HB9", "WF0_HB10",
260 "WF0_TOP_CLK", "WF0_TOP_DATA", "WF1_HB1",
261 "WF1_HB2", "WF1_HB3", "WF1_HB4", "WF1_HB0",
262 "WF1_HB5", "WF1_HB6", "WF1_HB7", "WF1_HB8",
263 "WF1_TOP_CLK", "WF1_TOP_DATA";
264 drive-strength = <MTK_DRIVE_4mA>;
265 };
266 };
267
268 wf_dbdc_pins: wf_dbdc-pins {
269 mux {
270 function = "wifi";
271 groups = "wf_dbdc";
272 };
273 conf {
274 pins = "WF0_HB1", "WF0_HB2", "WF0_HB3", "WF0_HB4",
275 "WF0_HB0", "WF0_HB0_B", "WF0_HB5", "WF0_HB6",
276 "WF0_HB7", "WF0_HB8", "WF0_HB9", "WF0_HB10",
277 "WF0_TOP_CLK", "WF0_TOP_DATA", "WF1_HB1",
278 "WF1_HB2", "WF1_HB3", "WF1_HB4", "WF1_HB0",
279 "WF1_HB5", "WF1_HB6", "WF1_HB7", "WF1_HB8",
280 "WF1_TOP_CLK", "WF1_TOP_DATA";
281 drive-strength = <MTK_DRIVE_4mA>;
282 };
283 };
developer565bacb2021-09-28 21:26:32 +0800284};