3 #include <dt-bindings/interrupt-controller/mips-gic.h>
4 #include <dt-bindings/clock/mt7621-clk.h>
5 #include <dt-bindings/gpio/gpio.h>
10 compatible = "mediatek,mt7621-soc";
22 compatible = "mips,mips1004Kc";
28 compatible = "mips,mips1004Kc";
35 #interrupt-cells = <1>;
37 compatible = "mti,cpu-interrupt-controller";
41 bootargs = "console=ttyS0,57600";
46 compatible = "fixed-clock";
48 /* FIXME: there should be way to detect this */
49 clock-frequency = <50000000>;
52 palmbus: palmbus@1e000000 {
53 compatible = "palmbus";
54 reg = <0x1e000000 0x100000>;
55 ranges = <0x0 0x1e000000 0x0fffff>;
61 compatible = "mediatek,mt7621-sysc", "syscon";
63 ralink,memctl = <&memc>;
64 clock-output-names = "xtal", "cpu", "bus",
65 "50m", "125m", "150m",
71 compatible = "mediatek,mt7621-wdt";
77 #interrupt-cells = <2>;
78 compatible = "mediatek,mt7621-gpio";
80 gpio-ranges = <&pinctrl 0 0 95>;
83 interrupt-parent = <&gic>;
84 interrupts = <GIC_SHARED 12 IRQ_TYPE_LEVEL_HIGH>;
88 compatible = "mediatek,mt7621-i2c";
93 resets = <&rstctrl 16>;
101 pinctrl-names = "default";
102 pinctrl-0 = <&i2c_pins>;
106 compatible = "mediatek,mt7621-i2s";
109 clocks = <&sysclock>;
111 resets = <&rstctrl 17>;
114 interrupt-parent = <&gic>;
115 interrupts = <GIC_SHARED 16 IRQ_TYPE_LEVEL_HIGH>;
122 dma-names = "tx", "rx";
127 systick: systick@500 {
128 compatible = "ralink,mt7621-systick", "ralink,cevt-systick";
131 resets = <&rstctrl 28>;
132 reset-names = "intc";
134 interrupt-parent = <&gic>;
135 interrupts = <GIC_SHARED 5 IRQ_TYPE_LEVEL_HIGH>;
139 compatible = "mediatek,mt7621-memc", "syscon";
140 reg = <0x5000 0x1000>;
143 uartlite: uartlite@c00 {
144 compatible = "ns16550a";
147 clock-frequency = <50000000>;
149 interrupt-parent = <&gic>;
150 interrupts = <GIC_SHARED 26 IRQ_TYPE_LEVEL_HIGH>;
157 uartlite2: uartlite2@d00 {
158 compatible = "ns16550a";
161 clock-frequency = <50000000>;
163 interrupt-parent = <&gic>;
164 interrupts = <GIC_SHARED 27 IRQ_TYPE_LEVEL_HIGH>;
169 pinctrl-names = "default";
170 pinctrl-0 = <&uart2_pins>;
175 uartlite3: uartlite3@e00 {
176 compatible = "ns16550a";
179 clock-frequency = <50000000>;
181 interrupt-parent = <&gic>;
182 interrupts = <GIC_SHARED 28 IRQ_TYPE_LEVEL_HIGH>;
187 pinctrl-names = "default";
188 pinctrl-0 = <&uart3_pins>;
196 compatible = "ralink,mt7621-spi";
199 clocks = <&sysc MT7621_CLK_BUS>;
201 resets = <&rstctrl 18>;
204 #address-cells = <1>;
207 pinctrl-names = "default";
208 pinctrl-0 = <&spi_pins>;
212 compatible = "ralink,rt3883-gdma";
213 reg = <0x2800 0x800>;
215 resets = <&rstctrl 14>;
218 interrupt-parent = <&gic>;
219 interrupts = <0 13 IRQ_TYPE_LEVEL_HIGH>;
222 #dma-channels = <16>;
223 #dma-requests = <16>;
229 compatible = "mediatek,mt7621-hsdma";
230 reg = <0x7000 0x1000>;
232 resets = <&rstctrl 5>;
233 reset-names = "hsdma";
235 interrupt-parent = <&gic>;
236 interrupts = <0 11 IRQ_TYPE_LEVEL_HIGH>;
247 compatible = "ralink,rt2880-pinmux";
248 pinctrl-names = "default";
249 pinctrl-0 = <&state_default>;
251 state_default: pinctrl0 {
289 rgmii1_pins: rgmii1 {
296 rgmii2_pins: rgmii2 {
338 compatible = "ralink,rt2880-reset";
343 compatible = "ralink,rt2880-clock";
347 sdhci: sdhci@1e130000 {
350 compatible = "ralink,mt7620-sdhci";
351 reg = <0x1e130000 0x4000>;
353 interrupt-parent = <&gic>;
354 interrupts = <GIC_SHARED 20 IRQ_TYPE_LEVEL_HIGH>;
356 pinctrl-names = "default";
357 pinctrl-0 = <&sdhci_pins>;
360 xhci: xhci@1e1c0000 {
361 #address-cells = <1>;
364 compatible = "mediatek,mt8173-xhci";
365 reg = <0x1e1c0000 0x1000
367 reg-names = "mac", "ippc";
369 clocks = <&sysclock>;
370 clock-names = "sys_ck";
372 interrupt-parent = <&gic>;
373 interrupts = <GIC_SHARED 22 IRQ_TYPE_LEVEL_HIGH>;
376 * Port 1 of both hubs is one usb slot and referenced here.
377 * The binding doesn't allow to address individual hubs.
378 * hub 1 - port 1 is ehci and ohci, hub 2 - port 1 is xhci.
380 xhci_ehci_port1: port@1 {
382 #trigger-source-cells = <0>;
386 * Only the second usb hub has a second port. That port serves
391 #trigger-source-cells = <0>;
395 gic: interrupt-controller@1fbc0000 {
396 compatible = "mti,gic";
397 reg = <0x1fbc0000 0x2000>;
399 interrupt-controller;
400 #interrupt-cells = <3>;
402 mti,reserved-cpu-vectors = <7>;
405 compatible = "mti,gic-timer";
406 interrupts = <GIC_LOCAL 1 IRQ_TYPE_NONE>;
407 clocks = <&sysc MT7621_CLK_CPU>;
413 compatible = "fixed-clock";
415 clock-frequency = <125000000>;
419 compatible = "mti,mips-cpc";
420 reg = <0x1fbf0000 0x8000>;
424 compatible = "mti,mips-cdmm";
425 reg = <0x1fbf8000 0x8000>;
428 nand: nand@1e003000 {
431 compatible = "mediatek,mt7621-nfc";
432 reg = <0x1e003000 0x800
434 reg-names = "nfi", "ecc";
436 clocks = <&nficlock>;
437 clock-names = "nfi_clk";
440 ethernet: ethernet@1e100000 {
441 compatible = "mediatek,mt7621-eth";
442 reg = <0x1e100000 0x10000>;
444 clocks = <&sysc MT7621_CLK_FE>,
445 <&sysc MT7621_CLK_ETH>;
446 clock-names = "fe", "ethif";
448 #address-cells = <1>;
451 resets = <&rstctrl 6>, <&rstctrl 23>;
452 reset-names = "fe", "eth";
454 interrupt-parent = <&gic>;
455 interrupts = <GIC_SHARED 3 IRQ_TYPE_LEVEL_HIGH>;
457 mediatek,ethsys = <&sysc>;
459 pinctrl-names = "default";
460 pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>, <&rgmii2_pins>;
463 compatible = "mediatek,eth-mac";
475 compatible = "mediatek,eth-mac";
482 #address-cells = <1>;
486 compatible = "mediatek,mt7621";
489 resets = <&rstctrl 2>;
491 interrupt-controller;
492 #interrupt-cells = <1>;
493 interrupts = <GIC_SHARED 23 IRQ_TYPE_LEVEL_HIGH>;
496 #address-cells = <1>;
545 pcie: pcie@1e140000 {
546 compatible = "mediatek,mt7621-pci";
547 reg = <0x1e140000 0x100>, /* host-pci bridge registers */
548 <0x1e142000 0x100>, /* pcie port 0 RC control registers */
549 <0x1e143000 0x100>, /* pcie port 1 RC control registers */
550 <0x1e144000 0x100>; /* pcie port 2 RC control registers */
551 #address-cells = <3>;
554 pinctrl-names = "default";
555 pinctrl-0 = <&pcie_pins>;
559 ranges = <0x02000000 0 0x60000000 0x60000000 0 0x10000000>, /* pci memory */
560 <0x01000000 0 0x00000000 0x1e160000 0 0x00010000>; /* io space */
564 #interrupt-cells = <1>;
565 interrupt-map-mask = <0xF800 0 0 0>;
566 interrupt-map = <0x0000 0 0 0 &gic GIC_SHARED 4 IRQ_TYPE_LEVEL_HIGH>,
567 <0x0800 0 0 0 &gic GIC_SHARED 24 IRQ_TYPE_LEVEL_HIGH>,
568 <0x1000 0 0 0 &gic GIC_SHARED 25 IRQ_TYPE_LEVEL_HIGH>;
570 reset-gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
573 reg = <0x0000 0 0 0 0>;
574 #address-cells = <3>;
578 #interrupt-cells = <1>;
579 interrupt-map-mask = <0 0 0 0>;
580 interrupt-map = <0 0 0 0 &gic GIC_SHARED 4 IRQ_TYPE_LEVEL_HIGH>;
581 resets = <&rstctrl 24>;
582 clocks = <&sysc MT7621_CLK_PCIE0>;
583 phys = <&pcie0_phy 1>;
584 phy-names = "pcie-phy0";
588 reg = <0x0800 0 0 0 0>;
589 #address-cells = <3>;
593 #interrupt-cells = <1>;
594 interrupt-map-mask = <0 0 0 0>;
595 interrupt-map = <0 0 0 0 &gic GIC_SHARED 24 IRQ_TYPE_LEVEL_HIGH>;
596 resets = <&rstctrl 25>;
597 clocks = <&sysc MT7621_CLK_PCIE1>;
598 phys = <&pcie0_phy 1>;
599 phy-names = "pcie-phy1";
603 reg = <0x1000 0 0 0 0>;
604 #address-cells = <3>;
608 #interrupt-cells = <1>;
609 interrupt-map-mask = <0 0 0 0>;
610 interrupt-map = <0 0 0 0 &gic GIC_SHARED 25 IRQ_TYPE_LEVEL_HIGH>;
611 resets = <&rstctrl 26>;
612 clocks = <&sysc MT7621_CLK_PCIE2>;
613 phys = <&pcie2_phy 0>;
614 phy-names = "pcie-phy2";
618 pcie0_phy: pcie-phy@1e149000 {
619 compatible = "mediatek,mt7621-pci-phy";
620 reg = <0x1e149000 0x0700>;
621 clocks = <&sysc MT7621_CLK_XTAL>;
625 pcie2_phy: pcie-phy@1e14a000 {
626 compatible = "mediatek,mt7621-pci-phy";
627 reg = <0x1e14a000 0x0700>;
628 clocks = <&sysc MT7621_CLK_XTAL>;