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>;
375 mediatek,switch = <&gsw>;
378 #address-cells = <1>;
381 phy1f: ethernet-phy@1f {
389 compatible = "mediatek,mt7621-gsw";
390 reg = <0x1e110000 0x8000>;
391 interrupt-parent = <&gic>;
392 interrupts = <GIC_SHARED 23 IRQ_TYPE_LEVEL_HIGH>;
395 pcie: pcie@1e140000 {
396 compatible = "mediatek,mt7621-pci";
397 reg = <0x1e140000 0x100 /* host-pci bridge registers */
398 0x1e142000 0x100 /* pcie port 0 RC control registers */
399 0x1e143000 0x100 /* pcie port 1 RC control registers */
400 0x1e144000 0x100>; /* pcie port 2 RC control registers */
401 #address-cells = <3>;
404 pinctrl-names = "default";
405 pinctrl-0 = <&pcie_pins>;
411 0x02000000 0 0x00000000 0x60000000 0 0x10000000 /* pci memory */
412 0x01000000 0 0x00000000 0x1e160000 0 0x00010000 /* io space */
415 #interrupt-cells = <1>;
416 interrupt-map-mask = <0xF0000 0 0 1>;
417 interrupt-map = <0x10000 0 0 1 &gic GIC_SHARED 4 IRQ_TYPE_LEVEL_HIGH>,
418 <0x20000 0 0 1 &gic GIC_SHARED 24 IRQ_TYPE_LEVEL_HIGH>,
419 <0x30000 0 0 1 &gic GIC_SHARED 25 IRQ_TYPE_LEVEL_HIGH>;
423 resets = <&rstctrl 23 &rstctrl 24 &rstctrl 25 &rstctrl 26>;
424 reset-names = "pcie", "pcie0", "pcie1", "pcie2";
425 clocks = <&clkctrl 24 &clkctrl 25 &clkctrl 26>;
426 clock-names = "pcie0", "pcie1", "pcie2";
427 phys = <&pcie0_port>, <&pcie1_port>, <&pcie2_port>;
428 phy-names = "pcie-phy0", "pcie-phy1", "pcie-phy2";
431 reg = <0x0000 0 0 0 0>;
432 #address-cells = <3>;
435 bus-range = <0x00 0xff>;
439 reg = <0x0800 0 0 0 0>;
440 #address-cells = <3>;
443 bus-range = <0x00 0xff>;
447 reg = <0x1000 0 0 0 0>;
448 #address-cells = <3>;
451 bus-range = <0x00 0xff>;
455 pcie0_phy: pcie-phy@1e149000 {
456 compatible = "mediatek,mt7621-pci-phy";
457 reg = <0x1e149000 0x0700>;
458 #address-cells = <1>;
461 pcie0_port: pcie-phy@0 {
466 pcie1_port: pcie-phy@1 {
472 pcie1_phy: pcie-phy@1e14a000 {
473 compatible = "mediatek,mt7621-pci-phy";
474 reg = <0x1e14a000 0x0700>;
475 #address-cells = <1>;
478 pcie2_port: pcie-phy@0 {