socionext-netsec.txt 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. * Socionext NetSec Ethernet Controller IP
  2. Required properties:
  3. - compatible: Should be "socionext,synquacer-netsec"
  4. - reg: Address and length of the control register area, followed by the
  5. address and length of the EEPROM holding the MAC address and
  6. microengine firmware
  7. - interrupts: Should contain ethernet controller interrupt
  8. - clocks: phandle to the PHY reference clock
  9. - clock-names: Should be "phy_ref_clk"
  10. - phy-mode: See ethernet.txt file in the same directory
  11. - phy-handle: See ethernet.txt in the same directory.
  12. - mdio device tree subnode: When the Netsec has a phy connected to its local
  13. mdio, there must be device tree subnode with the following
  14. required properties:
  15. - #address-cells: Must be <1>.
  16. - #size-cells: Must be <0>.
  17. For each phy on the mdio bus, there must be a node with the following
  18. fields:
  19. - compatible: Refer to phy.txt
  20. - reg: phy id used to communicate to phy.
  21. Optional properties: (See ethernet.txt file in the same directory)
  22. - dma-coherent: Boolean property, must only be present if memory
  23. accesses performed by the device are cache coherent.
  24. - local-mac-address: See ethernet.txt in the same directory.
  25. - mac-address: See ethernet.txt in the same directory.
  26. - max-speed: See ethernet.txt in the same directory.
  27. - max-frame-size: See ethernet.txt in the same directory.
  28. Example:
  29. eth0: ethernet@522d0000 {
  30. compatible = "socionext,synquacer-netsec";
  31. reg = <0 0x522d0000 0x0 0x10000>, <0 0x10000000 0x0 0x10000>;
  32. interrupts = <GIC_SPI 176 IRQ_TYPE_LEVEL_HIGH>;
  33. clocks = <&clk_netsec>;
  34. clock-names = "phy_ref_clk";
  35. phy-mode = "rgmii";
  36. max-speed = <1000>;
  37. max-frame-size = <9000>;
  38. phy-handle = <&phy1>;
  39. mdio {
  40. #address-cells = <1>;
  41. #size-cells = <0>;
  42. phy1: ethernet-phy@1 {
  43. compatible = "ethernet-phy-ieee802.3-c22";
  44. reg = <1>;
  45. };
  46. };