apm-xgene-enet.txt 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. APM X-Gene SoC Ethernet nodes
  2. Ethernet nodes are defined to describe on-chip ethernet interfaces in
  3. APM X-Gene SoC.
  4. Required properties for all the ethernet interfaces:
  5. - compatible: Should be "apm,xgene-enet"
  6. - reg: Address and length of the register set for the device. It contains the
  7. information of registers in the same order as described by reg-names
  8. - reg-names: Should contain the register set names
  9. - "enet_csr": Ethernet control and status register address space
  10. - "ring_csr": Descriptor ring control and status register address space
  11. - "ring_cmd": Descriptor ring command register address space
  12. - interrupts: Ethernet main interrupt
  13. - clocks: Reference to the clock entry.
  14. - local-mac-address: MAC address assigned to this device
  15. - phy-connection-type: Interface type between ethernet device and PHY device
  16. Required properties for ethernet interfaces that have external PHY:
  17. - phy-handle: Reference to a PHY node connected to this device
  18. - mdio: Device tree subnode with the following required properties:
  19. - compatible: Must be "apm,xgene-mdio".
  20. - #address-cells: Must be <1>.
  21. - #size-cells: Must be <0>.
  22. For the phy on the mdio bus, there must be a node with the following fields:
  23. - compatible: PHY identifier. Please refer ./phy.txt for the format.
  24. - reg: The ID number for the phy.
  25. Optional properties:
  26. - status: Should be "ok" or "disabled" for enabled/disabled. Default is "ok".
  27. Example:
  28. menetclk: menetclk {
  29. compatible = "apm,xgene-device-clock";
  30. clock-output-names = "menetclk";
  31. status = "ok";
  32. };
  33. menet: ethernet@17020000 {
  34. compatible = "apm,xgene-enet";
  35. status = "disabled";
  36. reg = <0x0 0x17020000 0x0 0xd100>,
  37. <0x0 0X17030000 0x0 0X400>,
  38. <0x0 0X10000000 0x0 0X200>;
  39. reg-names = "enet_csr", "ring_csr", "ring_cmd";
  40. interrupts = <0x0 0x3c 0x4>;
  41. clocks = <&menetclk 0>;
  42. local-mac-address = [00 01 73 00 00 01];
  43. phy-connection-type = "rgmii";
  44. phy-handle = <&menetphy>;
  45. mdio {
  46. compatible = "apm,xgene-mdio";
  47. #address-cells = <1>;
  48. #size-cells = <0>;
  49. menetphy: menetphy@3 {
  50. compatible = "ethernet-phy-id001c.c915";
  51. reg = <0x3>;
  52. };
  53. };
  54. };
  55. /* Board-specific peripheral configurations */
  56. &menet {
  57. status = "ok";
  58. };