About Kernel Documentation Linux Kernel Contact Linux Resources Linux Blog

Documentation / devicetree / bindings / net / hisilicon-hix5hd2-gmac.txt




Custom Search

Based on kernel version 4.13.3. Page generated on 2017-09-23 13:55 EST.

1	Hisilicon hix5hd2 gmac controller
2	
3	Required properties:
4	- compatible: should contain one of the following SoC strings:
5		* "hisilicon,hix5hd2-gmac"
6		* "hisilicon,hi3798cv200-gmac"
7		* "hisilicon,hi3516a-gmac"
8		and one of the following version string:
9		* "hisilicon,hisi-gmac-v1"
10		* "hisilicon,hisi-gmac-v2"
11	  The version v1 includes SoCs hix5hd2.
12	  The version v2 includes SoCs hi3798cv200, hi3516a.
13	- reg: specifies base physical address(s) and size of the device registers.
14	  The first region is the MAC register base and size.
15	  The second region is external interface control register.
16	- interrupts: should contain the MAC interrupt.
17	- #address-cells: must be <1>.
18	- #size-cells: must be <0>.
19	- phy-mode: see ethernet.txt [1].
20	- phy-handle: see ethernet.txt [1].
21	- mac-address: see ethernet.txt [1].
22	- clocks: clock phandle and specifier pair.
23	- clock-names: contain the clock name "mac_core"(required) and "mac_ifc"(optional).
24	- resets: should contain the phandle to the MAC core reset signal(optional),
25		the MAC interface reset signal(optional)
26		and the PHY reset signal(optional).
27	- reset-names: contain the reset signal name "mac_core"(optional),
28		"mac_ifc"(optional) and "phy"(optional).
29	- hisilicon,phy-reset-delays-us: triplet of delays if PHY reset signal given.
30		The 1st cell is reset pre-delay in micro seconds.
31		The 2nd cell is reset pulse in micro seconds.
32		The 3rd cell is reset post-delay in micro seconds.
33	
34	- PHY subnode: inherits from phy binding [2]
35	
36	[1] Documentation/devicetree/bindings/net/ethernet.txt
37	[2] Documentation/devicetree/bindings/net/phy.txt
38	
39	Example:
40		gmac0: ethernet@f9840000 {
41			compatible = "hisilicon,hi3798cv200-gmac", "hisilicon,hisi-gmac-v2";
42			reg = <0xf9840000 0x1000>,<0xf984300c 0x4>;
43			interrupts = <0 71 4>;
44			#address-cells = <1>;
45			#size-cells = <0>;
46			phy-mode = "rgmii";
47			phy-handle = <&phy2>;
48			mac-address = [00 00 00 00 00 00];
49			clocks = <&crg HISTB_ETH0_MAC_CLK>, <&crg HISTB_ETH0_MACIF_CLK>;
50			clock-names = "mac_core", "mac_ifc";
51			resets = <&crg 0xcc 8>, <&crg 0xcc 10>, <&crg 0xcc 12>;
52			reset-names = "mac_core", "mac_ifc", "phy";
53			hisilicon,phy-reset-delays-us = <10000 10000 30000>;
54	
55			phy2: ethernet-phy@2 {
56				reg = <2>;
57			};
58		};
Hide Line Numbers
About Kernel Documentation Linux Kernel Contact Linux Resources Linux Blog

Information is copyright its respective author. All material is available from the Linux Kernel Source distributed under a GPL License. This page is provided as a free service by mjmwired.net.