The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/contrib/device-tree/Bindings/net/emac_rockchip.txt

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

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

Cache object: 746b1c49f69555f98f4ca00796074792


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.