snps,dwc-qos-ethernet.txt 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. * Synopsys DWC Ethernet QoS IP version 4.10 driver (GMAC)
  2. Required properties:
  3. - compatible: Should be "snps,dwc-qos-ethernet-4.10"
  4. - reg: Address and length of the register set for the device
  5. - clocks: Phandles to the reference clock and the bus clock
  6. - clock-names: Should be "phy_ref_clk" for the reference clock and "apb_pclk"
  7. for the bus clock.
  8. - interrupt-parent: Should be the phandle for the interrupt controller
  9. that services interrupts for this device
  10. - interrupts: Should contain the core's combined interrupt signal
  11. - phy-mode: See ethernet.txt file in the same directory
  12. Optional properties:
  13. - dma-coherent: Present if dma operations are coherent
  14. - mac-address: See ethernet.txt in the same directory
  15. - local-mac-address: See ethernet.txt in the same directory
  16. - snps,en-lpi: If present it enables use of the AXI low-power interface
  17. - snps,write-requests: Number of write requests that the AXI port can issue.
  18. It depends on the SoC configuration.
  19. - snps,read-requests: Number of read requests that the AXI port can issue.
  20. It depends on the SoC configuration.
  21. - snps,burst-map: Bitmap of allowed AXI burst lengts, with the LSB
  22. representing 4, then 8 etc.
  23. - snps,txpbl: DMA Programmable burst length for the TX DMA
  24. - snps,rxpbl: DMA Programmable burst length for the RX DMA
  25. - snps,en-tx-lpi-clockgating: Enable gating of the MAC TX clock during
  26. TX low-power mode.
  27. - phy-handle: See ethernet.txt file in the same directory
  28. - mdio device tree subnode: When the GMAC has a phy connected to its local
  29. mdio, there must be device tree subnode with the following
  30. required properties:
  31. - compatible: Must be "snps,dwc-qos-ethernet-mdio".
  32. - #address-cells: Must be <1>.
  33. - #size-cells: Must be <0>.
  34. For each phy on the mdio bus, there must be a node with the following
  35. fields:
  36. - reg: phy id used to communicate to phy.
  37. - device_type: Must be "ethernet-phy".
  38. - fixed-mode device tree subnode: see fixed-link.txt in the same directory
  39. Examples:
  40. ethernet2@40010000 {
  41. clock-names = "phy_ref_clk", "apb_pclk";
  42. clocks = <&clkc 17>, <&clkc 15>;
  43. compatible = "snps,dwc-qos-ethernet-4.10";
  44. interrupt-parent = <&intc>;
  45. interrupts = <0x0 0x1e 0x4>;
  46. reg = <0x40010000 0x4000>;
  47. phy-handle = <&phy2>;
  48. phy-mode = "gmii";
  49. snps,en-tx-lpi-clockgating;
  50. snps,en-lpi;
  51. snps,write-requests = <2>;
  52. snps,read-requests = <16>;
  53. snps,burst-map = <0x7>;
  54. snps,txpbl = <8>;
  55. snps,rxpbl = <2>;
  56. dma-coherent;
  57. mdio {
  58. #address-cells = <0x1>;
  59. #size-cells = <0x0>;
  60. phy2: phy@1 {
  61. compatible = "ethernet-phy-ieee802.3-c22";
  62. device_type = "ethernet-phy";
  63. reg = <0x1>;
  64. };
  65. };
  66. };