dt-bindings: Remove "status" from examples
[linux-block.git] / Documentation / devicetree / bindings / net / marvell-pp2.txt
1 * Marvell Armada 375 Ethernet Controller (PPv2.1)
2   Marvell Armada 7K/8K Ethernet Controller (PPv2.2)
3
4 Required properties:
5
6 - compatible: should be one of:
7     "marvell,armada-375-pp2"
8     "marvell,armada-7k-pp2"
9 - reg: addresses and length of the register sets for the device.
10   For "marvell,armada-375-pp2", must contain the following register
11   sets:
12         - common controller registers
13         - LMS registers
14         - one register area per Ethernet port
15   For "marvell,armada-7k-pp2", must contain the following register
16   sets:
17         - packet processor registers
18         - networking interfaces registers
19
20 - clocks: pointers to the reference clocks for this device, consequently:
21         - main controller clock (for both armada-375-pp2 and armada-7k-pp2)
22         - GOP clock (for both armada-375-pp2 and armada-7k-pp2)
23         - MG clock (only for armada-7k-pp2)
24 - clock-names: names of used clocks, must be "pp_clk", "gop_clk" and
25   "mg_clk" (the latter only for armada-7k-pp2).
26
27 The ethernet ports are represented by subnodes. At least one port is
28 required.
29
30 Required properties (port):
31
32 - interrupts: interrupt for the port
33 - port-id: ID of the port from the MAC point of view
34 - gop-port-id: only for marvell,armada-7k-pp2, ID of the port from the
35   GOP (Group Of Ports) point of view. This ID is used to index the
36   per-port registers in the second register area.
37 - phy-mode: See ethernet.txt file in the same directory
38
39 Optional properties (port):
40
41 - marvell,loopback: port is loopback mode
42 - phy: a phandle to a phy node defining the PHY address (as the reg
43   property, a single integer).
44
45 Example for marvell,armada-375-pp2:
46
47 ethernet@f0000 {
48         compatible = "marvell,armada-375-pp2";
49         reg = <0xf0000 0xa000>,
50               <0xc0000 0x3060>,
51               <0xc4000 0x100>,
52               <0xc5000 0x100>;
53         clocks = <&gateclk 3>, <&gateclk 19>;
54         clock-names = "pp_clk", "gop_clk";
55
56         eth0: eth0@c4000 {
57                 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
58                 port-id = <0>;
59                 phy = <&phy0>;
60                 phy-mode = "gmii";
61         };
62
63         eth1: eth1@c5000 {
64                 interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
65                 port-id = <1>;
66                 phy = <&phy3>;
67                 phy-mode = "gmii";
68         };
69 };
70
71 Example for marvell,armada-7k-pp2:
72
73 cpm_ethernet: ethernet@0 {
74         compatible = "marvell,armada-7k-pp22";
75         reg = <0x0 0x100000>, <0x129000 0xb000>;
76         clocks = <&cpm_syscon0 1 3>, <&cpm_syscon0 1 9>, <&cpm_syscon0 1 5>;
77         clock-names = "pp_clk", "gop_clk", "gp_clk";
78
79         eth0: eth0 {
80                 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
81                 port-id = <0>;
82                 gop-port-id = <0>;
83         };
84
85         eth1: eth1 {
86                 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
87                 port-id = <1>;
88                 gop-port-id = <2>;
89         };
90
91         eth2: eth2 {
92                 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
93                 port-id = <2>;
94                 gop-port-id = <3>;
95         };
96 };