diff options
author | Zhangfei Gao <zhangfei.gao@linaro.org> | 2014-06-03 01:49:36 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-06-03 02:39:05 -0400 |
commit | f70e9d88a105db9a8cf4dc4d5675d0a54def70c9 (patch) | |
tree | 606aed81646b0f674cb6d003c18ef29e8020d3a3 /Documentation/devicetree/bindings/net | |
parent | 014b20133bcd442db554c2d2d86181b34cd15b66 (diff) |
Documentation: add Device tree bindings for Hisilicon hix5hd2 ethernet
Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation/devicetree/bindings/net')
-rw-r--r-- | Documentation/devicetree/bindings/net/hisilicon-hix5hd2-gmac.txt | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/net/hisilicon-hix5hd2-gmac.txt b/Documentation/devicetree/bindings/net/hisilicon-hix5hd2-gmac.txt new file mode 100644 index 000000000000..75d398bb1fbb --- /dev/null +++ b/Documentation/devicetree/bindings/net/hisilicon-hix5hd2-gmac.txt | |||
@@ -0,0 +1,36 @@ | |||
1 | Hisilicon hix5hd2 gmac controller | ||
2 | |||
3 | Required properties: | ||
4 | - compatible: should be "hisilicon,hix5hd2-gmac". | ||
5 | - reg: specifies base physical address(s) and size of the device registers. | ||
6 | The first region is the MAC register base and size. | ||
7 | The second region is external interface control register. | ||
8 | - interrupts: should contain the MAC interrupt. | ||
9 | - #address-cells: must be <1>. | ||
10 | - #size-cells: must be <0>. | ||
11 | - phy-mode: see ethernet.txt [1]. | ||
12 | - phy-handle: see ethernet.txt [1]. | ||
13 | - mac-address: see ethernet.txt [1]. | ||
14 | - clocks: clock phandle and specifier pair. | ||
15 | |||
16 | - PHY subnode: inherits from phy binding [2] | ||
17 | |||
18 | [1] Documentation/devicetree/bindings/net/ethernet.txt | ||
19 | [2] Documentation/devicetree/bindings/net/phy.txt | ||
20 | |||
21 | Example: | ||
22 | gmac0: ethernet@f9840000 { | ||
23 | compatible = "hisilicon,hix5hd2-gmac"; | ||
24 | reg = <0xf9840000 0x1000>,<0xf984300c 0x4>; | ||
25 | interrupts = <0 71 4>; | ||
26 | #address-cells = <1>; | ||
27 | #size-cells = <0>; | ||
28 | phy-mode = "mii"; | ||
29 | phy-handle = <&phy2>; | ||
30 | mac-address = [00 00 00 00 00 00]; | ||
31 | clocks = <&clock HIX5HD2_MAC0_CLK>; | ||
32 | |||
33 | phy2: ethernet-phy@2 { | ||
34 | reg = <2>; | ||
35 | }; | ||
36 | }; | ||