stmmac.txt 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. * STMicroelectronics 10/100/1000 Ethernet driver (GMAC)
  2. Required properties:
  3. - compatible: Should be "snps,dwmac-<ip_version>" "snps,dwmac"
  4. For backwards compatibility: "st,spear600-gmac" is also supported.
  5. - reg: Address and length of the register set for the device
  6. - interrupt-parent: Should be the phandle for the interrupt controller
  7. that services interrupts for this device
  8. - interrupts: Should contain the STMMAC interrupts
  9. - interrupt-names: Should contain the interrupt names "macirq"
  10. "eth_wake_irq" if this interrupt is supported in the "interrupts"
  11. property
  12. - phy-mode: See ethernet.txt file in the same directory.
  13. - snps,reset-gpio gpio number for phy reset.
  14. - snps,reset-active-low boolean flag to indicate if phy reset is active low.
  15. - snps,reset-delays-us is triplet of delays
  16. The 1st cell is reset pre-delay in micro seconds.
  17. The 2nd cell is reset pulse in micro seconds.
  18. The 3rd cell is reset post-delay in micro seconds.
  19. Optional properties:
  20. - resets: Should contain a phandle to the STMMAC reset signal, if any
  21. - reset-names: Should contain the reset signal name "stmmaceth", if a
  22. reset phandle is given
  23. - max-frame-size: See ethernet.txt file in the same directory
  24. - clocks: If present, the first clock should be the GMAC main clock and
  25. the second clock should be peripheral's register interface clock. Further
  26. clocks may be specified in derived bindings.
  27. - clock-names: One name for each entry in the clocks property, the
  28. first one should be "stmmaceth" and the second one should be "pclk".
  29. - clk_ptp_ref: this is the PTP reference clock; in case of the PTP is
  30. available this clock is used for programming the Timestamp Addend Register.
  31. If not passed then the system clock will be used and this is fine on some
  32. platforms.
  33. - tx-fifo-depth: See ethernet.txt file in the same directory
  34. - rx-fifo-depth: See ethernet.txt file in the same directory
  35. - snps,pbl Programmable Burst Length
  36. - snps,aal Address-Aligned Beats
  37. - snps,fixed-burst Program the DMA to use the fixed burst mode
  38. - snps,mixed-burst Program the DMA to use the mixed burst mode
  39. - snps,force_thresh_dma_mode Force DMA to use the threshold mode for
  40. both tx and rx
  41. - snps,force_sf_dma_mode Force DMA to use the Store and Forward
  42. mode for both tx and rx. This flag is
  43. ignored if force_thresh_dma_mode is set.
  44. - snps,multicast-filter-bins: Number of multicast filter hash bins
  45. supported by this device instance
  46. - snps,perfect-filter-entries: Number of perfect filter entries supported
  47. by this device instance
  48. - snps,ps-speed: port selection speed that can be passed to the core when
  49. PCS is supported. For example, this is used in case of SGMII
  50. and MAC2MAC connection.
  51. - AXI BUS Mode parameters: below the list of all the parameters to program the
  52. AXI register inside the DMA module:
  53. - snps,lpi_en: enable Low Power Interface
  54. - snps,xit_frm: unlock on WoL
  55. - snps,wr_osr_lmt: max write outstanding req. limit
  56. - snps,rd_osr_lmt: max read outstanding req. limit
  57. - snps,kbbe: do not cross 1KiB boundary.
  58. - snps,axi_all: align address
  59. - snps,blen: this is a vector of supported burst length.
  60. - snps,fb: fixed-burst
  61. - snps,mb: mixed-burst
  62. - snps,rb: rebuild INCRx Burst
  63. - snps,tso: this enables the TSO feature otherwise it will be managed by
  64. MAC HW capability register.
  65. - mdio: with compatible = "snps,dwmac-mdio", create and register mdio bus.
  66. Examples:
  67. stmmac_axi_setup: stmmac-axi-config {
  68. snps,wr_osr_lmt = <0xf>;
  69. snps,rd_osr_lmt = <0xf>;
  70. snps,blen = <256 128 64 32 0 0 0>;
  71. };
  72. gmac0: ethernet@e0800000 {
  73. compatible = "st,spear600-gmac";
  74. reg = <0xe0800000 0x8000>;
  75. interrupt-parent = <&vic1>;
  76. interrupts = <24 23>;
  77. interrupt-names = "macirq", "eth_wake_irq";
  78. mac-address = [000000000000]; /* Filled in by U-Boot */
  79. max-frame-size = <3800>;
  80. phy-mode = "gmii";
  81. snps,multicast-filter-bins = <256>;
  82. snps,perfect-filter-entries = <128>;
  83. rx-fifo-depth = <16384>;
  84. tx-fifo-depth = <16384>;
  85. clocks = <&clock>;
  86. clock-names = "stmmaceth";
  87. snps,axi-config = <&stmmac_axi_setup>;
  88. mdio0 {
  89. #address-cells = <1>;
  90. #size-cells = <0>;
  91. compatible = "snps,dwmac-mdio";
  92. phy1: ethernet-phy@0 {
  93. };
  94. };
  95. };