Skip to content

Commit 5d3ecb2

Browse files
tpetazzonidavem330
authored andcommitted
dt-bindings: net: marvell-pp2: update interrupt-names with TX interrupts
The PPv2.2 unit has several interrupts used for TX completion notification. This commit updates the Device Tree binding describing this HW block to mention such interrupts. While at it, we update the example to use a recent Device Tree example, that uses interrupts going through the ICU, and not to the GIC directly. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 213f428 commit 5d3ecb2

File tree

1 file changed

+25
-3
lines changed

1 file changed

+25
-3
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)