Skip to content

Commit 80cf0b4

Browse files
committed
Merge branch 'mvpp2-add-TX-interrupts-support'
Thomas Petazzoni says: ==================== net: mvpp2: add TX interrupts support So far, the mvpp2 driver was using an hrtimer to handle TX completion. This patch series adds support for using TX interrupts (for each CPU) on PPv2.2, the variant of the IP used on Marvell Armada 7K/8K. Dave: this version can be applied right away, it no longer depends on Antoine's patch series. Antoine series had some comments, so he will have to respin later on. Therefore, let's merge this smaller patch series first. Changes since v1: - Rebased on top of net-next, instead of on top of Antoine's series. - Removed the Device Tree patch, as it shouldn't go through the net tree. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
2 parents e11e872 + 5d3ecb2 commit 80cf0b4

File tree

2 files changed

+488
-151
lines changed

2 files changed

+488
-151
lines changed

Documentation/devicetree/bindings/net/marvell-pp2.txt

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ Optional properties (port):
4141
- marvell,loopback: port is loopback mode
4242
- phy: a phandle to a phy node defining the PHY address (as the reg
4343
property, a single integer).
44+
- interrupt-names: if more than a single interrupt for rx is given, must
45+
be the name associated to the interrupts listed. Valid
46+
names are: "tx-cpu0", "tx-cpu1", "tx-cpu2", "tx-cpu3",
47+
"rx-shared".
4448

4549
Example for marvell,armada-375-pp2:
4650

@@ -80,19 +84,37 @@ cpm_ethernet: ethernet@0 {
8084
clock-names = "pp_clk", "gop_clk", "gp_clk";
8185

8286
eth0: eth0 {
83-
interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
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";
8494
port-id = <0>;
8595
gop-port-id = <0>;
8696
};
8797

8898
eth1: eth1 {
89-
interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
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";
90106
port-id = <1>;
91107
gop-port-id = <2>;
92108
};
93109

94110
eth2: eth2 {
95-
interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
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";
96118
port-id = <2>;
97119
gop-port-id = <3>;
98120
};

0 commit comments

Comments
 (0)