blob: f8ff924c731b477b7fd030f3ced05f2014c04d50 [file] [log] [blame]
developerf9a2c032021-09-30 17:18:10 +08001/dts-v1/;
2#include "mt7986b.dtsi"
3#include "mt7986b-pinctrl.dtsi"
4#include "mt7986-snfi-nand-partition.dtsi"
5/ {
6 model = "MediaTek MT7986b RFB";
7 compatible = "mediatek,mt7986b-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};
17
18&uart0 {
19 status = "okay";
20};
21
22/* Warning: pins shared with &snand */
23&uart1 {
24 pinctrl-names = "default";
25 pinctrl-0 = <&uart1_pins>;
26 status = "disabled";
27};
28
29/* Warning: pins shared with &spi1 */
30&uart2 {
31 pinctrl-names = "default";
32 pinctrl-0 = <&uart2_pins>;
33 status = "disabled";
34};
35
36&i2c0 {
37 pinctrl-names = "default";
38 pinctrl-0 = <&i2c_pins>;
39 status = "okay";
40};
41
42&watchdog {
43 status = "okay";
44};
45
46&eth {
47 status = "okay";
48
49 gmac0: mac@0 {
50 compatible = "mediatek,eth-mac";
51 reg = <0>;
52 phy-mode = "2500base-x";
developerf0a1e452022-08-15 12:06:11 +080053 phy-handle = <&phy5>;
developerf9a2c032021-09-30 17:18:10 +080054 };
55
56 gmac1: mac@1 {
57 compatible = "mediatek,eth-mac";
58 reg = <1>;
59 phy-mode = "2500base-x";
developerf0a1e452022-08-15 12:06:11 +080060 phy-handle = <&phy6>;
developerf9a2c032021-09-30 17:18:10 +080061 };
62
63 mdio: mdio-bus {
64 #address-cells = <1>;
65 #size-cells = <0>;
66
developerf0a1e452022-08-15 12:06:11 +080067 reset-gpios = <&pio 6 1>;
68 reset-delay-us = <600>;
69
developerf9a2c032021-09-30 17:18:10 +080070 phy5: phy@5 {
developerf0a1e452022-08-15 12:06:11 +080071 compatible = "ethernet-phy-ieee802.3-c45";
developerf9a2c032021-09-30 17:18:10 +080072 reg = <5>;
developerf9a2c032021-09-30 17:18:10 +080073 };
74
75 phy6: phy@6 {
developerf0a1e452022-08-15 12:06:11 +080076 compatible = "ethernet-phy-ieee802.3-c45";
developerf9a2c032021-09-30 17:18:10 +080077 reg = <6>;
developerf9a2c032021-09-30 17:18:10 +080078 };
79
80 switch@0 {
81 compatible = "mediatek,mt7531";
82 reg = <31>;
83 reset-gpios = <&pio 5 0>;
84
85 ports {
86 #address-cells = <1>;
87 #size-cells = <0>;
88
89 port@0 {
90 reg = <0>;
91 label = "lan0";
92 };
93
94 port@1 {
95 reg = <1>;
96 label = "lan1";
97 };
98
99 port@2 {
100 reg = <2>;
101 label = "lan2";
102 };
103
104 port@3 {
105 reg = <3>;
106 label = "lan3";
107 };
108
109 port@4 {
110 reg = <4>;
111 label = "lan4";
112 };
113
114 port@5 {
115 reg = <5>;
116 label = "lan5";
117 phy-mode = "2500base-x";
118
119 fixed-link {
120 speed = <2500>;
121 full-duplex;
122 pause;
123 };
124 };
125
126 port@6 {
127 reg = <6>;
128 label = "cpu";
129 ethernet = <&gmac0>;
130 phy-mode = "2500base-x";
131
132 fixed-link {
133 speed = <2500>;
134 full-duplex;
135 pause;
136 };
137 };
138 };
139 };
140 };
141};
142
143&hnat {
144 mtketh-wan = "eth1";
145 mtketh-lan = "lan";
146 mtketh-max-gmac = <2>;
147 status = "okay";
148};
149
150/* Warning: pins shared with &uart1 */
151&snand {
152 pinctrl-names = "default";
153 pinctrl-0 = <&snfi_pins>;
154 mediatek,quad-spi;
155 status = "okay";
156
157 partitions {
158 compatible = "fixed-partitions";
159 #address-cells = <1>;
160 #size-cells = <1>;
161 };
162};
163
164/* Warning: pins shared with &uart2 */
165&spi1 {
166 pinctrl-names = "default";
167 pinctrl-0 = <&spic_pins>;
168 status = "okay";
169};
170
171&wbsys {
172 mediatek,mtd-eeprom = <&factory 0x0000>;
173 status = "okay";
174};
175
176&pio {
177 snfi_pins: snfi-pins-23-to-28 {
178 mux {
179 function = "flash";
180 groups = "snfi";
181 };
182 conf-clk {
183 pins = "SPI0_CLK";
184 drive-strength = <MTK_DRIVE_8mA>;
185 mediatek,pull-down-adv = <0>; /* bias-disable */
186 };
187 conf-pu {
188 pins = "SPI0_CS", "SPI0_HOLD", "SPI0_WP";
189 drive-strength = <MTK_DRIVE_6mA>;
190 mediatek,pull-up-adv = <0>; /* bias-disable */
191 };
192 conf-pd {
193 pins = "SPI0_MOSI", "SPI0_MISO";
194 drive-strength = <MTK_DRIVE_6mA>;
195 mediatek,pull-down-adv = <0>; /* bias-disable */
196 };
197 };
198};