blob: 4cc82f7747b673017a9235b8f02a20253300150f [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-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>;
105 reset-deassert-us = <20000>;
106 phy-mode = "2500base-x";
107 };
108
109 phy6: phy@6 {
110 compatible = "ethernet-phy-id67c9.de0a";
111 reg = <6>;
112 phy-mode = "2500base-x";
113 };
114
115 switch@0 {
116 compatible = "mediatek,mt7531";
117 reg = <31>;
118 reset-gpios = <&pio 5 0>;
119
120 ports {
121 #address-cells = <1>;
122 #size-cells = <0>;
123
124 port@0 {
125 reg = <0>;
126 label = "lan0";
127 };
128
129 port@1 {
130 reg = <1>;
131 label = "lan1";
132 };
133
134 port@2 {
135 reg = <2>;
136 label = "lan2";
137 };
138
139 port@3 {
140 reg = <3>;
141 label = "lan3";
142 };
143
144 port@6 {
145 reg = <6>;
146 label = "cpu";
147 ethernet = <&gmac0>;
148 phy-mode = "2500base-x";
149
150 fixed-link {
151 speed = <2500>;
152 full-duplex;
153 pause;
154 };
155 };
156 };
157 };
158 };
159};
160
161&hnat {
162 mtketh-wan = "eth1";
163 mtketh-lan = "lan";
164 mtketh-max-gmac = <2>;
165 status = "okay";
166};
167
168&spi0 {
169 pinctrl-names = "default";
170 pinctrl-0 = <&spi_flash_pins>;
171 cs-gpios = <0>, <0>;
172 status = "okay";
173
174 spi_nor@0 {
175 #address-cells = <1>;
176 #size-cells = <1>;
177 compatible = "jedec,spi-nor";
178 reg = <0>;
179 spi-max-frequency = <20000000>;
180 spi-tx-buswidth = <4>;
181 spi-rx-buswidth = <4>;
182 };
183
184 spi_nand: spi_nand@1 {
185 #address-cells = <1>;
186 #size-cells = <1>;
187 compatible = "spi-nand";
188 reg = <1>;
189 spi-max-frequency = <20000000>;
190 spi-tx-buswidth = <4>;
191 spi-rx-buswidth = <4>;
192 };
193};
194
195&spi1 {
196 pinctrl-names = "default";
197 pinctrl-0 = <&spic_pins_g2>;
198 status = "okay";
199};
200
201&pcie0 {
202 pinctrl-names = "default";
203 pinctrl-0 = <&pcie0_pins>;
204 status = "okay";
205};
206
207&wbsys {
208 mediatek,mtd-eeprom = <&factory 0x0000>;
209 status = "okay";
210};
211
212&pio {
213 spi_flash_pins: spi-flash-pins-33-to-38 {
214 mux {
215 function = "flash";
216 groups = "spi0", "spi0_wp_hold";
217 };
218 conf-pu {
219 pins = "SPI2_CS", "SPI2_HOLD", "SPI2_WP";
220 drive-strength = <MTK_DRIVE_8mA>;
221 mediatek,pull-up-adv = <0>; /* bias-disable */
222 };
223 conf-pd {
224 pins = "SPI2_CLK", "SPI2_MOSI", "SPI2_MISO";
225 drive-strength = <MTK_DRIVE_8mA>;
226 mediatek,pull-down-adv = <0>; /* bias-disable */
227 };
228 };
229};