socfpga-dwmac.txt 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. Altera SOCFPGA SoC DWMAC controller
  2. This is a variant of the dwmac/stmmac driver an inherits all descriptions
  3. present in Documentation/devicetree/bindings/net/stmmac.txt.
  4. The device node has additional properties:
  5. Required properties:
  6. - compatible : Should contain "altr,socfpga-stmmac" along with
  7. "snps,dwmac" and any applicable more detailed
  8. designware version numbers documented in stmmac.txt
  9. - altr,sysmgr-syscon : Should be the phandle to the system manager node that
  10. encompasses the glue register, the register offset, and the register shift.
  11. - altr,f2h_ptp_ref_clk use f2h_ptp_ref_clk instead of default eosc1 clock
  12. for ptp ref clk. This affects all emacs as the clock is common.
  13. Optional properties:
  14. altr,emac-splitter: Should be the phandle to the emac splitter soft IP node if
  15. DWMAC controller is connected emac splitter.
  16. phy-mode: The phy mode the ethernet operates in
  17. altr,sgmii-to-sgmii-converter: phandle to the TSE SGMII converter
  18. This device node has additional phandle dependency, the sgmii converter:
  19. Required properties:
  20. - compatible : Should be altr,gmii-to-sgmii-2.0
  21. - reg-names : Should be "eth_tse_control_port"
  22. Example:
  23. gmii_to_sgmii_converter: phy@0x100000240 {
  24. compatible = "altr,gmii-to-sgmii-2.0";
  25. reg = <0x00000001 0x00000240 0x00000008>,
  26. <0x00000001 0x00000200 0x00000040>;
  27. reg-names = "eth_tse_control_port";
  28. clocks = <&sgmii_1_clk_0 &emac1 1 &sgmii_clk_125 &sgmii_clk_125>;
  29. clock-names = "tse_pcs_ref_clk_clock_connection", "tse_rx_cdr_refclk";
  30. };
  31. gmac0: ethernet@ff700000 {
  32. compatible = "altr,socfpga-stmmac", "snps,dwmac-3.70a", "snps,dwmac";
  33. altr,sysmgr-syscon = <&sysmgr 0x60 0>;
  34. status = "disabled";
  35. reg = <0xff700000 0x2000>;
  36. interrupts = <0 115 4>;
  37. interrupt-names = "macirq";
  38. mac-address = [00 00 00 00 00 00];/* Filled in by U-Boot */
  39. clocks = <&emac_0_clk>;
  40. clock-names = "stmmaceth";
  41. phy-mode = "sgmii";
  42. altr,gmii-to-sgmii-converter = <&gmii_to_sgmii_converter>;
  43. };