1 #include <dt-bindings/interrupt-controller/mips-gic.h>
2 #include <dt-bindings/gpio/gpio.h>
7 compatible = "mediatek,mt7621-soc";
11 compatible = "mips,mips1004Kc";
15 compatible = "mips,mips1004Kc";
21 #interrupt-cells = <1>;
23 compatible = "mti,cpu-interrupt-controller";
30 cpuclock: cpuclock@0 {
32 compatible = "fixed-clock";
34 /* FIXME: there should be way to detect this */
35 clock-frequency = <880000000>;
38 sysclock: sysclock@0 {
40 compatible = "fixed-clock";
42 /* This is normally 1/4 of cpuclock */
43 clock-frequency = <220000000>;
46 mmc_clock: mmc_clock@0 {
48 compatible = "fixed-clock";
49 clock-frequency = <48000000>;
52 mmc_fixed_3v3: fixedregulator@0 {
53 compatible = "regulator-fixed";
54 regulator-name = "mmc_power";
55 regulator-min-microvolt = <3300000>;
56 regulator-max-microvolt = <3300000>;
61 mmc_fixed_1v8_io: fixedregulator@1 {
62 compatible = "regulator-fixed";
63 regulator-name = "mmc_io";
64 regulator-min-microvolt = <1800000>;
65 regulator-max-microvolt = <1800000>;
70 palmbus: palmbus@1E000000 {
71 compatible = "palmbus";
72 reg = <0x1E000000 0x100000>;
73 ranges = <0x0 0x1E000000 0x0FFFFF>;
79 compatible = "mtk,mt7621-sysc";
84 compatible = "mtk,mt7621-wdt";
90 #interrupt-cells = <2>;
91 compatible = "mediatek,mt7621-gpio";
93 gpio-ranges = <&pinctrl 0 0 95>;
96 interrupt-parent = <&gic>;
97 interrupts = <GIC_SHARED 12 IRQ_TYPE_LEVEL_HIGH>;
101 compatible = "mediatek,mt7621-i2c";
104 clocks = <&sysclock>;
106 resets = <&rstctrl 16>;
109 #address-cells = <1>;
114 pinctrl-names = "default";
115 pinctrl-0 = <&i2c_pins>;
119 compatible = "mediatek,mt7621-i2s";
122 clocks = <&sysclock>;
124 resets = <&rstctrl 17>;
127 interrupt-parent = <&gic>;
128 interrupts = <GIC_SHARED 16 IRQ_TYPE_LEVEL_HIGH>;
135 dma-names = "tx", "rx";
141 compatible = "mtk,mt7621-memc";
142 reg = <0x5000 0x1000>;
146 compatible = "mtk,mt7621-cpc";
147 reg = <0x1fbf0000 0x8000>;
151 compatible = "mtk,mt7621-mc";
152 reg = <0x1fbf8000 0x8000>;
155 uartlite: uartlite@c00 {
156 compatible = "ns16550a";
159 clocks = <&sysclock>;
160 clock-frequency = <50000000>;
162 interrupt-parent = <&gic>;
163 interrupts = <GIC_SHARED 26 IRQ_TYPE_LEVEL_HIGH>;
173 compatible = "ralink,mt7621-spi";
176 clocks = <&sysclock>;
178 resets = <&rstctrl 18>;
181 #address-cells = <1>;
184 pinctrl-names = "default";
185 pinctrl-0 = <&spi_pins>;
189 compatible = "ralink,rt3883-gdma";
190 reg = <0x2800 0x800>;
192 resets = <&rstctrl 14>;
195 interrupt-parent = <&gic>;
196 interrupts = <0 13 4>;
199 #dma-channels = <16>;
200 #dma-requests = <16>;
206 compatible = "mediatek,mt7621-hsdma";
207 reg = <0x7000 0x1000>;
209 resets = <&rstctrl 5>;
210 reset-names = "hsdma";
212 interrupt-parent = <&gic>;
213 interrupts = <0 11 4>;
224 compatible = "ralink,rt2880-pinmux";
225 pinctrl-names = "default";
226 pinctrl-0 = <&state_default>;
228 state_default: pinctrl0 {
266 rgmii1_pins: rgmii1 {
273 rgmii2_pins: rgmii2 {
315 compatible = "ralink,rt2880-reset";
320 compatible = "ralink,rt2880-clock";
324 sdhci: sdhci@1E130000 {
327 compatible = "mediatek,mt7620-mmc";
328 reg = <0x1E130000 0x4000>;
331 max-frequency = <48000000>;
334 vmmc-supply = <&mmc_fixed_3v3>;
335 vqmmc-supply = <&mmc_fixed_1v8_io>;
338 pinctrl-names = "default", "state_uhs";
339 pinctrl-0 = <&sdhci_pins>;
340 pinctrl-1 = <&sdhci_pins>;
342 clocks = <&mmc_clock &mmc_clock>;
343 clock-names = "source", "hclk";
345 interrupt-parent = <&gic>;
346 interrupts = <GIC_SHARED 20 IRQ_TYPE_LEVEL_HIGH>;
349 xhci: xhci@1E1C0000 {
352 compatible = "mediatek,mt8173-xhci";
353 reg = <0x1e1c0000 0x1000
355 reg-names = "mac", "ippc";
357 clocks = <&sysclock>;
358 clock-names = "sys_ck";
360 interrupt-parent = <&gic>;
361 interrupts = <GIC_SHARED 22 IRQ_TYPE_LEVEL_HIGH>;
364 gic: interrupt-controller@1fbc0000 {
365 compatible = "mti,gic";
366 reg = <0x1fbc0000 0x2000>;
368 interrupt-controller;
369 #interrupt-cells = <3>;
371 mti,reserved-cpu-vectors = <7>;
374 compatible = "mti,gic-timer";
375 interrupts = <GIC_LOCAL 1 IRQ_TYPE_NONE>;
376 clocks = <&cpuclock>;
380 nand: nand@1e003000 {
383 compatible = "mtk,mt7621-nand";
385 reg = <0x1e003000 0x800
387 #address-cells = <1>;
391 ethsys: syscon@1e000000 {
392 compatible = "mediatek,mt7621-ethsys",
394 reg = <0x1e000000 0x1000>;
398 ethernet: ethernet@1e100000 {
399 compatible = "mediatek,mt7621-eth";
400 reg = <0x1e100000 0x10000>;
402 clocks = <&sysclock>;
403 clock-names = "ethif";
405 #address-cells = <1>;
408 resets = <&rstctrl 6 &rstctrl 23>;
409 reset-names = "fe", "eth";
411 interrupt-parent = <&gic>;
412 interrupts = <GIC_SHARED 3 IRQ_TYPE_LEVEL_HIGH>;
414 mediatek,ethsys = <ðsys>;
418 compatible = "mediatek,eth-mac";
428 compatible = "mediatek,eth-mac";
431 phy-mode = "rgmii-rxid";
432 phy-handle = <&phy_external>;
435 #address-cells = <1>;
438 phy_external: ethernet-phy@5 {
441 phy-mode = "rgmii-rxid";
443 pinctrl-names = "default";
444 pinctrl-0 = <&rgmii2_pins>;
448 compatible = "mediatek,mt7621";
449 #address-cells = <1>;
453 resets = <&rstctrl 2>;
457 #address-cells = <1>;
501 compatible = "mediatek,mt7621-gsw";
502 reg = <0x1e110000 0x8000>;
503 interrupt-parent = <&gic>;
504 interrupts = <GIC_SHARED 23 IRQ_TYPE_LEVEL_HIGH>;
507 pcie: pcie@1e140000 {
508 compatible = "mediatek,mt7621-pci";
509 reg = <0x1e140000 0x100 /* host-pci bridge registers */
510 0x1e142000 0x100 /* pcie port 0 RC control registers */
511 0x1e143000 0x100 /* pcie port 1 RC control registers */
512 0x1e144000 0x100>; /* pcie port 2 RC control registers */
513 #address-cells = <3>;
516 pinctrl-names = "default";
517 pinctrl-0 = <&pcie_pins>;
523 0x02000000 0 0x00000000 0x60000000 0 0x10000000 /* pci memory */
524 0x01000000 0 0x00000000 0x1e160000 0 0x00010000 /* io space */
527 interrupt-parent = <&gic>;
528 interrupts = <GIC_SHARED 4 IRQ_TYPE_LEVEL_HIGH
529 GIC_SHARED 24 IRQ_TYPE_LEVEL_HIGH
530 GIC_SHARED 25 IRQ_TYPE_LEVEL_HIGH>;
534 resets = <&rstctrl 24 &rstctrl 25 &rstctrl 26>;
535 reset-names = "pcie0", "pcie1", "pcie2";
536 clocks = <&clkctrl 24 &clkctrl 25 &clkctrl 26>;
537 clock-names = "pcie0", "pcie1", "pcie2";
538 phys = <&pcie0_phy 1>, <&pcie2_phy 0>;
539 phy-names = "pcie-phy0", "pcie-phy2";
541 reset-gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
544 reg = <0x0000 0 0 0 0>;
545 #address-cells = <3>;
548 bus-range = <0x00 0xff>;
552 reg = <0x0800 0 0 0 0>;
553 #address-cells = <3>;
556 bus-range = <0x00 0xff>;
560 reg = <0x1000 0 0 0 0>;
561 #address-cells = <3>;
564 bus-range = <0x00 0xff>;
568 pcie0_phy: pcie-phy@1e149000 {
569 compatible = "mediatek,mt7621-pci-phy";
570 reg = <0x1e149000 0x0700>;
574 pcie2_phy: pcie-phy@1e14a000 {
575 compatible = "mediatek,mt7621-pci-phy";
576 reg = <0x1e14a000 0x0700>;