blob: d7ec46cba666b9ef6be9809de40605af71c664a4 [file] [log] [blame]
developer565bacb2021-09-28 21:26:32 +08001/dts-v1/;
2#include "mt7986a.dtsi"
3#include "mt7986a-pinctrl.dtsi"
4#include "mt7986-snfi-nand-partition.dtsi"
5/ {
6 model = "MediaTek MT7986a RFB";
7 compatible = "mediatek,mt7986a-snfi-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
developerbe797a32021-12-16 16:56:09 +080017 sound_wm8960 {
18 compatible = "mediatek,mt79xx-wm8960-machine";
developer565bacb2021-09-28 21:26:32 +080019 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 };
developerbe797a32021-12-16 16:56:09 +080027
28 sound_si3218x {
29 compatible = "mediatek,mt79xx-si3218x-machine";
30 mediatek,platform = <&afe>;
31 mediatek,ext-codec = <&proslic_spi>;
32 status = "okay";
33 };
developer565bacb2021-09-28 21:26:32 +080034};
35
developer209e52d2022-06-30 11:32:57 +080036&fan {
37 pwms = <&pwm 1 50000 0>;
38 status = "disabled";
39};
40
developer565bacb2021-09-28 21:26:32 +080041&pwm {
42 pinctrl-names = "default";
43 pinctrl-0 = <&pwm0_pin &pwm1_pin_g1>;
44 status = "okay";
45};
46
47&uart0 {
48 status = "okay";
49};
50
51&uart1 {
52 pinctrl-names = "default";
53 pinctrl-0 = <&uart1_pins>;
54 status = "okay";
55};
56
57&uart2 {
58 pinctrl-names = "default";
59 pinctrl-0 = <&uart2_pins>;
60 status = "okay";
61};
62
63&i2c0 {
64 pinctrl-names = "default";
65 pinctrl-0 = <&i2c_pins>;
66 status = "okay";
67
68 wm8960: wm8960@1a {
69 compatible = "wlf,wm8960";
70 reg = <0x1a>;
71 };
72};
73
74&auxadc {
75 status = "okay";
76};
77
78&watchdog {
79 status = "okay";
80};
81
82&eth {
83 status = "okay";
84
85 gmac0: mac@0 {
86 compatible = "mediatek,eth-mac";
87 reg = <0>;
88 phy-mode = "2500base-x";
89
90 fixed-link {
91 speed = <2500>;
92 full-duplex;
93 pause;
94 };
95 };
96
97 gmac1: mac@1 {
98 compatible = "mediatek,eth-mac";
99 reg = <1>;
100 phy-mode = "2500base-x";
101
102 fixed-link {
103 speed = <2500>;
104 full-duplex;
105 pause;
106 };
107 };
108
109 mdio: mdio-bus {
110 #address-cells = <1>;
111 #size-cells = <0>;
112
113 phy5: phy@5 {
114 compatible = "ethernet-phy-id67c9.de0a";
115 reg = <5>;
116 reset-gpios = <&pio 6 1>;
developer8c5a08b2022-05-06 09:10:38 +0800117 reset-assert-us = <600>;
developer565bacb2021-09-28 21:26:32 +0800118 reset-deassert-us = <20000>;
119 phy-mode = "2500base-x";
120 };
121
122 phy6: phy@6 {
123 compatible = "ethernet-phy-id67c9.de0a";
124 reg = <6>;
125 phy-mode = "2500base-x";
126 };
127
128 switch@0 {
129 compatible = "mediatek,mt7531";
130 reg = <31>;
131 reset-gpios = <&pio 5 0>;
132
133 ports {
134 #address-cells = <1>;
135 #size-cells = <0>;
136
137 port@0 {
138 reg = <0>;
139 label = "lan0";
140 };
141
142 port@1 {
143 reg = <1>;
144 label = "lan1";
145 };
146
147 port@2 {
148 reg = <2>;
149 label = "lan2";
150 };
151
152 port@3 {
153 reg = <3>;
154 label = "lan3";
155 };
156
157 port@6 {
158 reg = <6>;
159 label = "cpu";
160 ethernet = <&gmac0>;
161 phy-mode = "2500base-x";
162
163 fixed-link {
164 speed = <2500>;
165 full-duplex;
166 pause;
167 };
168 };
169 };
170 };
171 };
172};
173
174&hnat {
175 mtketh-wan = "eth1";
176 mtketh-lan = "lan";
177 mtketh-max-gmac = <2>;
178 status = "okay";
179};
180
181&snand {
182 pinctrl-names = "default";
183 pinctrl-0 = <&snfi_pins>;
184 mediatek,quad-spi;
185 status = "okay";
186
187 partitions {
188 compatible = "fixed-partitions";
189 #address-cells = <1>;
190 #size-cells = <1>;
191 };
192};
193
194&spi1 {
195 pinctrl-names = "default";
196 pinctrl-0 = <&spic_pins_g2>;
197 status = "okay";
developerbe797a32021-12-16 16:56:09 +0800198
199 proslic_spi: proslic_spi@0 {
200 compatible = "silabs,proslic_spi";
201 reg = <0>;
202 spi-max-frequency = <10000000>;
203 spi-cpha = <1>;
204 spi-cpol = <1>;
205 channel_count = <1>;
206 debug_level = <4>; /* 1 = TRC, 2 = DBG, 4 = ERR */
207 reset_gpio = <&pio 7 0>;
208 ig,enable-spi = <1>; /* 1: Enable, 0: Disable */
209 };
developer565bacb2021-09-28 21:26:32 +0800210};
211
212&pcie0 {
213 pinctrl-names = "default";
214 pinctrl-0 = <&pcie0_pins>;
215 status = "okay";
216};
217
218&wbsys {
219 mediatek,mtd-eeprom = <&factory 0x0000>;
220 status = "okay";
221};
222
223&pio {
224 snfi_pins: snfi-pins-23-to-28 {
225 mux {
226 function = "flash";
227 groups = "snfi";
228 };
229 conf-clk {
230 pins = "SPI0_CLK";
231 drive-strength = <MTK_DRIVE_8mA>;
232 mediatek,pull-down-adv = <0>; /* bias-disable */
233 };
234 conf-pu {
235 pins = "SPI0_CS", "SPI0_HOLD", "SPI0_WP";
236 drive-strength = <MTK_DRIVE_6mA>;
237 mediatek,pull-up-adv = <0>; /* bias-disable */
238 };
239 conf-pd {
240 pins = "SPI0_MOSI", "SPI0_MISO";
241 drive-strength = <MTK_DRIVE_6mA>;
242 mediatek,pull-down-adv = <0>; /* bias-disable */
243 };
244 };
245};