2017-03-07 23:52:59 +08:00
|
|
|
* Marvell Armada 375 Ethernet Controller (PPv2.1)
|
|
|
|
Marvell Armada 7K/8K Ethernet Controller (PPv2.2)
|
2014-07-11 03:52:13 +08:00
|
|
|
|
|
|
|
Required properties:
|
|
|
|
|
2017-03-07 23:52:59 +08:00
|
|
|
- compatible: should be one of:
|
|
|
|
"marvell,armada-375-pp2"
|
|
|
|
"marvell,armada-7k-pp2"
|
2014-07-11 03:52:13 +08:00
|
|
|
- reg: addresses and length of the register sets for the device.
|
2017-03-07 23:52:59 +08:00
|
|
|
For "marvell,armada-375-pp2", must contain the following register
|
|
|
|
sets:
|
2014-07-11 03:52:13 +08:00
|
|
|
- common controller registers
|
|
|
|
- LMS registers
|
2017-03-07 23:52:59 +08:00
|
|
|
- one register area per Ethernet port
|
|
|
|
For "marvell,armada-7k-pp2", must contain the following register
|
|
|
|
sets:
|
|
|
|
- packet processor registers
|
|
|
|
- networking interfaces registers
|
|
|
|
|
|
|
|
- clocks: pointers to the reference clocks for this device, consequently:
|
|
|
|
- main controller clock (for both armada-375-pp2 and armada-7k-pp2)
|
|
|
|
- GOP clock (for both armada-375-pp2 and armada-7k-pp2)
|
|
|
|
- MG clock (only for armada-7k-pp2)
|
2018-04-26 02:19:47 +08:00
|
|
|
- MG Core clock (only for armada-7k-pp2)
|
2017-09-29 20:27:39 +08:00
|
|
|
- AXI clock (only for armada-7k-pp2)
|
2018-04-26 02:19:47 +08:00
|
|
|
- clock-names: names of used clocks, must be "pp_clk", "gop_clk", "mg_clk",
|
|
|
|
"mg_core_clk" and "axi_clk" (the 3 latter only for armada-7k-pp2).
|
2014-07-11 03:52:13 +08:00
|
|
|
|
|
|
|
The ethernet ports are represented by subnodes. At least one port is
|
|
|
|
required.
|
|
|
|
|
|
|
|
Required properties (port):
|
|
|
|
|
|
|
|
- interrupts: interrupt for the port
|
2017-03-07 23:52:59 +08:00
|
|
|
- port-id: ID of the port from the MAC point of view
|
|
|
|
- gop-port-id: only for marvell,armada-7k-pp2, ID of the port from the
|
|
|
|
GOP (Group Of Ports) point of view. This ID is used to index the
|
|
|
|
per-port registers in the second register area.
|
2014-07-11 03:52:13 +08:00
|
|
|
- phy-mode: See ethernet.txt file in the same directory
|
|
|
|
|
|
|
|
Optional properties (port):
|
|
|
|
|
|
|
|
- marvell,loopback: port is loopback mode
|
|
|
|
- phy: a phandle to a phy node defining the PHY address (as the reg
|
2017-02-03 00:47:44 +08:00
|
|
|
property, a single integer).
|
2017-08-03 16:42:01 +08:00
|
|
|
- interrupt-names: if more than a single interrupt for rx is given, must
|
|
|
|
be the name associated to the interrupts listed. Valid
|
|
|
|
names are: "tx-cpu0", "tx-cpu1", "tx-cpu2", "tx-cpu3",
|
2017-09-01 17:04:55 +08:00
|
|
|
"rx-shared", "link".
|
2017-08-23 01:08:28 +08:00
|
|
|
- marvell,system-controller: a phandle to the system controller.
|
2014-07-11 03:52:13 +08:00
|
|
|
|
2017-03-07 23:52:59 +08:00
|
|
|
Example for marvell,armada-375-pp2:
|
2014-07-11 03:52:13 +08:00
|
|
|
|
|
|
|
ethernet@f0000 {
|
|
|
|
compatible = "marvell,armada-375-pp2";
|
|
|
|
reg = <0xf0000 0xa000>,
|
|
|
|
<0xc0000 0x3060>,
|
|
|
|
<0xc4000 0x100>,
|
|
|
|
<0xc5000 0x100>;
|
|
|
|
clocks = <&gateclk 3>, <&gateclk 19>;
|
|
|
|
clock-names = "pp_clk", "gop_clk";
|
|
|
|
|
|
|
|
eth0: eth0@c4000 {
|
|
|
|
interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
|
|
|
|
port-id = <0>;
|
|
|
|
phy = <&phy0>;
|
|
|
|
phy-mode = "gmii";
|
|
|
|
};
|
|
|
|
|
|
|
|
eth1: eth1@c5000 {
|
|
|
|
interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
|
|
|
|
port-id = <1>;
|
|
|
|
phy = <&phy3>;
|
|
|
|
phy-mode = "gmii";
|
|
|
|
};
|
|
|
|
};
|
2017-03-07 23:52:59 +08:00
|
|
|
|
|
|
|
Example for marvell,armada-7k-pp2:
|
|
|
|
|
|
|
|
cpm_ethernet: ethernet@0 {
|
|
|
|
compatible = "marvell,armada-7k-pp22";
|
|
|
|
reg = <0x0 0x100000>, <0x129000 0xb000>;
|
2017-09-29 20:27:39 +08:00
|
|
|
clocks = <&cpm_syscon0 1 3>, <&cpm_syscon0 1 9>,
|
2018-04-26 02:19:47 +08:00
|
|
|
<&cpm_syscon0 1 5>, <&cpm_syscon0 1 6>, <&cpm_syscon0 1 18>;
|
|
|
|
clock-names = "pp_clk", "gop_clk", "mg_clk", "mg_core_clk", "axi_clk";
|
2017-03-07 23:52:59 +08:00
|
|
|
|
|
|
|
eth0: eth0 {
|
2017-08-03 16:42:01 +08:00
|
|
|
interrupts = <ICU_GRP_NSR 39 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<ICU_GRP_NSR 43 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<ICU_GRP_NSR 47 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<ICU_GRP_NSR 51 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<ICU_GRP_NSR 55 IRQ_TYPE_LEVEL_HIGH>;
|
|
|
|
interrupt-names = "tx-cpu0", "tx-cpu1", "tx-cpu2",
|
|
|
|
"tx-cpu3", "rx-shared";
|
2017-03-07 23:52:59 +08:00
|
|
|
port-id = <0>;
|
|
|
|
gop-port-id = <0>;
|
|
|
|
};
|
|
|
|
|
|
|
|
eth1: eth1 {
|
2017-08-03 16:42:01 +08:00
|
|
|
interrupts = <ICU_GRP_NSR 40 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<ICU_GRP_NSR 44 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<ICU_GRP_NSR 48 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<ICU_GRP_NSR 52 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<ICU_GRP_NSR 56 IRQ_TYPE_LEVEL_HIGH>;
|
|
|
|
interrupt-names = "tx-cpu0", "tx-cpu1", "tx-cpu2",
|
|
|
|
"tx-cpu3", "rx-shared";
|
2017-03-07 23:52:59 +08:00
|
|
|
port-id = <1>;
|
|
|
|
gop-port-id = <2>;
|
|
|
|
};
|
|
|
|
|
|
|
|
eth2: eth2 {
|
2017-08-03 16:42:01 +08:00
|
|
|
interrupts = <ICU_GRP_NSR 41 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<ICU_GRP_NSR 45 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<ICU_GRP_NSR 49 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<ICU_GRP_NSR 53 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<ICU_GRP_NSR 57 IRQ_TYPE_LEVEL_HIGH>;
|
|
|
|
interrupt-names = "tx-cpu0", "tx-cpu1", "tx-cpu2",
|
|
|
|
"tx-cpu3", "rx-shared";
|
2017-03-07 23:52:59 +08:00
|
|
|
port-id = <2>;
|
|
|
|
gop-port-id = <3>;
|
|
|
|
};
|
|
|
|
};
|