Merge branch 'irq-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / net / socionext,uniphier-ave4.txt
1 * Socionext AVE ethernet controller
2
3 This describes the devicetree bindings for AVE ethernet controller
4 implemented on Socionext UniPhier SoCs.
5
6 Required properties:
7  - compatible: Should be
8         - "socionext,uniphier-pro4-ave4" : for Pro4 SoC
9         - "socionext,uniphier-pxs2-ave4" : for PXs2 SoC
10         - "socionext,uniphier-ld11-ave4" : for LD11 SoC
11         - "socionext,uniphier-ld20-ave4" : for LD20 SoC
12  - reg: Address where registers are mapped and size of region.
13  - interrupts: Should contain the MAC interrupt.
14  - phy-mode: See ethernet.txt in the same directory. Allow to choose
15         "rgmii", "rmii", or "mii" according to the PHY.
16  - phy-handle: Should point to the external phy device.
17         See ethernet.txt file in the same directory.
18  - clocks: A phandle to the clock for the MAC.
19
20 Optional properties:
21  - resets: A phandle to the reset control for the MAC.
22  - local-mac-address: See ethernet.txt in the same directory.
23
24 Required subnode:
25  - mdio: A container for child nodes representing phy nodes.
26          See phy.txt in the same directory.
27
28 Example:
29
30         ether: ethernet@65000000 {
31                 compatible = "socionext,uniphier-ld20-ave4";
32                 reg = <0x65000000 0x8500>;
33                 interrupts = <0 66 4>;
34                 phy-mode = "rgmii";
35                 phy-handle = <&ethphy>;
36                 clocks = <&sys_clk 6>;
37                 resets = <&sys_rst 6>;
38                 local-mac-address = [00 00 00 00 00 00];
39
40                 mdio {
41                         #address-cells = <1>;
42                         #size-cells = <0>;
43
44                         ethphy: ethphy@1 {
45                                 reg = <1>;
46                         };
47                 };
48         };