1 #include <dt-bindings/interrupt-controller/mips-gic.h>
2 #include <dt-bindings/clock/mt7621-clk.h>
7 compatible = "mediatek,mt7621-soc";
15 compatible = "mips,mips1004Kc";
21 compatible = "mips,mips1004Kc";
28 #interrupt-cells = <1>;
30 compatible = "mti,cpu-interrupt-controller";
38 compatible = "mediatek,mt7621-pll", "syscon";
41 clock-output-names = "cpu", "bus";
46 compatible = "fixed-clock";
48 /* FIXME: there should be way to detect this */
49 clock-frequency = <50000000>;
54 palmbus: palmbus@1E000000 {
55 compatible = "palmbus";
56 reg = <0x1E000000 0x100000>;
57 ranges = <0x0 0x1E000000 0x0FFFFF>;
63 compatible = "mtk,mt7621-sysc";
68 compatible = "mediatek,mt7621-wdt";
76 compatible = "mtk,mt7621-gpio";
79 interrupt-parent = <&gic>;
80 interrupts = <GIC_SHARED 12 IRQ_TYPE_LEVEL_HIGH>;
84 compatible = "mtk,mt7621-gpio-bank";
91 compatible = "mtk,mt7621-gpio-bank";
98 compatible = "mtk,mt7621-gpio-bank";
105 compatible = "mediatek,mt7621-i2c";
108 clocks = <&sysclock>;
110 resets = <&rstctrl 16>;
113 #address-cells = <1>;
118 pinctrl-names = "default";
119 pinctrl-0 = <&i2c_pins>;
123 compatible = "mediatek,mt7621-i2s";
126 clocks = <&sysclock>;
128 resets = <&rstctrl 17>;
131 interrupt-parent = <&gic>;
132 interrupts = <GIC_SHARED 16 IRQ_TYPE_LEVEL_HIGH>;
139 dma-names = "tx", "rx";
144 systick: systick@500 {
145 compatible = "ralink,mt7621-systick", "ralink,cevt-systick";
148 resets = <&rstctrl 28>;
149 reset-names = "intc";
151 interrupt-parent = <&gic>;
152 interrupts = <GIC_SHARED 5 IRQ_TYPE_LEVEL_HIGH>;
156 compatible = "mtk,mt7621-memc";
157 reg = <0x5000 0x1000>;
161 compatible = "mtk,mt7621-cpc";
162 reg = <0x1fbf0000 0x8000>;
166 compatible = "mtk,mt7621-mc";
167 reg = <0x1fbf8000 0x8000>;
170 uartlite: uartlite@c00 {
171 compatible = "ns16550a";
174 clock-frequency = <50000000>;
176 interrupt-parent = <&gic>;
177 interrupts = <GIC_SHARED 26 IRQ_TYPE_LEVEL_HIGH>;
184 uartlite2: uartlite2@d00 {
185 compatible = "ns16550a";
188 clock-frequency = <50000000>;
190 interrupt-parent = <&gic>;
191 interrupts = <GIC_SHARED 27 IRQ_TYPE_LEVEL_HIGH>;
196 pinctrl-names = "default";
197 pinctrl-0 = <&uart2_pins>;
202 uartlite3: uartlite3@e00 {
203 compatible = "ns16550a";
206 clock-frequency = <50000000>;
208 interrupt-parent = <&gic>;
209 interrupts = <GIC_SHARED 28 IRQ_TYPE_LEVEL_HIGH>;
214 pinctrl-names = "default";
215 pinctrl-0 = <&uart3_pins>;
223 compatible = "ralink,mt7621-spi";
226 clocks = <&pll MT7621_CLK_BUS>;
228 resets = <&rstctrl 18>;
231 #address-cells = <1>;
234 pinctrl-names = "default";
235 pinctrl-0 = <&spi_pins>;
239 compatible = "ralink,rt3883-gdma";
240 reg = <0x2800 0x800>;
242 resets = <&rstctrl 14>;
245 interrupt-parent = <&gic>;
246 interrupts = <0 13 4>;
249 #dma-channels = <16>;
250 #dma-requests = <16>;
256 compatible = "mediatek,mt7621-hsdma";
257 reg = <0x7000 0x1000>;
259 resets = <&rstctrl 5>;
260 reset-names = "hsdma";
262 interrupt-parent = <&gic>;
263 interrupts = <0 11 4>;
274 compatible = "ralink,rt2880-pinmux";
275 pinctrl-names = "default";
276 pinctrl-0 = <&state_default>;
278 state_default: pinctrl0 {
283 ralink,group = "i2c";
284 ralink,function = "i2c";
290 ralink,group = "spi";
291 ralink,function = "spi";
297 ralink,group = "uart1";
298 ralink,function = "uart1";
304 ralink,group = "uart2";
305 ralink,function = "uart2";
311 ralink,group = "uart3";
312 ralink,function = "uart3";
316 rgmii1_pins: rgmii1 {
318 ralink,group = "rgmii1";
319 ralink,function = "rgmii1";
323 rgmii2_pins: rgmii2 {
325 ralink,group = "rgmii2";
326 ralink,function = "rgmii2";
332 ralink,group = "mdio";
333 ralink,function = "mdio";
339 ralink,group = "pcie";
340 ralink,function = "pcie rst";
346 ralink,group = "spi";
347 ralink,function = "nand1";
351 ralink,group = "sdhci";
352 ralink,function = "nand2";
358 ralink,group = "sdhci";
359 ralink,function = "sdhci";
365 compatible = "ralink,rt2880-reset";
370 compatible = "ralink,rt2880-clock";
374 sdhci: sdhci@1E130000 {
377 compatible = "ralink,mt7620-sdhci";
378 reg = <0x1E130000 0x4000>;
380 interrupt-parent = <&gic>;
381 interrupts = <GIC_SHARED 20 IRQ_TYPE_LEVEL_HIGH>;
383 pinctrl-names = "default";
384 pinctrl-0 = <&sdhci_pins>;
387 xhci: xhci@1E1C0000 {
388 #address-cells = <1>;
392 compatible = "mediatek,mt8173-xhci";
393 reg = <0x1e1c0000 0x1000
395 reg-names = "mac", "ippc";
397 clocks = <&sysclock>;
398 clock-names = "sys_ck";
400 interrupt-parent = <&gic>;
401 interrupts = <GIC_SHARED 22 IRQ_TYPE_LEVEL_HIGH>;
404 * Port 1 of both hubs is one usb slot and referenced here.
405 * The binding doesn't allow to address individual hubs.
406 * hub 1 - port 1 is ehci and ohci, hub 2 - port 1 is xhci.
408 xhci_ehci_port1: port@1 {
410 #trigger-source-cells = <0>;
414 * Only the second usb hub has a second port. That port serves
419 #trigger-source-cells = <0>;
423 gic: interrupt-controller@1fbc0000 {
424 compatible = "mti,gic";
425 reg = <0x1fbc0000 0x2000>;
427 interrupt-controller;
428 #interrupt-cells = <3>;
430 mti,reserved-cpu-vectors = <7>;
433 compatible = "mti,gic-timer";
434 interrupts = <GIC_LOCAL 1 IRQ_TYPE_NONE>;
435 clocks = <&pll MT7621_CLK_CPU>;
439 nand: nand@1e003000 {
442 compatible = "mtk,mt7621-nand";
444 reg = <0x1e003000 0x800
448 ethernet: ethernet@1e100000 {
449 compatible = "mediatek,mt7621-eth";
450 reg = <0x1e100000 0x10000>;
452 #address-cells = <1>;
455 resets = <&rstctrl 6 &rstctrl 23>;
456 reset-names = "fe", "eth";
458 interrupt-parent = <&gic>;
459 interrupts = <GIC_SHARED 3 IRQ_TYPE_LEVEL_HIGH>;
461 mediatek,switch = <&gsw>;
464 #address-cells = <1>;
467 phy1f: ethernet-phy@1f {
474 compatible = "mediatek,mt7623-hnat";
479 resets = <&rstctrl 0>;
480 reset-names = "mtketh";
485 compatible = "mediatek,mt7621-gsw";
486 reg = <0x1e110000 0x8000>;
487 interrupt-parent = <&gic>;
488 interrupts = <GIC_SHARED 23 IRQ_TYPE_LEVEL_HIGH>;
491 pcie: pcie@1e140000 {
492 compatible = "mediatek,mt7621-pci";
493 reg = <0x1e140000 0x100
496 #address-cells = <3>;
499 pinctrl-names = "default";
500 pinctrl-0 = <&pcie_pins>;
506 0x02000000 0 0x00000000 0x60000000 0 0x10000000 /* pci memory */
507 0x01000000 0 0x00000000 0x1e160000 0 0x00010000 /* io space */
510 interrupt-parent = <&gic>;
511 interrupts = <GIC_SHARED 4 IRQ_TYPE_LEVEL_HIGH
512 GIC_SHARED 24 IRQ_TYPE_LEVEL_HIGH
513 GIC_SHARED 25 IRQ_TYPE_LEVEL_HIGH>;
517 resets = <&rstctrl 24 &rstctrl 25 &rstctrl 26>;
518 reset-names = "pcie0", "pcie1", "pcie2";
519 clocks = <&clkctrl 24 &clkctrl 25 &clkctrl 26>;
520 clock-names = "pcie0", "pcie1", "pcie2";
523 reg = <0x0000 0 0 0 0>;
525 #address-cells = <3>;
532 reg = <0x0800 0 0 0 0>;
534 #address-cells = <3>;
541 reg = <0x1000 0 0 0 0>;
543 #address-cells = <3>;