|
677 | 677 | status = "disabled";
|
678 | 678 | };
|
679 | 679 |
|
| 680 | + gmac0: ethernet@ffbd0000 { |
| 681 | + compatible = "rockchip,rk3528-gmac", "snps,dwmac-4.20a"; |
| 682 | + reg = <0x0 0xffbd0000 0x0 0x10000>; |
| 683 | + clocks = <&cru CLK_GMAC0_SRC>, <&cru CLK_GMAC0_RMII_50M>, |
| 684 | + <&cru CLK_GMAC0_RX>, <&cru CLK_GMAC0_TX>, |
| 685 | + <&cru PCLK_MAC_VO>, <&cru ACLK_MAC_VO>; |
| 686 | + clock-names = "stmmaceth", "clk_mac_ref", |
| 687 | + "mac_clk_rx", "mac_clk_tx", |
| 688 | + "pclk_mac", "aclk_mac"; |
| 689 | + interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>, |
| 690 | + <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>; |
| 691 | + interrupt-names = "macirq", "eth_wake_irq"; |
| 692 | + phy-handle = <&rmii0_phy>; |
| 693 | + phy-mode = "rmii"; |
| 694 | + resets = <&cru SRST_A_MAC_VO>; |
| 695 | + reset-names = "stmmaceth"; |
| 696 | + rockchip,grf = <&vo_grf>; |
| 697 | + snps,axi-config = <&gmac0_stmmac_axi_setup>; |
| 698 | + snps,mixed-burst; |
| 699 | + snps,mtl-rx-config = <&gmac0_mtl_rx_setup>; |
| 700 | + snps,mtl-tx-config = <&gmac0_mtl_tx_setup>; |
| 701 | + snps,tso; |
| 702 | + status = "disabled"; |
| 703 | + |
| 704 | + mdio0: mdio { |
| 705 | + compatible = "snps,dwmac-mdio"; |
| 706 | + #address-cells = <0x1>; |
| 707 | + #size-cells = <0x0>; |
| 708 | + |
| 709 | + rmii0_phy: ethernet-phy@2 { |
| 710 | + compatible = "ethernet-phy-ieee802.3-c22"; |
| 711 | + reg = <0x2>; |
| 712 | + clocks = <&cru CLK_MACPHY>; |
| 713 | + phy-is-integrated; |
| 714 | + pinctrl-names = "default"; |
| 715 | + pinctrl-0 = <&fephym0_led_link>, |
| 716 | + <&fephym0_led_spd>; |
| 717 | + resets = <&cru SRST_MACPHY>; |
| 718 | + }; |
| 719 | + }; |
| 720 | + |
| 721 | + gmac0_stmmac_axi_setup: stmmac-axi-config { |
| 722 | + snps,blen = <0 0 0 0 16 8 4>; |
| 723 | + snps,rd_osr_lmt = <8>; |
| 724 | + snps,wr_osr_lmt = <4>; |
| 725 | + }; |
| 726 | + |
| 727 | + gmac0_mtl_rx_setup: rx-queues-config { |
| 728 | + snps,rx-queues-to-use = <1>; |
| 729 | + queue0 {}; |
| 730 | + }; |
| 731 | + |
| 732 | + gmac0_mtl_tx_setup: tx-queues-config { |
| 733 | + snps,tx-queues-to-use = <1>; |
| 734 | + queue0 {}; |
| 735 | + }; |
| 736 | + }; |
| 737 | + |
| 738 | + gmac1: ethernet@ffbe0000 { |
| 739 | + compatible = "rockchip,rk3528-gmac", "snps,dwmac-4.20a"; |
| 740 | + reg = <0x0 0xffbe0000 0x0 0x10000>; |
| 741 | + clocks = <&cru CLK_GMAC1_SRC_VPU>, |
| 742 | + <&cru CLK_GMAC1_RMII_VPU>, |
| 743 | + <&cru PCLK_MAC_VPU>, |
| 744 | + <&cru ACLK_MAC_VPU>; |
| 745 | + clock-names = "stmmaceth", |
| 746 | + "clk_mac_ref", |
| 747 | + "pclk_mac", |
| 748 | + "aclk_mac"; |
| 749 | + interrupts = <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>, |
| 750 | + <GIC_SPI 124 IRQ_TYPE_LEVEL_HIGH>; |
| 751 | + interrupt-names = "macirq", "eth_wake_irq"; |
| 752 | + resets = <&cru SRST_A_MAC>; |
| 753 | + reset-names = "stmmaceth"; |
| 754 | + rockchip,grf = <&vpu_grf>; |
| 755 | + snps,axi-config = <&gmac1_stmmac_axi_setup>; |
| 756 | + snps,mixed-burst; |
| 757 | + snps,mtl-rx-config = <&gmac1_mtl_rx_setup>; |
| 758 | + snps,mtl-tx-config = <&gmac1_mtl_tx_setup>; |
| 759 | + snps,tso; |
| 760 | + status = "disabled"; |
| 761 | + |
| 762 | + mdio1: mdio { |
| 763 | + compatible = "snps,dwmac-mdio"; |
| 764 | + #address-cells = <0x1>; |
| 765 | + #size-cells = <0x0>; |
| 766 | + }; |
| 767 | + |
| 768 | + gmac1_stmmac_axi_setup: stmmac-axi-config { |
| 769 | + snps,blen = <0 0 0 0 16 8 4>; |
| 770 | + snps,rd_osr_lmt = <8>; |
| 771 | + snps,wr_osr_lmt = <4>; |
| 772 | + }; |
| 773 | + |
| 774 | + gmac1_mtl_rx_setup: rx-queues-config { |
| 775 | + snps,rx-queues-to-use = <1>; |
| 776 | + queue0 {}; |
| 777 | + }; |
| 778 | + |
| 779 | + gmac1_mtl_tx_setup: tx-queues-config { |
| 780 | + snps,tx-queues-to-use = <1>; |
| 781 | + queue0 {}; |
| 782 | + }; |
| 783 | + }; |
| 784 | + |
680 | 785 | sdhci: mmc@ffbf0000 {
|
681 | 786 | compatible = "rockchip,rk3528-dwcmshc",
|
682 | 787 | "rockchip,rk3588-dwcmshc";
|
|
0 commit comments