blob: 470e9f3a63d99b03428c1416402c68b565b9fd6e [file] [log] [blame]
developer1b76b3f2021-12-22 19:53:19 +08001/dts-v1/;
2#include "mt7986b.dtsi"
3#include "mt7986b-pinctrl.dtsi"
4#include "mt7986-spim-nand-partition.dtsi"
5/ {
6 model = "MediaTek MT7986b gsw RFB";
developerbd0dd0e2022-04-18 18:28:19 +08007 compatible = "mediatek,mt7986b-2500wan-gsw-spim-snand-rfb";
developer1b76b3f2021-12-22 19:53:19 +08008 chosen {
9 bootargs = "console=ttyS0,115200n1 loglevel=8 \
10 earlycon=uart8250,mmio32,0x11002000";
11 };
12
13 gsw: gsw@0 {
14 compatible = "mediatek,mt753x";
15 mediatek,ethsys = <&ethsys>;
16 #address-cells = <1>;
17 #size-cells = <0>;
18 };
19
20 memory {
21 reg = <0 0x40000000 0 0x10000000>;
22 };
23};
24
25&uart0 {
26 status = "okay";
27};
28
29/* Warning: pins shared with &snand */
30&uart1 {
31 pinctrl-names = "default";
32 pinctrl-0 = <&uart1_pins>;
33 status = "disabled";
34};
35
36/* Warning: pins shared with &spi1 */
37&uart2 {
38 pinctrl-names = "default";
39 pinctrl-0 = <&uart2_pins>;
40 status = "disabled";
41};
42
43&i2c0 {
44 pinctrl-names = "default";
45 pinctrl-0 = <&i2c_pins>;
46 status = "okay";
47};
48
49&watchdog {
50 status = "okay";
51};
52
53&eth {
54 status = "okay";
55
56 gmac0: mac@0 {
57 compatible = "mediatek,eth-mac";
58 reg = <0>;
59 phy-mode = "2500base-x";
60
61 fixed-link {
62 speed = <2500>;
63 full-duplex;
64 pause;
65 };
66 };
67
68 gmac1: mac@1 {
69 compatible = "mediatek,eth-mac";
70 reg = <1>;
71 phy-mode = "2500base-x";
72
73 fixed-link {
74 speed = <2500>;
75 full-duplex;
76 pause;
77 };
78 };
79
80 mdio: mdio-bus {
81 #address-cells = <1>;
82 #size-cells = <0>;
83
84 phy5: phy@5 {
85 compatible = "ethernet-phy-id67c9.de0a";
86 reg = <5>;
87 reset-gpios = <&pio 6 1>;
developer8c5a08b2022-05-06 09:10:38 +080088 reset-assert-us = <600>;
developer1b76b3f2021-12-22 19:53:19 +080089 reset-deassert-us = <20000>;
90 phy-mode = "2500base-x";
91 };
92
93 phy6: phy@6 {
94 compatible = "ethernet-phy-id67c9.de0a";
95 reg = <6>;
96 phy-mode = "2500base-x";
97 };
98
99 };
100};
101
102&gsw {
103 mediatek,mdio = <&mdio>;
104 mediatek,portmap = "lllll";
105 mediatek,mdio_master_pinmux = <1>;
106 reset-gpios = <&pio 5 0>;
107 interrupt-parent = <&pio>;
108 interrupts = <66 IRQ_TYPE_LEVEL_HIGH>;
109 status = "okay";
110
111 port5: port@5 {
112 compatible = "mediatek,mt753x-port";
113 reg = <5>;
114 phy-mode = "sgmii";
115
116 fixed-link {
117 speed = <2500>;
118 full-duplex;
119 };
120
121 };
122
123 port6: port@6 {
124 compatible = "mediatek,mt753x-port";
developer3c21f192022-03-14 20:37:51 +0800125 /* mediatek,ssc-on; */
developer1b76b3f2021-12-22 19:53:19 +0800126 reg = <6>;
127 phy-mode = "sgmii";
128 fixed-link {
129 speed = <2500>;
130 full-duplex;
131 };
132 };
133};
134
135&hnat {
136 mtketh-wan = "eth1";
developer3c21f192022-03-14 20:37:51 +0800137 mtketh-lan = "eth0";
developer1b76b3f2021-12-22 19:53:19 +0800138 mtketh-max-gmac = <2>;
139 status = "okay";
140};
141
142&spi0 {
143 pinctrl-names = "default";
144 pinctrl-0 = <&spi_flash_pins>;
145 cs-gpios = <0>, <0>;
146 status = "okay";
147
148 spi_nor@0 {
149 #address-cells = <1>;
150 #size-cells = <1>;
151 compatible = "jedec,spi-nor";
152 reg = <0>;
153 spi-max-frequency = <20000000>;
154 spi-tx-buswidth = <4>;
155 spi-rx-buswidth = <4>;
156 };
157
158 spi_nand: spi_nand@1 {
159 #address-cells = <1>;
160 #size-cells = <1>;
161 compatible = "spi-nand";
162 reg = <1>;
163 spi-max-frequency = <20000000>;
164 spi-tx-buswidth = <4>;
165 spi-rx-buswidth = <4>;
166 };
167};
168
169/* Warning: pins shared with &uart2 */
170&spi1 {
171 pinctrl-names = "default";
172 pinctrl-0 = <&spic_pins>;
173 status = "okay";
174};
175
176&wbsys {
177 mediatek,mtd-eeprom = <&factory 0x0000>;
178 status = "okay";
179};
180
181&pio {
182 spi_flash_pins: spi-flash-pins-33-to-38 {
183 mux {
184 function = "flash";
185 groups = "spi0", "spi0_wp_hold";
186 };
187 conf-pu {
188 pins = "SPI2_CS", "SPI2_HOLD", "SPI2_WP";
189 drive-strength = <MTK_DRIVE_8mA>;
developerb5a819c2022-05-16 19:16:07 +0800190 bias-pull-up = <MTK_PUPD_SET_R1R0_11>;
developer1b76b3f2021-12-22 19:53:19 +0800191 };
192 conf-pd {
193 pins = "SPI2_CLK", "SPI2_MOSI", "SPI2_MISO";
194 drive-strength = <MTK_DRIVE_8mA>;
developerb5a819c2022-05-16 19:16:07 +0800195 bias-pull-down = <MTK_PUPD_SET_R1R0_11>;
developer1b76b3f2021-12-22 19:53:19 +0800196 };
197
198 };
199};