From: Gerhard Engleder <gerhard@engleder-embedded.com>
To: netdev@vger.kernel.org
Cc: davem@davemloft.net, kuba@kernel.org, edumazet@google.com,
pabeni@redhat.com, robh+dt@kernel.org,
krzysztof.kozlowski+dt@linaro.org, devicetree@vger.kernel.org,
Gerhard Engleder <gerhard@engleder-embedded.com>
Subject: [PATCH net-next v3 2/6] dt-bindings: net: tsnep: Allow additional interrupts
Date: Fri, 23 Sep 2022 22:29:07 +0200 [thread overview]
Message-ID: <20220923202911.119729-3-gerhard@engleder-embedded.com> (raw)
In-Reply-To: <20220923202911.119729-1-gerhard@engleder-embedded.com>
Additional TX/RX queue pairs require dedicated interrupts. Extend
binding with additional interrupts.
Signed-off-by: Gerhard Engleder <gerhard@engleder-embedded.com>
---
.../bindings/net/engleder,tsnep.yaml | 37 ++++++++++++++++++-
1 file changed, 36 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/net/engleder,tsnep.yaml b/Documentation/devicetree/bindings/net/engleder,tsnep.yaml
index 37e08ee744a8..ce1f1bd413c2 100644
--- a/Documentation/devicetree/bindings/net/engleder,tsnep.yaml
+++ b/Documentation/devicetree/bindings/net/engleder,tsnep.yaml
@@ -20,7 +20,23 @@ properties:
maxItems: 1
interrupts:
- maxItems: 1
+ minItems: 1
+ maxItems: 8
+
+ interrupt-names:
+ minItems: 1
+ maxItems: 8
+ items:
+ pattern: '^mac|txrx-[1-7]$'
+ description:
+ If more than one interrupt is available, then interrupts are
+ identified by their names.
+ "mac" is the main interrupt for basic MAC features and the first
+ TX/RX queue pair. If only a single interrupt is available, then
+ it is assumed that this interrupt is the "mac" interrupt.
+ "txrx-[1-7]" are the interrupts for additional TX/RX queue pairs.
+ These interrupt names shall start with index 1 and increment the
+ index by 1 with every further TX/RX queue pair.
dma-coherent: true
@@ -78,4 +94,23 @@ examples:
};
};
};
+ tnsep1: ethernet@a0010000 {
+ compatible = "engleder,tsnep";
+ reg = <0x0 0xa0010000 0x0 0x10000>;
+ interrupts = <0 93 1>, <0 94 1>, <0 95 1>, <0 96 1>;
+ interrupt-names = "mac", "txrx-1", "txrx-2", "txrx-3";
+ interrupt-parent = <&gic>;
+ local-mac-address = [00 00 00 00 00 00];
+ phy-mode = "rgmii";
+ phy-handle = <&phy1>;
+ mdio {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ suppress-preamble;
+ phy1: ethernet-phy@1 {
+ reg = <1>;
+ rxc-skew-ps = <1080>;
+ };
+ };
+ };
};
--
2.30.2
next prev parent reply other threads:[~2022-09-23 20:36 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-23 20:29 [PATCH net-next v3 0/6] tsnep: multi queue support and some other improvements Gerhard Engleder
2022-09-23 20:29 ` [PATCH net-next v3 1/6] dt-bindings: net: tsnep: Allow dma-coherent Gerhard Engleder
2022-09-24 9:15 ` Krzysztof Kozlowski
2022-09-24 18:11 ` Gerhard Engleder
2022-09-25 7:41 ` Krzysztof Kozlowski
2022-09-25 8:14 ` Gerhard Engleder
2022-09-26 8:55 ` Krzysztof Kozlowski
2022-09-26 17:46 ` Gerhard Engleder
2022-09-28 7:17 ` Krzysztof Kozlowski
2022-09-23 20:29 ` Gerhard Engleder [this message]
2022-09-24 9:17 ` [PATCH net-next v3 2/6] dt-bindings: net: tsnep: Allow additional interrupts Krzysztof Kozlowski
2022-09-24 19:06 ` Gerhard Engleder
2022-09-23 20:29 ` [PATCH net-next v3 3/6] tsnep: Move interrupt from device to queue Gerhard Engleder
2022-09-23 20:29 ` [PATCH net-next v3 4/6] tsnep: Support multiple TX/RX queue pairs Gerhard Engleder
2022-09-23 20:29 ` [PATCH net-next v3 5/6] tsnep: Add EtherType RX flow classification support Gerhard Engleder
2022-09-23 20:29 ` [PATCH net-next v3 6/6] tsnep: Use page pool for RX Gerhard Engleder
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220923202911.119729-3-gerhard@engleder-embedded.com \
--to=gerhard@engleder-embedded.com \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=edumazet@google.com \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=robh+dt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).