1 #include <dt-bindings/interrupt-controller/mips-gic.h>
6 compatible = "mediatek,mt7621-soc";
10 compatible = "mips,mips1004Kc";
14 compatible = "mips,mips1004Kc";
20 #interrupt-cells = <1>;
22 compatible = "mti,cpu-interrupt-controller";
29 cpuclock: cpuclock@0 {
31 compatible = "fixed-clock";
33 /* FIXME: there should be way to detect this */
34 clock-frequency = <880000000>;
37 sysclock: sysclock@0 {
39 compatible = "fixed-clock";
41 /* This is normally 1/4 of cpuclock */
42 clock-frequency = <220000000>;
45 palmbus: palmbus@1E000000 {
46 compatible = "palmbus";
47 reg = <0x1E000000 0x100000>;
48 ranges = <0x0 0x1E000000 0x0FFFFF>;
54 compatible = "mtk,mt7621-sysc";
59 compatible = "mtk,mt7621-wdt";
65 #interrupt-cells = <2>;
66 compatible = "mediatek,mt7621-gpio";
70 interrupt-parent = <&gic>;
71 interrupts = <GIC_SHARED 12 IRQ_TYPE_LEVEL_HIGH>;
75 compatible = "mediatek,mt7621-i2c";
80 resets = <&rstctrl 16>;
88 pinctrl-names = "default";
89 pinctrl-0 = <&i2c_pins>;
93 compatible = "mediatek,mt7621-i2s";
98 resets = <&rstctrl 17>;
101 interrupt-parent = <&gic>;
102 interrupts = <GIC_SHARED 16 IRQ_TYPE_LEVEL_HIGH>;
109 dma-names = "tx", "rx";
115 compatible = "mtk,mt7621-memc";
120 compatible = "mtk,mt7621-cpc";
121 reg = <0x1fbf0000 0x8000>;
125 compatible = "mtk,mt7621-mc";
126 reg = <0x1fbf8000 0x8000>;
129 uartlite: uartlite@c00 {
130 compatible = "ns16550a";
133 clocks = <&sysclock>;
134 clock-frequency = <50000000>;
136 interrupt-parent = <&gic>;
137 interrupts = <GIC_SHARED 26 IRQ_TYPE_LEVEL_HIGH>;
147 compatible = "ralink,mt7621-spi";
150 clocks = <&sysclock>;
152 resets = <&rstctrl 18>;
155 #address-cells = <1>;
158 pinctrl-names = "default";
159 pinctrl-0 = <&spi_pins>;
163 compatible = "ralink,rt3883-gdma";
164 reg = <0x2800 0x800>;
166 resets = <&rstctrl 14>;
169 interrupt-parent = <&gic>;
170 interrupts = <0 13 4>;
173 #dma-channels = <16>;
174 #dma-requests = <16>;
180 compatible = "mediatek,mt7621-hsdma";
181 reg = <0x7000 0x1000>;
183 resets = <&rstctrl 5>;
184 reset-names = "hsdma";
186 interrupt-parent = <&gic>;
187 interrupts = <0 11 4>;
198 compatible = "ralink,rt2880-pinmux";
199 pinctrl-names = "default";
200 pinctrl-0 = <&state_default>;
202 state_default: pinctrl0 {
240 rgmii1_pins: rgmii1 {
247 rgmii2_pins: rgmii2 {
264 function = "pcie rst";
289 compatible = "ralink,rt2880-reset";
294 compatible = "ralink,rt2880-clock";
298 sdhci: sdhci@1E130000 {
301 compatible = "ralink,mt7620-sdhci";
302 reg = <0x1E130000 0x4000>;
304 interrupt-parent = <&gic>;
305 interrupts = <GIC_SHARED 20 IRQ_TYPE_LEVEL_HIGH>;
308 xhci: xhci@1E1C0000 {
311 compatible = "mediatek,mt8173-xhci";
312 reg = <0x1e1c0000 0x1000
314 reg-names = "mac", "ippc";
316 clocks = <&sysclock>;
317 clock-names = "sys_ck";
319 interrupt-parent = <&gic>;
320 interrupts = <GIC_SHARED 22 IRQ_TYPE_LEVEL_HIGH>;
323 gic: interrupt-controller@1fbc0000 {
324 compatible = "mti,gic";
325 reg = <0x1fbc0000 0x2000>;
327 interrupt-controller;
328 #interrupt-cells = <3>;
330 mti,reserved-cpu-vectors = <7>;
333 compatible = "mti,gic-timer";
334 interrupts = <GIC_LOCAL 1 IRQ_TYPE_NONE>;
335 clocks = <&cpuclock>;
339 nand: nand@1e003000 {
342 compatible = "mtk,mt7621-nand";
344 reg = <0x1e003000 0x800
346 #address-cells = <1>;
350 ethsys: syscon@1e000000 {
351 compatible = "mediatek,mt7621-ethsys",
353 reg = <0x1e000000 0x1000>;
357 ethernet: ethernet@1e100000 {
358 compatible = "mediatek,mt7621-eth";
359 reg = <0x1e100000 0x10000>;
361 clocks = <&sysclock>;
362 clock-names = "ethif";
364 #address-cells = <1>;
367 resets = <&rstctrl 6 &rstctrl 23>;
368 reset-names = "fe", "eth";
370 interrupt-parent = <&gic>;
371 interrupts = <GIC_SHARED 3 IRQ_TYPE_LEVEL_HIGH>;
373 mediatek,ethsys = <ðsys>;
377 compatible = "mediatek,eth-mac";
387 compatible = "mediatek,eth-mac";
391 phy-handle = <&phy5>;
394 #address-cells = <1>;
397 phy5: ethernet-phy@5 {
403 compatible = "mediatek,mt7621";
404 #address-cells = <1>;
408 resets = <&rstctrl 2>;
412 #address-cells = <1>;
456 compatible = "mediatek,mt7621-gsw";
457 reg = <0x1e110000 0x8000>;
458 interrupt-parent = <&gic>;
459 interrupts = <GIC_SHARED 23 IRQ_TYPE_LEVEL_HIGH>;
462 pcie: pcie@1e140000 {
463 compatible = "mediatek,mt7621-pci";
464 reg = <0x1e140000 0x100 /* host-pci bridge registers */
465 0x1e142000 0x100 /* pcie port 0 RC control registers */
466 0x1e143000 0x100 /* pcie port 1 RC control registers */
467 0x1e144000 0x100>; /* pcie port 2 RC control registers */
468 #address-cells = <3>;
471 pinctrl-names = "default";
472 pinctrl-0 = <&pcie_pins>;
478 0x02000000 0 0x00000000 0x60000000 0 0x10000000 /* pci memory */
479 0x01000000 0 0x00000000 0x1e160000 0 0x00010000 /* io space */
482 #interrupt-cells = <1>;
483 interrupt-map-mask = <0xF0000 0 0 1>;
484 interrupt-map = <0x10000 0 0 1 &gic GIC_SHARED 4 IRQ_TYPE_LEVEL_HIGH>,
485 <0x20000 0 0 1 &gic GIC_SHARED 24 IRQ_TYPE_LEVEL_HIGH>,
486 <0x30000 0 0 1 &gic GIC_SHARED 25 IRQ_TYPE_LEVEL_HIGH>;
490 resets = <&rstctrl 23 &rstctrl 24 &rstctrl 25 &rstctrl 26>;
491 reset-names = "pcie", "pcie0", "pcie1", "pcie2";
492 clocks = <&clkctrl 24 &clkctrl 25 &clkctrl 26>;
493 clock-names = "pcie0", "pcie1", "pcie2";
494 phys = <&pcie0_phy 0>, <&pcie0_phy 1>, <&pcie1_phy 0>;
495 phy-names = "pcie-phy0", "pcie-phy1", "pcie-phy2";
498 reg = <0x0000 0 0 0 0>;
499 #address-cells = <3>;
502 bus-range = <0x00 0xff>;
506 reg = <0x0800 0 0 0 0>;
507 #address-cells = <3>;
510 bus-range = <0x00 0xff>;
514 reg = <0x1000 0 0 0 0>;
515 #address-cells = <3>;
518 bus-range = <0x00 0xff>;
522 pcie0_phy: pcie-phy@1e149000 {
523 compatible = "mediatek,mt7621-pci-phy";
524 reg = <0x1e149000 0x0700>;
528 pcie1_phy: pcie-phy@1e14a000 {
529 compatible = "mediatek,mt7621-pci-phy";
530 reg = <0x1e14a000 0x0700>;