meson-dwmac.txt 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. * Amlogic Meson DWMAC Ethernet controller
  2. The device inherits all the properties of the dwmac/stmmac devices
  3. described in the file stmmac.txt in the current directory with the
  4. following changes.
  5. Required properties on all platforms:
  6. - compatible: Depending on the platform this should be one of:
  7. - "amlogic,meson6-dwmac"
  8. - "amlogic,meson8b-dwmac"
  9. - "amlogic,meson-gxbb-dwmac"
  10. Additionally "snps,dwmac" and any applicable more
  11. detailed version number described in net/stmmac.txt
  12. should be used.
  13. - reg: The first register range should be the one of the DWMAC
  14. controller. The second range is is for the Amlogic specific
  15. configuration (for example the PRG_ETHERNET register range
  16. on Meson8b and newer)
  17. Required properties on Meson8b and newer:
  18. - clock-names: Should contain the following:
  19. - "stmmaceth" - see stmmac.txt
  20. - "clkin0" - first parent clock of the internal mux
  21. - "clkin1" - second parent clock of the internal mux
  22. Example for Meson6:
  23. ethmac: ethernet@c9410000 {
  24. compatible = "amlogic,meson6-dwmac", "snps,dwmac";
  25. reg = <0xc9410000 0x10000
  26. 0xc1108108 0x4>;
  27. interrupts = <0 8 1>;
  28. interrupt-names = "macirq";
  29. clocks = <&clk81>;
  30. clock-names = "stmmaceth";
  31. }
  32. Example for GXBB:
  33. ethmac: ethernet@c9410000 {
  34. compatible = "amlogic,meson-gxbb-dwmac", "snps,dwmac";
  35. reg = <0x0 0xc9410000 0x0 0x10000>,
  36. <0x0 0xc8834540 0x0 0x8>;
  37. interrupts = <0 8 1>;
  38. interrupt-names = "macirq";
  39. clocks = <&clkc CLKID_ETH>,
  40. <&clkc CLKID_FCLK_DIV2>,
  41. <&clkc CLKID_MPLL2>;
  42. clock-names = "stmmaceth", "clkin0", "clkin1";
  43. phy-mode = "rgmii";
  44. status = "disabled";
  45. };