socionext,uniphier-ave4.txt 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. * Socionext AVE ethernet controller
  2. This describes the devicetree bindings for AVE ethernet controller
  3. implemented on Socionext UniPhier SoCs.
  4. Required properties:
  5. - compatible: Should be
  6. - "socionext,uniphier-pro4-ave4" : for Pro4 SoC
  7. - "socionext,uniphier-pxs2-ave4" : for PXs2 SoC
  8. - "socionext,uniphier-ld11-ave4" : for LD11 SoC
  9. - "socionext,uniphier-ld20-ave4" : for LD20 SoC
  10. - "socionext,uniphier-pxs3-ave4" : for PXs3 SoC
  11. - reg: Address where registers are mapped and size of region.
  12. - interrupts: Should contain the MAC interrupt.
  13. - phy-mode: See ethernet.txt in the same directory. Allow to choose
  14. "rgmii", "rmii", "mii", or "internal" according to the PHY.
  15. The acceptable mode is SoC-dependent.
  16. - phy-handle: Should point to the external phy device.
  17. See ethernet.txt file in the same directory.
  18. - clocks: A phandle to the clock for the MAC.
  19. For Pro4 SoC, that is "socionext,uniphier-pro4-ave4",
  20. another MAC clock, GIO bus clock and PHY clock are also required.
  21. - clock-names: Should contain
  22. - "ether", "ether-gb", "gio", "ether-phy" for Pro4 SoC
  23. - "ether" for others
  24. - resets: A phandle to the reset control for the MAC. For Pro4 SoC,
  25. GIO bus reset is also required.
  26. - reset-names: Should contain
  27. - "ether", "gio" for Pro4 SoC
  28. - "ether" for others
  29. - socionext,syscon-phy-mode: A phandle to syscon with one argument
  30. that configures phy mode. The argument is the ID of MAC instance.
  31. Optional properties:
  32. - local-mac-address: See ethernet.txt in the same directory.
  33. Required subnode:
  34. - mdio: A container for child nodes representing phy nodes.
  35. See phy.txt in the same directory.
  36. Example:
  37. ether: ethernet@65000000 {
  38. compatible = "socionext,uniphier-ld20-ave4";
  39. reg = <0x65000000 0x8500>;
  40. interrupts = <0 66 4>;
  41. phy-mode = "rgmii";
  42. phy-handle = <&ethphy>;
  43. clock-names = "ether";
  44. clocks = <&sys_clk 6>;
  45. reset-names = "ether";
  46. resets = <&sys_rst 6>;
  47. socionext,syscon-phy-mode = <&soc_glue 0>;
  48. local-mac-address = [00 00 00 00 00 00];
  49. mdio {
  50. #address-cells = <1>;
  51. #size-cells = <0>;
  52. ethphy: ethphy@1 {
  53. reg = <1>;
  54. };
  55. };
  56. };