emac_rockchip.txt 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. * ARC EMAC 10/100 Ethernet platform driver for Rockchip Rk3066/RK3188 SoCs
  2. Required properties:
  3. - compatible: Should be "rockchip,rk3066-emac" or "rockchip,rk3188-emac"
  4. according to the target SoC.
  5. - reg: Address and length of the register set for the device
  6. - interrupts: Should contain the EMAC interrupts
  7. - rockchip,grf: phandle to the syscon grf used to control speed and mode
  8. for emac.
  9. - phy: see ethernet.txt file in the same directory.
  10. - phy-mode: see ethernet.txt file in the same directory.
  11. Optional properties:
  12. - phy-supply: phandle to a regulator if the PHY needs one
  13. Clock handling:
  14. - clocks: Must contain an entry for each entry in clock-names.
  15. - clock-names: Shall be "hclk" for the host clock needed to calculate and set
  16. polling period of EMAC and "macref" for the reference clock needed to transfer
  17. data to and from the phy.
  18. Child nodes of the driver are the individual PHY devices connected to the
  19. MDIO bus. They must have a "reg" property given the PHY address on the MDIO bus.
  20. Examples:
  21. ethernet@10204000 {
  22. compatible = "rockchip,rk3188-emac";
  23. reg = <0xc0fc2000 0x3c>;
  24. interrupts = <6>;
  25. mac-address = [ 00 11 22 33 44 55 ];
  26. clocks = <&cru HCLK_EMAC>, <&cru SCLK_MAC>;
  27. clock-names = "hclk", "macref";
  28. pinctrl-names = "default";
  29. pinctrl-0 = <&emac_xfer>, <&emac_mdio>, <&phy_int>;
  30. rockchip,grf = <&grf>;
  31. phy = <&phy0>;
  32. phy-mode = "rmii";
  33. phy-supply = <&vcc_rmii>;
  34. #address-cells = <1>;
  35. #size-cells = <0>;
  36. phy0: ethernet-phy@0 {
  37. reg = <1>;
  38. };
  39. };