Merge tag 'rpmsg-v4.14-fixes' of git://github.com/andersson/remoteproc
[sfrench/cifs-2.6.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         - AXI clock (only for armada-7k-pp2)
25 - clock-names: names of used clocks, must be "pp_clk", "gop_clk", "mg_clk"
26   and "axi_clk" (the 2 latter only for armada-7k-pp2).
27
28 The ethernet ports are represented by subnodes. At least one port is
29 required.
30
31 Required properties (port):
32
33 - interrupts: interrupt for the port
34 - port-id: ID of the port from the MAC point of view
35 - gop-port-id: only for marvell,armada-7k-pp2, ID of the port from the
36   GOP (Group Of Ports) point of view. This ID is used to index the
37   per-port registers in the second register area.
38 - phy-mode: See ethernet.txt file in the same directory
39
40 Optional properties (port):
41
42 - marvell,loopback: port is loopback mode
43 - phy: a phandle to a phy node defining the PHY address (as the reg
44   property, a single integer).
45 - interrupt-names: if more than a single interrupt for rx is given, must
46                    be the name associated to the interrupts listed. Valid
47                    names are: "tx-cpu0", "tx-cpu1", "tx-cpu2", "tx-cpu3",
48                    "rx-shared", "link".
49 - marvell,system-controller: a phandle to the system controller.
50
51 Example for marvell,armada-375-pp2:
52
53 ethernet@f0000 {
54         compatible = "marvell,armada-375-pp2";
55         reg = <0xf0000 0xa000>,
56               <0xc0000 0x3060>,
57               <0xc4000 0x100>,
58               <0xc5000 0x100>;
59         clocks = <&gateclk 3>, <&gateclk 19>;
60         clock-names = "pp_clk", "gop_clk";
61
62         eth0: eth0@c4000 {
63                 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
64                 port-id = <0>;
65                 phy = <&phy0>;
66                 phy-mode = "gmii";
67         };
68
69         eth1: eth1@c5000 {
70                 interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
71                 port-id = <1>;
72                 phy = <&phy3>;
73                 phy-mode = "gmii";
74         };
75 };
76
77 Example for marvell,armada-7k-pp2:
78
79 cpm_ethernet: ethernet@0 {
80         compatible = "marvell,armada-7k-pp22";
81         reg = <0x0 0x100000>, <0x129000 0xb000>;
82         clocks = <&cpm_syscon0 1 3>, <&cpm_syscon0 1 9>,
83                  <&cpm_syscon0 1 5>, <&cpm_syscon0 1 18>;
84         clock-names = "pp_clk", "gop_clk", "gp_clk", "axi_clk";
85
86         eth0: eth0 {
87                 interrupts = <ICU_GRP_NSR 39 IRQ_TYPE_LEVEL_HIGH>,
88                              <ICU_GRP_NSR 43 IRQ_TYPE_LEVEL_HIGH>,
89                              <ICU_GRP_NSR 47 IRQ_TYPE_LEVEL_HIGH>,
90                              <ICU_GRP_NSR 51 IRQ_TYPE_LEVEL_HIGH>,
91                              <ICU_GRP_NSR 55 IRQ_TYPE_LEVEL_HIGH>;
92                 interrupt-names = "tx-cpu0", "tx-cpu1", "tx-cpu2",
93                                   "tx-cpu3", "rx-shared";
94                 port-id = <0>;
95                 gop-port-id = <0>;
96         };
97
98         eth1: eth1 {
99                 interrupts = <ICU_GRP_NSR 40 IRQ_TYPE_LEVEL_HIGH>,
100                              <ICU_GRP_NSR 44 IRQ_TYPE_LEVEL_HIGH>,
101                              <ICU_GRP_NSR 48 IRQ_TYPE_LEVEL_HIGH>,
102                              <ICU_GRP_NSR 52 IRQ_TYPE_LEVEL_HIGH>,
103                              <ICU_GRP_NSR 56 IRQ_TYPE_LEVEL_HIGH>;
104                 interrupt-names = "tx-cpu0", "tx-cpu1", "tx-cpu2",
105                                   "tx-cpu3", "rx-shared";
106                 port-id = <1>;
107                 gop-port-id = <2>;
108         };
109
110         eth2: eth2 {
111                 interrupts = <ICU_GRP_NSR 41 IRQ_TYPE_LEVEL_HIGH>,
112                              <ICU_GRP_NSR 45 IRQ_TYPE_LEVEL_HIGH>,
113                              <ICU_GRP_NSR 49 IRQ_TYPE_LEVEL_HIGH>,
114                              <ICU_GRP_NSR 53 IRQ_TYPE_LEVEL_HIGH>,
115                              <ICU_GRP_NSR 57 IRQ_TYPE_LEVEL_HIGH>;
116                 interrupt-names = "tx-cpu0", "tx-cpu1", "tx-cpu2",
117                                   "tx-cpu3", "rx-shared";
118                 port-id = <2>;
119                 gop-port-id = <3>;
120         };
121 };