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