1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 #include <dt-bindings/interrupt-controller/mips-gic.h>
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/clock/mt7621-clk.h>
5 #include <dt-bindings/reset/mt7621-reset.h>
8 compatible = "mediatek,mt7621-soc";
18 compatible = "mips,mips1004Kc";
24 compatible = "mips,mips1004Kc";
31 compatible = "mti,cpu-interrupt-controller";
34 #interrupt-cells = <1>;
39 mmc_fixed_3v3: regulator-3v3 {
40 compatible = "regulator-fixed";
45 regulator-max-microvolt = <3300000>;
46 regulator-min-microvolt = <3300000>;
47 regulator-name = "mmc_power";
50 mmc_fixed_1v8_io: regulator-1v8 {
51 compatible = "regulator-fixed";
56 regulator-max-microvolt = <1800000>;
57 regulator-min-microvolt = <1800000>;
58 regulator-name = "mmc_io";
62 compatible = "ralink,mt7621-pinctrl";
71 mdio_pins: mdio0-pins {
78 nand_pins: nand0-pins {
90 pcie_pins: pcie0-pins {
97 rgmii1_pins: rgmii1-pins {
104 rgmii2_pins: rgmii2-pins {
111 sdhci_pins: sdhci0-pins {
118 spi_pins: spi0-pins {
125 uart1_pins: uart1-pins {
132 uart2_pins: uart2-pins {
139 uart3_pins: uart3-pins {
147 palmbus: palmbus@1e000000 {
148 compatible = "palmbus";
149 reg = <0x1e000000 0x100000>;
150 ranges = <0x0 0x1e000000 0x0fffff>;
152 #address-cells = <1>;
156 compatible = "mediatek,mt7621-sysc", "syscon";
162 clock-output-names = "xtal", "cpu", "bus",
163 "50m", "125m", "150m",
166 ralink,memctl = <&memc>;
170 compatible = "mediatek,mt7621-wdt";
172 mediatek,sysctl = <&sysc>;
176 compatible = "mediatek,mt7621-gpio";
180 #interrupt-cells = <2>;
183 gpio-ranges = <&pinctrl 0 0 95>;
185 interrupt-controller;
186 interrupt-parent = <&gic>;
187 interrupts = <GIC_SHARED 12 IRQ_TYPE_LEVEL_HIGH>;
191 compatible = "mediatek,mt7621-i2c";
194 #address-cells = <1>;
197 clocks = <&sysc MT7621_CLK_I2C>;
200 pinctrl-names = "default";
201 pinctrl-0 = <&i2c_pins>;
203 resets = <&sysc MT7621_RST_I2C>;
209 memc: memory-controller@5000 {
210 compatible = "mediatek,mt7621-memc", "syscon";
211 reg = <0x5000 0x1000>;
214 serial0: serial@c00 {
215 compatible = "ns16550a";
221 clocks = <&sysc MT7621_CLK_UART1>;
223 interrupt-parent = <&gic>;
224 interrupts = <GIC_SHARED 26 IRQ_TYPE_LEVEL_HIGH>;
228 pinctrl-names = "default";
229 pinctrl-0 = <&uart1_pins>;
232 serial1: serial@d00 {
233 compatible = "ns16550a";
239 clocks = <&sysc MT7621_CLK_UART2>;
241 interrupt-parent = <&gic>;
242 interrupts = <GIC_SHARED 27 IRQ_TYPE_LEVEL_HIGH>;
246 pinctrl-names = "default";
247 pinctrl-0 = <&uart2_pins>;
252 serial2: serial@e00 {
253 compatible = "ns16550a";
259 clocks = <&sysc MT7621_CLK_UART3>;
261 interrupt-parent = <&gic>;
262 interrupts = <GIC_SHARED 28 IRQ_TYPE_LEVEL_HIGH>;
266 pinctrl-names = "default";
267 pinctrl-0 = <&uart3_pins>;
273 compatible = "ralink,mt7621-spi";
276 #address-cells = <1>;
280 clocks = <&sysc MT7621_CLK_SPI>;
282 pinctrl-names = "default";
283 pinctrl-0 = <&spi_pins>;
286 resets = <&sysc MT7621_RST_SPI>;
293 compatible = "mediatek,mt7620-mmc";
294 reg = <0x1e130000 0x4000>;
301 clocks = <&sysc MT7621_CLK_SHXC>,
302 <&sysc MT7621_CLK_50M>;
303 clock-names = "source", "hclk";
307 interrupt-parent = <&gic>;
308 interrupts = <GIC_SHARED 20 IRQ_TYPE_LEVEL_HIGH>;
310 max-frequency = <48000000>;
312 pinctrl-names = "default", "state_uhs";
313 pinctrl-0 = <&sdhci_pins>;
314 pinctrl-1 = <&sdhci_pins>;
316 vmmc-supply = <&mmc_fixed_3v3>;
317 vqmmc-supply = <&mmc_fixed_1v8_io>;
323 compatible = "mediatek,mt8173-xhci", "mediatek,mtk-xhci";
324 reg = <0x1e1c0000 0x1000
326 reg-names = "mac", "ippc";
328 #address-cells = <1>;
331 clocks = <&sysc MT7621_CLK_XTAL>;
332 clock-names = "sys_ck";
334 interrupt-parent = <&gic>;
335 interrupts = <GIC_SHARED 22 IRQ_TYPE_LEVEL_HIGH>;
338 gic: interrupt-controller@1fbc0000 {
339 compatible = "mti,gic";
340 reg = <0x1fbc0000 0x2000>;
342 #interrupt-cells = <3>;
343 interrupt-controller;
345 mti,reserved-cpu-vectors = <7>;
348 compatible = "mti,gic-timer";
349 clocks = <&sysc MT7621_CLK_CPU>;
350 interrupts = <GIC_LOCAL 1 IRQ_TYPE_NONE>;
355 compatible = "mti,mips-cpc";
356 reg = <0x1fbf0000 0x8000>;
359 cdmm: cdmm@1fbf8000 {
360 compatible = "mti,mips-cdmm";
361 reg = <0x1fbf8000 0x8000>;
364 ethernet: ethernet@1e100000 {
365 compatible = "mediatek,mt7621-eth";
366 reg = <0x1e100000 0x10000>;
368 #address-cells = <1>;
371 clock-names = "fe", "ethif";
372 clocks = <&sysc MT7621_CLK_FE>, <&sysc MT7621_CLK_ETH>;
374 interrupt-parent = <&gic>;
375 interrupts = <GIC_SHARED 3 IRQ_TYPE_LEVEL_HIGH>;
377 pinctrl-names = "default";
378 pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>, <&rgmii2_pins>;
380 reset-names = "fe", "eth";
381 resets = <&sysc MT7621_RST_FE>, <&sysc MT7621_RST_ETH>;
383 mediatek,ethsys = <&sysc>;
386 #address-cells = <1>;
390 compatible = "mediatek,mt7621";
393 #interrupt-cells = <1>;
394 interrupt-controller;
395 interrupts = <GIC_SHARED 23 IRQ_TYPE_LEVEL_HIGH>;
398 resets = <&sysc MT7621_RST_MCM>;
403 #address-cells = <1>;
466 compatible = "mediatek,eth-mac";
479 compatible = "mediatek,eth-mac";
493 pcie: pcie@1e140000 {
494 compatible = "mediatek,mt7621-pci";
495 reg = <0x1e140000 0x100>, /* host-pci bridge registers */
496 <0x1e142000 0x100>, /* pcie port 0 RC control registers */
497 <0x1e143000 0x100>, /* pcie port 1 RC control registers */
498 <0x1e144000 0x100>; /* pcie port 2 RC control registers */
499 ranges = <0x02000000 0 0x60000000 0x60000000 0 0x10000000>, /* pci memory */
500 <0x01000000 0 0x00000000 0x1e160000 0 0x00010000>; /* io space */
502 #address-cells = <3>;
503 #interrupt-cells = <1>;
508 interrupt-map-mask = <0xf800 0 0 0>;
509 interrupt-map = <0x0000 0 0 0 &gic GIC_SHARED 4 IRQ_TYPE_LEVEL_HIGH>,
510 <0x0800 0 0 0 &gic GIC_SHARED 24 IRQ_TYPE_LEVEL_HIGH>,
511 <0x1000 0 0 0 &gic GIC_SHARED 25 IRQ_TYPE_LEVEL_HIGH>;
513 pinctrl-names = "default";
514 pinctrl-0 = <&pcie_pins>;
516 reset-gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
521 reg = <0x0000 0 0 0 0>;
524 #address-cells = <3>;
525 #interrupt-cells = <1>;
528 clocks = <&sysc MT7621_CLK_PCIE0>;
532 interrupt-map-mask = <0 0 0 0>;
533 interrupt-map = <0 0 0 0 &gic GIC_SHARED 4 IRQ_TYPE_LEVEL_HIGH>;
535 phy-names = "pcie-phy0";
536 phys = <&pcie0_phy 1>;
538 resets = <&sysc MT7621_RST_PCIE0>;
542 reg = <0x0800 0 0 0 0>;
545 #address-cells = <3>;
546 #interrupt-cells = <1>;
549 clocks = <&sysc MT7621_CLK_PCIE1>;
553 interrupt-map-mask = <0 0 0 0>;
554 interrupt-map = <0 0 0 0 &gic GIC_SHARED 24 IRQ_TYPE_LEVEL_HIGH>;
556 phy-names = "pcie-phy1";
557 phys = <&pcie0_phy 1>;
559 resets = <&sysc MT7621_RST_PCIE1>;
563 reg = <0x1000 0 0 0 0>;
566 #address-cells = <3>;
567 #interrupt-cells = <1>;
570 clocks = <&sysc MT7621_CLK_PCIE2>;
574 interrupt-map-mask = <0 0 0 0>;
575 interrupt-map = <0 0 0 0 &gic GIC_SHARED 25 IRQ_TYPE_LEVEL_HIGH>;
577 phy-names = "pcie-phy2";
578 phys = <&pcie2_phy 0>;
580 resets = <&sysc MT7621_RST_PCIE2>;
584 pcie0_phy: pcie-phy@1e149000 {
585 compatible = "mediatek,mt7621-pci-phy";
586 reg = <0x1e149000 0x0700>;
590 clocks = <&sysc MT7621_CLK_XTAL>;
593 pcie2_phy: pcie-phy@1e14a000 {
594 compatible = "mediatek,mt7621-pci-phy";
595 reg = <0x1e14a000 0x0700>;
599 clocks = <&sysc MT7621_CLK_XTAL>;