xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/net/hisilicon-femac.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunHisilicon Fast Ethernet MAC controller
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunRequired properties:
4*4882a593Smuzhiyun- compatible: should contain one of the following version strings:
5*4882a593Smuzhiyun	* "hisilicon,hisi-femac-v1"
6*4882a593Smuzhiyun	* "hisilicon,hisi-femac-v2"
7*4882a593Smuzhiyun	and the soc string "hisilicon,hi3516cv300-femac".
8*4882a593Smuzhiyun- reg: specifies base physical address(s) and size of the device registers.
9*4882a593Smuzhiyun  The first region is the MAC core register base and size.
10*4882a593Smuzhiyun  The second region is the global MAC control register.
11*4882a593Smuzhiyun- interrupts: should contain the MAC interrupt.
12*4882a593Smuzhiyun- clocks: A phandle to the MAC main clock.
13*4882a593Smuzhiyun- resets: should contain the phandle to the MAC reset signal(required) and
14*4882a593Smuzhiyun	the PHY reset signal(optional).
15*4882a593Smuzhiyun- reset-names: should contain the reset signal name "mac"(required)
16*4882a593Smuzhiyun	and "phy"(optional).
17*4882a593Smuzhiyun- phy-mode: see ethernet.txt [1].
18*4882a593Smuzhiyun- phy-handle: see ethernet.txt [1].
19*4882a593Smuzhiyun- hisilicon,phy-reset-delays-us: triplet of delays if PHY reset signal given.
20*4882a593Smuzhiyun	The 1st cell is reset pre-delay in micro seconds.
21*4882a593Smuzhiyun	The 2nd cell is reset pulse in micro seconds.
22*4882a593Smuzhiyun	The 3rd cell is reset post-delay in micro seconds.
23*4882a593Smuzhiyun
24*4882a593SmuzhiyunThe MAC address will be determined using the optional properties
25*4882a593Smuzhiyundefined in ethernet.txt[1].
26*4882a593Smuzhiyun
27*4882a593Smuzhiyun[1] Documentation/devicetree/bindings/net/ethernet.txt
28*4882a593Smuzhiyun
29*4882a593SmuzhiyunExample:
30*4882a593Smuzhiyun	hisi_femac: ethernet@10090000 {
31*4882a593Smuzhiyun		compatible = "hisilicon,hi3516cv300-femac","hisilicon,hisi-femac-v2";
32*4882a593Smuzhiyun		reg = <0x10090000 0x1000>,<0x10091300 0x200>;
33*4882a593Smuzhiyun		interrupts = <12>;
34*4882a593Smuzhiyun		clocks = <&crg HI3518EV200_ETH_CLK>;
35*4882a593Smuzhiyun		resets = <&crg 0xec 0>,<&crg 0xec 3>;
36*4882a593Smuzhiyun		reset-names = "mac","phy";
37*4882a593Smuzhiyun		mac-address = [00 00 00 00 00 00];
38*4882a593Smuzhiyun		phy-mode = "mii";
39*4882a593Smuzhiyun		phy-handle = <&phy0>;
40*4882a593Smuzhiyun		hisilicon,phy-reset-delays-us = <10000 20000 20000>;
41*4882a593Smuzhiyun	};
42