|
438 | 438 | dma-noncoherent; |
439 | 439 | ranges; |
440 | 440 |
|
| 441 | + eth0: ethernet@cac80000 { |
| 442 | + compatible = "spacemit,k3-dwmac", "snps,dwmac-5.40a"; |
| 443 | + reg = <0x0 0xcac80000 0x0 0x2000>; |
| 444 | + clocks = <&syscon_apmu CLK_APMU_EMAC0_BUS>, |
| 445 | + <&syscon_apmu CLK_APMU_EMAC0_1588>, |
| 446 | + <&syscon_apmu CLK_APMU_EMAC0_RGMII_TX>; |
| 447 | + clock-names = "stmmaceth", "ptp_ref", "tx"; |
| 448 | + interrupts = <131 IRQ_TYPE_LEVEL_HIGH>, |
| 449 | + <276 IRQ_TYPE_LEVEL_HIGH>; |
| 450 | + interrupt-names = "macirq", "eth_wake_irq"; |
| 451 | + resets = <&syscon_apmu RESET_APMU_EMAC0>; |
| 452 | + reset-names = "stmmaceth"; |
| 453 | + rx-fifo-depth = <8192>; |
| 454 | + tx-fifo-depth = <8192>; |
| 455 | + snps,multicast-filter-bins = <64>; |
| 456 | + snps,perfect-filter-entries = <32>; |
| 457 | + snps,aal; |
| 458 | + snps,tso; |
| 459 | + snps,txpbl = <8>; |
| 460 | + snps,rxpbl = <8>; |
| 461 | + snps,force_sf_dma_mode; |
| 462 | + snps,axi-config = <&gmac0_axi_setup>; |
| 463 | + spacemit,apmu = <&syscon_apmu 0x3e4 0x3e8>; |
| 464 | + status = "disabled"; |
| 465 | + |
| 466 | + mdio { |
| 467 | + compatible = "snps,dwmac-mdio"; |
| 468 | + #address-cells = <1>; |
| 469 | + #size-cells = <0>; |
| 470 | + }; |
| 471 | + |
| 472 | + gmac0_axi_setup: stmmac-axi-config { |
| 473 | + snps,wr_osr_lmt = <0xf>; |
| 474 | + snps,rd_osr_lmt = <0xf>; |
| 475 | + /* max axi burst len is 256 */ |
| 476 | + snps,blen = <256 128 64 32 16 0 0>; |
| 477 | + }; |
| 478 | + }; |
| 479 | + |
| 480 | + eth1: ethernet@cac82000 { |
| 481 | + compatible = "spacemit,k3-dwmac", "snps,dwmac-5.40a"; |
| 482 | + reg = <0x0 0xcac82000 0x0 0x2000>; |
| 483 | + clocks = <&syscon_apmu CLK_APMU_EMAC1_BUS>, |
| 484 | + <&syscon_apmu CLK_APMU_EMAC1_1588>, |
| 485 | + <&syscon_apmu CLK_APMU_EMAC1_RGMII_TX>; |
| 486 | + clock-names = "stmmaceth", "ptp_ref", "tx"; |
| 487 | + interrupts = <133 IRQ_TYPE_LEVEL_HIGH>, |
| 488 | + <277 IRQ_TYPE_LEVEL_HIGH>; |
| 489 | + interrupt-names = "macirq", "eth_wake_irq"; |
| 490 | + resets = <&syscon_apmu RESET_APMU_EMAC1>; |
| 491 | + reset-names = "stmmaceth"; |
| 492 | + rx-fifo-depth = <8192>; |
| 493 | + tx-fifo-depth = <8192>; |
| 494 | + snps,multicast-filter-bins = <64>; |
| 495 | + snps,perfect-filter-entries = <32>; |
| 496 | + snps,aal; |
| 497 | + snps,tso; |
| 498 | + snps,txpbl = <8>; |
| 499 | + snps,rxpbl = <8>; |
| 500 | + snps,force_sf_dma_mode; |
| 501 | + snps,axi-config = <&gmac1_axi_setup>; |
| 502 | + spacemit,apmu = <&syscon_apmu 0x3ec 0x3f0>; |
| 503 | + status = "disabled"; |
| 504 | + |
| 505 | + mdio { |
| 506 | + compatible = "snps,dwmac-mdio"; |
| 507 | + #address-cells = <1>; |
| 508 | + #size-cells = <0>; |
| 509 | + }; |
| 510 | + |
| 511 | + gmac1_axi_setup: stmmac-axi-config { |
| 512 | + snps,wr_osr_lmt = <0xf>; |
| 513 | + snps,rd_osr_lmt = <0xf>; |
| 514 | + /* max axi burst len is 256 */ |
| 515 | + snps,blen = <256 128 64 32 16 0 0>; |
| 516 | + }; |
| 517 | + }; |
| 518 | + |
| 519 | + eth2: ethernet@cac8e000 { |
| 520 | + compatible = "spacemit,k3-dwmac", "snps,dwmac-5.40a"; |
| 521 | + reg = <0x0 0xcac8e000 0x0 0x2000>; |
| 522 | + clocks = <&syscon_apmu CLK_APMU_EMAC2_BUS>, |
| 523 | + <&syscon_apmu CLK_APMU_EMAC2_1588>, |
| 524 | + <&syscon_apmu CLK_APMU_EMAC2_RGMII_TX>; |
| 525 | + clock-names = "stmmaceth", "ptp_ref", "tx"; |
| 526 | + interrupts = <130 IRQ_TYPE_LEVEL_HIGH>, |
| 527 | + <278 IRQ_TYPE_LEVEL_HIGH>; |
| 528 | + interrupt-names = "macirq", "eth_wake_irq"; |
| 529 | + resets = <&syscon_apmu RESET_APMU_EMAC2>; |
| 530 | + reset-names = "stmmaceth"; |
| 531 | + rx-fifo-depth = <4096>; |
| 532 | + tx-fifo-depth = <4096>; |
| 533 | + snps,multicast-filter-bins = <64>; |
| 534 | + snps,perfect-filter-entries = <32>; |
| 535 | + snps,aal; |
| 536 | + snps,tso; |
| 537 | + snps,txpbl = <8>; |
| 538 | + snps,rxpbl = <8>; |
| 539 | + snps,force_sf_dma_mode; |
| 540 | + snps,axi-config = <&gmac2_axi_setup>; |
| 541 | + spacemit,apmu = <&syscon_apmu 0x248 0x24c>; |
| 542 | + status = "disabled"; |
| 543 | + |
| 544 | + mdio { |
| 545 | + compatible = "snps,dwmac-mdio"; |
| 546 | + #address-cells = <1>; |
| 547 | + #size-cells = <0>; |
| 548 | + }; |
| 549 | + |
| 550 | + gmac2_axi_setup: stmmac-axi-config { |
| 551 | + snps,wr_osr_lmt = <0xf>; |
| 552 | + snps,rd_osr_lmt = <0xf>; |
| 553 | + /* max axi burst len is 256 */ |
| 554 | + snps,blen = <256 128 64 32 16 0 0>; |
| 555 | + }; |
| 556 | + }; |
| 557 | + |
441 | 558 | syscon_apbc: system-controller@d4015000 { |
442 | 559 | compatible = "spacemit,k3-syscon-apbc"; |
443 | 560 | reg = <0x0 0xd4015000 0x0 0x1000>; |
|
0 commit comments