1542ae60aSDongpo LiHisilicon Fast Ethernet MAC controller
2542ae60aSDongpo Li
3542ae60aSDongpo LiRequired properties:
4542ae60aSDongpo Li- compatible: should contain one of the following version strings:
5542ae60aSDongpo Li	* "hisilicon,hisi-femac-v1"
6542ae60aSDongpo Li	* "hisilicon,hisi-femac-v2"
7542ae60aSDongpo Li	and the soc string "hisilicon,hi3516cv300-femac".
8542ae60aSDongpo Li- reg: specifies base physical address(s) and size of the device registers.
9542ae60aSDongpo Li  The first region is the MAC core register base and size.
10542ae60aSDongpo Li  The second region is the global MAC control register.
11542ae60aSDongpo Li- interrupts: should contain the MAC interrupt.
12542ae60aSDongpo Li- clocks: A phandle to the MAC main clock.
13542ae60aSDongpo Li- resets: should contain the phandle to the MAC reset signal(required) and
14542ae60aSDongpo Li	the PHY reset signal(optional).
15542ae60aSDongpo Li- reset-names: should contain the reset signal name "mac"(required)
16542ae60aSDongpo Li	and "phy"(optional).
17542ae60aSDongpo Li- phy-mode: see ethernet.txt [1].
18542ae60aSDongpo Li- phy-handle: see ethernet.txt [1].
19542ae60aSDongpo Li- hisilicon,phy-reset-delays-us: triplet of delays if PHY reset signal given.
20542ae60aSDongpo Li	The 1st cell is reset pre-delay in micro seconds.
21542ae60aSDongpo Li	The 2nd cell is reset pulse in micro seconds.
22542ae60aSDongpo Li	The 3rd cell is reset post-delay in micro seconds.
23542ae60aSDongpo Li
24687e3d55SPetr ŠtetiarThe MAC address will be determined using the optional properties
25687e3d55SPetr Štetiardefined in ethernet.txt[1].
26687e3d55SPetr Štetiar
27542ae60aSDongpo Li[1] Documentation/devicetree/bindings/net/ethernet.txt
28542ae60aSDongpo Li
29542ae60aSDongpo LiExample:
30542ae60aSDongpo Li	hisi_femac: ethernet@10090000 {
31542ae60aSDongpo Li		compatible = "hisilicon,hi3516cv300-femac","hisilicon,hisi-femac-v2";
32542ae60aSDongpo Li		reg = <0x10090000 0x1000>,<0x10091300 0x200>;
33542ae60aSDongpo Li		interrupts = <12>;
34542ae60aSDongpo Li		clocks = <&crg HI3518EV200_ETH_CLK>;
35542ae60aSDongpo Li		resets = <&crg 0xec 0>,<&crg 0xec 3>;
36542ae60aSDongpo Li		reset-names = "mac","phy";
37542ae60aSDongpo Li		mac-address = [00 00 00 00 00 00];
38542ae60aSDongpo Li		phy-mode = "mii";
39542ae60aSDongpo Li		phy-handle = <&phy0>;
40542ae60aSDongpo Li		hisilicon,phy-reset-delays-us = <10000 20000 20000>;
41542ae60aSDongpo Li	};
42