mediatek: remove redundant flash entry from dtsi
[openwrt/staging/dedeckeh.git] / target / linux / mediatek / dts / mt7622-ruijie-rg-ew3200.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 /dts-v1/;
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/gpio/gpio.h>
6
7 #include "mt7622.dtsi"
8 #include "mt6380.dtsi"
9
10 / {
11 aliases {
12 ethernet0 = &gmac0;
13 label-mac-device = &gmac0;
14 led-boot = &led_system;
15 led-failsafe = &led_system;
16 led-running = &led_system;
17 led-upgrade = &led_system;
18 serial0 = &uart0;
19 };
20
21 chosen {
22 stdout-path = "serial0:115200n1";
23 bootargs = "console=ttyS0,115200n1 swiotlb=512";
24 };
25
26 cpus {
27 cpu@0 {
28 proc-supply = <&mt6380_vcpu_reg>;
29 sram-supply = <&mt6380_vm_reg>;
30 };
31
32 cpu@1 {
33 proc-supply = <&mt6380_vcpu_reg>;
34 sram-supply = <&mt6380_vm_reg>;
35 };
36 };
37
38 gpio-keys {
39 compatible = "gpio-keys";
40
41 reset {
42 label = "reset";
43 linux,code = <KEY_RESTART>;
44 gpios = <&pio 0 GPIO_ACTIVE_LOW>;
45 };
46
47 wps {
48 label = "wps";
49 linux,code = <KEY_WPS_BUTTON>;
50 gpios = <&pio 102 GPIO_ACTIVE_LOW>;
51 };
52 };
53
54 gpio-leds {
55 compatible = "gpio-leds";
56
57 mesh_green {
58 label = "green:mesh";
59 gpios = <&pio 79 GPIO_ACTIVE_LOW>;
60 };
61
62 mesh_red {
63 label = "red:mesh";
64 gpios = <&pio 82 GPIO_ACTIVE_LOW>;
65 };
66
67 led_system: system_blue {
68 label = "blue:system";
69 gpios = <&pio 81 GPIO_ACTIVE_LOW>;
70 default-state = "on";
71 };
72 };
73
74 memory {
75 reg = <0 0x40000000 0 0x40000000>;
76 };
77 };
78
79 &eth {
80 status = "okay";
81
82 pinctrl-names = "default";
83 pinctrl-0 = <&eth_pins>;
84
85 gmac0: mac@0 {
86 compatible = "mediatek,eth-mac";
87 reg = <0>;
88 phy-connection-type = "2500base-x";
89 fixed-link {
90 speed = <2500>;
91 full-duplex;
92 pause;
93 };
94 };
95
96 mdio: mdio-bus {
97 #address-cells = <1>;
98 #size-cells = <0>;
99
100 switch@0 {
101 compatible = "mediatek,mt7531";
102 reg = <0>;
103 reset-gpios = <&pio 54 GPIO_ACTIVE_HIGH>;
104 interrupt-controller;
105 #interrupt-cells = <2>;
106 interrupt-parent = <&pio>;
107 interrupts = <53 IRQ_TYPE_LEVEL_HIGH>;
108
109 ports {
110 #address-cells = <1>;
111 #size-cells = <0>;
112
113 port@0 {
114 reg = <0>;
115 label = "lan1";
116 };
117
118 port@1 {
119 reg = <1>;
120 label = "lan2";
121 };
122
123 port@2 {
124 reg = <2>;
125 label = "lan3";
126 };
127
128 port@3 {
129 reg = <3>;
130 label = "lan4";
131 };
132
133 wan: port@4 {
134 reg = <4>;
135 label = "wan";
136 };
137
138 port@6 {
139 reg = <6>;
140 label = "cpu";
141 ethernet = <&gmac0>;
142 phy-mode = "2500base-x";
143
144 fixed-link {
145 speed = <2500>;
146 full-duplex;
147 pause;
148 };
149 };
150 };
151 };
152 };
153 };
154
155 &pcie0 {
156 status = "okay";
157
158 pinctrl-names = "default";
159 pinctrl-0 = <&pcie0_pins>;
160 };
161
162 &slot0 {
163 wifi@0,0 {
164 compatible = "mediatek,mt76";
165 reg = <0x0000 0 0 0 0>;
166 mediatek,mtd-eeprom = <&factory 0x5000>;
167 ieee80211-freq-limit = <5000000 6000000>;
168 mediatek,disable-radar-background;
169 };
170 };
171
172 &pio {
173 epa_elna_pins: epa-elna-pins {
174 mux {
175 function = "antsel";
176 groups = "antsel0", "antsel1", "antsel2", "antsel3",
177 "antsel4", "antsel5", "antsel6", "antsel7",
178 "antsel8", "antsel9", "antsel12", "antsel13",
179 "antsel14", "antsel15", "antsel16", "antsel17";
180 };
181 };
182
183 eth_pins: eth-pins {
184 mux {
185 function = "eth";
186 groups = "mdc_mdio", "rgmii_via_gmac2";
187 };
188 };
189
190 pcie0_pins: pcie0-pins {
191 mux {
192 function = "pcie";
193 groups = "pcie0_pad_perst",
194 "pcie0_0_waken",
195 "pcie0_0_clkreq";
196 };
197 };
198
199 pmic_bus_pins: pmic-bus-pins {
200 mux {
201 function = "pmic";
202 groups = "pmic_bus";
203 };
204 };
205
206 spi_nor_pins: spi-nor-pins {
207 mux {
208 function = "flash";
209 groups = "spi_nor";
210 };
211 };
212
213 uart0_pins: uart0-pins {
214 mux {
215 function = "uart";
216 groups = "uart0_0_tx_rx";
217 };
218 };
219
220 watchdog_pins: watchdog-pins {
221 mux {
222 function = "watchdog";
223 groups = "watchdog";
224 };
225 };
226 };
227
228 &pwrap {
229 status = "okay";
230
231 pinctrl-names = "default";
232 pinctrl-0 = <&pmic_bus_pins>;
233 };
234
235 &rtc {
236 status = "disabled";
237 };
238
239 &uart0 {
240 status = "okay";
241
242 pinctrl-names = "default";
243 pinctrl-0 = <&uart0_pins>;
244 };
245
246 &watchdog {
247 status = "okay";
248
249 pinctrl-names = "default";
250 pinctrl-0 = <&watchdog_pins>;
251 };