1 // SPDX-License-Identifier: GPL-2.0
2 #include <dt-bindings/clock/mt7628-clk.h>
7 compatible = "ralink,mt7628a-soc";
14 compatible = "mti,mips24KEc";
20 resetc: reset-controller {
21 compatible = "ralink,rt2880-reset";
25 cpuintc: interrupt-controller {
27 #interrupt-cells = <1>;
29 compatible = "mti,cpu-interrupt-controller";
33 compatible = "palmbus", "simple-bus";
34 reg = <0x10000000 0x200000>;
35 ranges = <0x0 0x10000000 0x1FFFFF>;
40 sysc: system-controller@0 {
41 compatible = "ralink,mt7620a-sysc", "syscon";
46 compatible = "syscon-reboot";
52 clkctrl: clkctrl@0x2c {
53 reg = <0x2c 0x8>, <0x10 0x4>;
54 reg-names = "syscfg0", "clkcfg";
55 compatible = "mediatek,mt7628-clk";
61 compatible = "mediatek,mt7628-pinctrl";
62 reg = <0x3c 0x2c>, <0x1300 0x100>;
63 reg-names = "gpiomode", "padconf";
65 pinctrl-names = "default";
66 pinctrl-0 = <&state_default>;
68 state_default: pin_state {
71 spi_single_pins: spi_single_pins {
76 spi_dual_pins: spi_dual_pins {
88 uart0_pins: uart0_pins {
93 uart1_pins: uart1_pins {
98 uart2_pins: uart2_pins {
108 ephy_iot_mode: ephy_iot_mode {
110 groups = "ephy4_1_pad";
111 function = "digital";
120 ephy_router_mode: ephy_router_mode {
122 groups = "ephy4_1_pad";
132 sd_iot_mode: sd_iot_mode {
134 groups = "ephy4_1_pad";
135 function = "digital";
144 groups = "sd router";
150 drive-strength-4g = <8>;
154 sd_router_mode: sd_router_mode {
156 groups = "sd router";
161 groups = "gpio0", "i2s", "sdmode", \
168 drive-strength-28 = <8>;
172 emmc_iot_8bit_mode: emmc_iot_8bit_mode {
174 groups = "ephy4_1_pad";
175 function = "digital";
184 groups = "sd router";
190 function = "sdxc d5 d4";
195 function = "sdxc d6";
200 function = "sdxc d7";
205 drive-strength-4g = <8>;
210 watchdog: watchdog@100 {
211 compatible = "ralink,mt7628a-wdt", "mediatek,mt7621-wdt";
214 resets = <&resetc 8>;
217 interrupt-parent = <&intc>;
221 intc: interrupt-controller@200 {
222 compatible = "ralink,rt2880-intc";
225 interrupt-controller;
226 #interrupt-cells = <1>;
228 resets = <&resetc 9>;
229 reset-names = "intc";
231 interrupt-parent = <&cpuintc>;
234 ralink,intc-registers = <0x9c 0xa0
239 memory-controller@300 {
240 compatible = "ralink,mt7620a-memc";
245 #address-cells = <1>;
248 compatible = "mtk,mt7628-gpio", "mtk,mt7621-gpio";
251 interrupt-parent = <&intc>;
256 compatible = "mtk,mt7621-gpio-bank";
263 compatible = "mtk,mt7621-gpio-bank";
270 compatible = "mtk,mt7621-gpio-bank";
277 compatible = "ralink,mt7621-spi";
279 #address-cells = <1>;
282 clocks = <&clkctrl CLK_SPI>;
285 uart0: uartlite@c00 {
286 compatible = "mediatek,hsuart", "ns16550a";
289 clocks = <&clkctrl CLK_UART0>;
291 resets = <&resetc 12>;
292 reset-names = "uart0";
294 interrupt-parent = <&intc>;
301 compatible = "mediatek,hsuart", "ns16550a";
304 clocks = <&clkctrl CLK_UART1>;
306 resets = <&resetc 19>;
307 reset-names = "uart1";
309 interrupt-parent = <&intc>;
316 compatible = "mediatek,hsuart", "ns16550a";
319 clocks = <&clkctrl CLK_UART2>;
321 resets = <&resetc 20>;
322 reset-names = "uart2";
324 interrupt-parent = <&intc>;
332 compatible = "mediatek,mt7628-eth";
333 reg = <0x10100000 0x10000
339 usb_phy: usb-phy@10120000 {
340 compatible = "mediatek,mt7628-usbphy";
341 reg = <0x10120000 0x1000>;
345 ralink,sysctl = <&sysc>;
347 resets = <&resetc 22 &resetc 25>;
348 reset-names = "host", "device";
350 clocks = <&clkctrl CLK_UPHY>;
355 compatible = "generic-ehci";
356 reg = <0x101c0000 0x1000>;
361 interrupt-parent = <&intc>;