1 // SPDX-License-Identifier: GPL-2.0
6 compatible = "ralink,mt7628a-soc";
13 compatible = "mti,mips24KEc";
19 resetc: reset-controller {
20 compatible = "ralink,rt2880-reset";
24 cpuintc: interrupt-controller {
26 #interrupt-cells = <1>;
28 compatible = "mti,cpu-interrupt-controller";
32 compatible = "palmbus";
33 reg = <0x10000000 0x200000>;
34 ranges = <0x0 0x10000000 0x1FFFFF>;
39 sysc: system-controller@0 {
40 compatible = "ralink,mt7620a-sysc", "syscon";
45 compatible = "pinctrl-single";
50 pinctrl-single,bit-per-mux;
51 pinctrl-single,register-width = <32>;
52 pinctrl-single,function-mask = <0x1>;
54 pinmux_gpio_gpio: pinmux_gpio_gpio {
55 pinctrl-single,bits = <0x0 0x0 0x3>;
58 pinmux_spi_cs1_cs: pinmux_spi_cs1_cs {
59 pinctrl-single,bits = <0x0 0x0 0x30>;
62 pinmux_i2s_gpio: pinmux_i2s_gpio {
63 pinctrl-single,bits = <0x0 0x40 0xc0>;
66 pinmux_uart0_uart: pinmux_uart0_uart0 {
67 pinctrl-single,bits = <0x0 0x0 0x300>;
70 pinmux_sdmode_sdxc: pinmux_sdmode_sdxc {
71 pinctrl-single,bits = <0x0 0x0 0xc00>;
74 pinmux_sdmode_gpio: pinmux_sdmode_gpio {
75 pinctrl-single,bits = <0x0 0x400 0xc00>;
78 pinmux_spi_spi: pinmux_spi_spi {
79 pinctrl-single,bits = <0x0 0x0 0x1000>;
82 pinmux_refclk_gpio: pinmux_refclk_gpio {
83 pinctrl-single,bits = <0x0 0x40000 0x40000>;
86 pinmux_i2c_i2c: pinmux_i2c_i2c {
87 pinctrl-single,bits = <0x0 0x0 0x300000>;
90 pinmux_uart1_uart: pinmux_uart1_uart1 {
91 pinctrl-single,bits = <0x0 0x0 0x3000000>;
94 pinmux_uart2_uart: pinmux_uart2_uart {
95 pinctrl-single,bits = <0x0 0x0 0xc000000>;
98 pinmux_pwm0_pwm: pinmux_pwm0_pwm {
99 pinctrl-single,bits = <0x0 0x0 0x30000000>;
102 pinmux_pwm0_gpio: pinmux_pwm0_gpio {
103 pinctrl-single,bits = <0x0 0x10000000
107 pinmux_pwm1_pwm: pinmux_pwm1_pwm {
108 pinctrl-single,bits = <0x0 0x0 0xc0000000>;
111 pinmux_pwm1_gpio: pinmux_pwm1_gpio {
112 pinctrl-single,bits = <0x0 0x40000000
116 pinmux_p0led_an_gpio: pinmux_p0led_an_gpio {
117 pinctrl-single,bits = <0x4 0x4 0xc>;
120 pinmux_p1led_an_gpio: pinmux_p1led_an_gpio {
121 pinctrl-single,bits = <0x4 0x10 0x30>;
124 pinmux_p2led_an_gpio: pinmux_p2led_an_gpio {
125 pinctrl-single,bits = <0x4 0x40 0xc0>;
128 pinmux_p3led_an_gpio: pinmux_p3led_an_gpio {
129 pinctrl-single,bits = <0x4 0x100 0x300>;
132 pinmux_p4led_an_gpio: pinmux_p4led_an_gpio {
133 pinctrl-single,bits = <0x4 0x400 0xc00>;
137 watchdog: watchdog@100 {
138 compatible = "mediatek,mt7621-wdt";
141 resets = <&resetc 8>;
144 interrupt-parent = <&intc>;
150 intc: interrupt-controller@200 {
151 compatible = "ralink,rt2880-intc";
154 interrupt-controller;
155 #interrupt-cells = <1>;
157 resets = <&resetc 9>;
158 reset-names = "intc";
160 interrupt-parent = <&cpuintc>;
163 ralink,intc-registers = <0x9c 0xa0
168 memory-controller@300 {
169 compatible = "ralink,mt7620a-memc";
174 compatible = "mediatek,mt7621-gpio";
178 interrupt-controller;
180 #interrupt-cells = <2>;
182 interrupt-parent = <&intc>;
187 compatible = "ralink,mt7621-spi";
190 pinctrl-names = "default";
191 pinctrl-0 = <&pinmux_spi_spi>;
193 resets = <&resetc 18>;
196 #address-cells = <1>;
203 compatible = "mediatek,mt7621-i2c";
206 pinctrl-names = "default";
207 pinctrl-0 = <&pinmux_i2c_i2c>;
209 resets = <&resetc 16>;
212 #address-cells = <1>;
218 uart0: uartlite@c00 {
219 compatible = "ns16550a";
222 pinctrl-names = "default";
223 pinctrl-0 = <&pinmux_uart0_uart>;
225 resets = <&resetc 12>;
226 reset-names = "uart0";
228 interrupt-parent = <&intc>;
235 compatible = "ns16550a";
238 pinctrl-names = "default";
239 pinctrl-0 = <&pinmux_uart1_uart>;
241 resets = <&resetc 19>;
242 reset-names = "uart1";
244 interrupt-parent = <&intc>;
251 compatible = "ns16550a";
254 pinctrl-names = "default";
255 pinctrl-0 = <&pinmux_uart2_uart>;
257 resets = <&resetc 20>;
258 reset-names = "uart2";
260 interrupt-parent = <&intc>;
267 usb_phy: usb-phy@10120000 {
268 compatible = "mediatek,mt7628-usbphy";
269 reg = <0x10120000 0x1000>;
273 ralink,sysctl = <&sysc>;
274 resets = <&resetc 22 &resetc 25>;
275 reset-names = "host", "device";
279 compatible = "generic-ehci";
280 reg = <0x101c0000 0x1000>;
285 interrupt-parent = <&intc>;
289 wmac: wmac@10300000 {
290 compatible = "mediatek,mt7628-wmac";
291 reg = <0x10300000 0x100000>;
293 interrupt-parent = <&cpuintc>;