1 #include <dt-bindings/interrupt-controller/mips-gic.h>
2 #include <dt-bindings/clock/mt7621-clk.h>
3 #include <dt-bindings/gpio/gpio.h>
8 compatible = "mediatek,mt7621-soc";
16 compatible = "mips,mips1004Kc";
22 compatible = "mips,mips1004Kc";
29 #interrupt-cells = <1>;
31 compatible = "mti,cpu-interrupt-controller";
39 bootargs = "console=ttyS0,57600";
43 compatible = "mediatek,mt7621-pll", "syscon";
46 clock-output-names = "cpu", "bus";
51 compatible = "fixed-clock";
53 /* FIXME: there should be way to detect this */
54 clock-frequency = <50000000>;
57 palmbus: palmbus@1E000000 {
58 compatible = "palmbus";
59 reg = <0x1E000000 0x100000>;
60 ranges = <0x0 0x1E000000 0x0FFFFF>;
66 compatible = "mtk,mt7621-sysc";
71 compatible = "mediatek,mt7621-wdt";
77 #interrupt-cells = <2>;
78 compatible = "mediatek,mt7621-gpio";
82 interrupt-parent = <&gic>;
83 interrupts = <GIC_SHARED 12 IRQ_TYPE_LEVEL_HIGH>;
87 compatible = "mediatek,mt7621-i2c";
92 resets = <&rstctrl 16>;
100 pinctrl-names = "default";
101 pinctrl-0 = <&i2c_pins>;
105 compatible = "mediatek,mt7621-i2s";
108 clocks = <&sysclock>;
110 resets = <&rstctrl 17>;
113 interrupt-parent = <&gic>;
114 interrupts = <GIC_SHARED 16 IRQ_TYPE_LEVEL_HIGH>;
121 dma-names = "tx", "rx";
126 systick: systick@500 {
127 compatible = "ralink,mt7621-systick", "ralink,cevt-systick";
130 resets = <&rstctrl 28>;
131 reset-names = "intc";
133 interrupt-parent = <&gic>;
134 interrupts = <GIC_SHARED 5 IRQ_TYPE_LEVEL_HIGH>;
138 compatible = "mtk,mt7621-memc";
139 reg = <0x5000 0x1000>;
143 compatible = "mtk,mt7621-cpc";
144 reg = <0x1fbf0000 0x8000>;
148 compatible = "mtk,mt7621-mc";
149 reg = <0x1fbf8000 0x8000>;
152 uartlite: uartlite@c00 {
153 compatible = "ns16550a";
156 clock-frequency = <50000000>;
158 interrupt-parent = <&gic>;
159 interrupts = <GIC_SHARED 26 IRQ_TYPE_LEVEL_HIGH>;
166 uartlite2: uartlite2@d00 {
167 compatible = "ns16550a";
170 clock-frequency = <50000000>;
172 interrupt-parent = <&gic>;
173 interrupts = <GIC_SHARED 27 IRQ_TYPE_LEVEL_HIGH>;
178 pinctrl-names = "default";
179 pinctrl-0 = <&uart2_pins>;
184 uartlite3: uartlite3@e00 {
185 compatible = "ns16550a";
188 clock-frequency = <50000000>;
190 interrupt-parent = <&gic>;
191 interrupts = <GIC_SHARED 28 IRQ_TYPE_LEVEL_HIGH>;
196 pinctrl-names = "default";
197 pinctrl-0 = <&uart3_pins>;
205 compatible = "ralink,mt7621-spi";
208 clocks = <&pll MT7621_CLK_BUS>;
210 resets = <&rstctrl 18>;
213 #address-cells = <1>;
216 pinctrl-names = "default";
217 pinctrl-0 = <&spi_pins>;
221 compatible = "ralink,rt3883-gdma";
222 reg = <0x2800 0x800>;
224 resets = <&rstctrl 14>;
227 interrupt-parent = <&gic>;
228 interrupts = <0 13 4>;
231 #dma-channels = <16>;
232 #dma-requests = <16>;
238 compatible = "mediatek,mt7621-hsdma";
239 reg = <0x7000 0x1000>;
241 resets = <&rstctrl 5>;
242 reset-names = "hsdma";
244 interrupt-parent = <&gic>;
245 interrupts = <0 11 4>;
256 compatible = "ralink,rt2880-pinmux";
257 pinctrl-names = "default";
258 pinctrl-0 = <&state_default>;
260 state_default: pinctrl0 {
298 rgmii1_pins: rgmii1 {
305 rgmii2_pins: rgmii2 {
347 compatible = "ralink,rt2880-reset";
352 compatible = "ralink,rt2880-clock";
356 sdhci: sdhci@1E130000 {
359 compatible = "ralink,mt7620-sdhci";
360 reg = <0x1E130000 0x4000>;
362 interrupt-parent = <&gic>;
363 interrupts = <GIC_SHARED 20 IRQ_TYPE_LEVEL_HIGH>;
365 pinctrl-names = "default";
366 pinctrl-0 = <&sdhci_pins>;
369 xhci: xhci@1E1C0000 {
370 #address-cells = <1>;
374 compatible = "mediatek,mt8173-xhci";
375 reg = <0x1e1c0000 0x1000
377 reg-names = "mac", "ippc";
379 clocks = <&sysclock>;
380 clock-names = "sys_ck";
382 interrupt-parent = <&gic>;
383 interrupts = <GIC_SHARED 22 IRQ_TYPE_LEVEL_HIGH>;
386 * Port 1 of both hubs is one usb slot and referenced here.
387 * The binding doesn't allow to address individual hubs.
388 * hub 1 - port 1 is ehci and ohci, hub 2 - port 1 is xhci.
390 xhci_ehci_port1: port@1 {
392 #trigger-source-cells = <0>;
396 * Only the second usb hub has a second port. That port serves
401 #trigger-source-cells = <0>;
405 gic: interrupt-controller@1fbc0000 {
406 compatible = "mti,gic";
407 reg = <0x1fbc0000 0x2000>;
409 interrupt-controller;
410 #interrupt-cells = <3>;
412 mti,reserved-cpu-vectors = <7>;
415 compatible = "mti,gic-timer";
416 interrupts = <GIC_LOCAL 1 IRQ_TYPE_NONE>;
417 clocks = <&pll MT7621_CLK_CPU>;
423 compatible = "fixed-clock";
425 clock-frequency = <125000000>;
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 ethsys: syscon@1e000000 {
441 compatible = "mediatek,mt7621-ethsys",
443 reg = <0x1e000000 0x1000>;
447 ethernet: ethernet@1e100000 {
448 compatible = "mediatek,mt7621-eth";
449 reg = <0x1e100000 0x10000>;
451 clocks = <&sysclock>;
452 clock-names = "ethif";
454 #address-cells = <1>;
457 resets = <&rstctrl 6 &rstctrl 23>;
458 reset-names = "fe", "eth";
460 interrupt-parent = <&gic>;
461 interrupts = <GIC_SHARED 3 IRQ_TYPE_LEVEL_HIGH>;
463 mediatek,ethsys = <ðsys>;
466 compatible = "mediatek,eth-mac";
478 compatible = "mediatek,eth-mac";
481 phy-mode = "rgmii-rxid";
485 #address-cells = <1>;
489 compatible = "mediatek,mt7621";
490 #address-cells = <1>;
494 resets = <&rstctrl 2>;
498 #address-cells = <1>;
549 compatible = "mediatek,mt7621-gsw";
550 reg = <0x1e110000 0x8000>;
551 interrupt-parent = <&gic>;
552 interrupts = <GIC_SHARED 23 IRQ_TYPE_LEVEL_HIGH>;
555 pcie: pcie@1e140000 {
556 compatible = "mediatek,mt7621-pci";
557 reg = <0x1e140000 0x100 /* host-pci bridge registers */
558 0x1e142000 0x100 /* pcie port 0 RC control registers */
559 0x1e143000 0x100 /* pcie port 1 RC control registers */
560 0x1e144000 0x100>; /* pcie port 2 RC control registers */
561 #address-cells = <3>;
564 pinctrl-names = "default";
565 pinctrl-0 = <&pcie_pins>;
571 0x02000000 0 0x00000000 0x60000000 0 0x10000000 /* pci memory */
572 0x01000000 0 0x00000000 0x1e160000 0 0x00010000 /* io space */
575 interrupt-parent = <&gic>;
576 interrupts = <GIC_SHARED 4 IRQ_TYPE_LEVEL_HIGH
577 GIC_SHARED 24 IRQ_TYPE_LEVEL_HIGH
578 GIC_SHARED 25 IRQ_TYPE_LEVEL_HIGH>;
582 resets = <&rstctrl 24 &rstctrl 25 &rstctrl 26>;
583 reset-names = "pcie0", "pcie1", "pcie2";
584 clocks = <&clkctrl 24 &clkctrl 25 &clkctrl 26>;
585 clock-names = "pcie0", "pcie1", "pcie2";
586 phys = <&pcie0_phy 1>, <&pcie2_phy 0>;
587 phy-names = "pcie-phy0", "pcie-phy2";
589 reset-gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
592 reg = <0x0000 0 0 0 0>;
593 #address-cells = <3>;
596 bus-range = <0x00 0xff>;
600 reg = <0x0800 0 0 0 0>;
601 #address-cells = <3>;
604 bus-range = <0x00 0xff>;
608 reg = <0x1000 0 0 0 0>;
609 #address-cells = <3>;
612 bus-range = <0x00 0xff>;
616 pcie0_phy: pcie-phy@1e149000 {
617 compatible = "mediatek,mt7621-pci-phy";
618 reg = <0x1e149000 0x0700>;
622 pcie2_phy: pcie-phy@1e14a000 {
623 compatible = "mediatek,mt7621-pci-phy";
624 reg = <0x1e14a000 0x0700>;