From: Vince Bridgers <vbridgers2013@gmail.com>
To: devicetree@vger.kernel.org, netdev@vger.kernel.org,
linux-doc@vger.kernel.org
Cc: robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com,
ijc+devicetree@hellion.org.uk, galak@codeaurora.org,
rob@landley.net, vbridgers2013@gmail.com
Subject: [PATCH RFC 1/3] dts: Add bindings for the Altera Triple Speed Ethernet Driver
Date: Sun, 2 Mar 2014 14:42:00 -0600 [thread overview]
Message-ID: <1393792922-2381-2-git-send-email-vbridgers2013@gmail.com> (raw)
In-Reply-To: <1393792922-2381-1-git-send-email-vbridgers2013@gmail.com>
This patch adds a bindings description for the Altera Triple Speed Ethernet
(TSE) driver. The bindings support the legacy SGDMA soft IP as well as the
preferred MSGDMA soft IP. The TSE can be configured and synthesized in soft
logic using Altera's Quartus toolchain. Please consult the bindings document
for supported options.
Signed-off-by: Vince Bridgers <vbridgers2013@gmail.com>
---
.../devicetree/bindings/net/altera_tse.txt | 114 ++++++++++++++++++++
1 file changed, 114 insertions(+)
create mode 100644 Documentation/devicetree/bindings/net/altera_tse.txt
diff --git a/Documentation/devicetree/bindings/net/altera_tse.txt b/Documentation/devicetree/bindings/net/altera_tse.txt
new file mode 100644
index 0000000..b53d972
--- /dev/null
+++ b/Documentation/devicetree/bindings/net/altera_tse.txt
@@ -0,0 +1,114 @@
+* Altera Triple-Speed Ethernet MAC driver (TSE)
+
+Required properties:
+- compatible: Should be "altr,tse-1.0" for legacy SGDMA based TSE, and should
+ be "altr,tse-msgdma-1.0" for the preferred MSGDMA based TSE.
+ Compatiblilty string matches are case insenstive; so legacy
+ device trees using ALTR will be supported.
+- reg: Address and length of the register set for the device. It contains
+ the information of registers in the same order as described by reg-names
+- reg-names: Should contain the reg names
+ "control_port": MAC configuration space region
+ "tx_csr": xDMA Tx dispatcher control and status space region
+ "tx_desc": MSGDMA Tx dispatcher descriptor space region
+ "rx_csr" : xDMA Rx dispatcher control and status space region
+ "rx_desc": MSGDMA Rx dispatcher descriptor space region
+ "rx_resp": MSGDMA Rx dispatcher response space region
+ "s1": SGDMA descriptor memory
+- interrupts: Should contain the TSE interrupts
+- interrupt-names: Should contain the interrupt names
+ "rx_irq": xDMA Rx dispatcher interrupt
+ "tx_irq": xDMA Tx dispatcher interrupt
+- altr,rx-fifo-depth: MAC receive FIFO buffer depth (in 32-bit words)
+- altr,tx-fifo-depth: MAC transmit FIFO buffer depth (in 32-bit words)
+- phy-mode: String, operation mode of the PHY interface. Supported values are:
+ "mii", "gmii", "rgmii-id", "rgmii", "sgmii"
+- phy-handle: A phandle pointing to device tree node with
+ device_type = "ethernet-phy". Using a phandle allows
+ support for both phys connected to TSE's local mdio or
+ some other phy.
+- altr,phy-addr: PHY address to use with a phy connected to TSE's local mdio.
+ One should have either a phy-handle property or altr,phy-addr
+ when using a phy with the TSE.
+
+-mdio device tree subnode: When the TSE has a phy connected to its local
+ mdio, there must be device tree subnode with the following
+ required properties:
+
+ - compatible: Must be "altr,tse-mdio".
+ - #address-cells: Must be <1>.
+ - #size-cells: Must be <0>.
+
+ For each phy on the mdio bus, there must be a node with the following
+ fields:
+
+ - reg: phy id used to communicate to phy.
+ - device_type: Must be "ethernet-phy".
+
+Optional properties:
+- local-mac-address: 6 bytes, ethernet mac address to use
+
+Example:
+
+ tse_sub_0_eth_tse_0: ethernet@0x100000000 {
+ compatible = "altr,tse-msgdma-1.0";
+ reg = < 0x00000001 0x00000000 0x00000400
+ 0x00000001 0x00000460 0x00000020
+ 0x00000001 0x00000480 0x00000020
+ 0x00000001 0x000004A0 0x00000008
+ 0x00000001 0x00000400 0x00000020
+ 0x00000001 0x00000420 0x00000020 >;
+ reg-names = "control_port", "rx_csr", "rx_desc", "rx_resp", "tx_csr", "tx_desc";
+ interrupt-parent = < &hps_0_arm_gic_0 >;
+ interrupts = < 0 41 4 0 40 4 >;
+ interrupt-names = "rx_irq", "tx_irq";
+ altr,rx-fifo-depth = < 2048 >;
+ altr,tx-fifo-depth = < 2048 >;
+ address-bits = < 48 >;
+ max-frame-size = < 1500 >;
+ local-mac-address = [ 00 00 00 00 00 00 ];
+ phy-mode = "gmii";
+ altr,enable-sup-addr = < 0 >;
+ altr,enable-hash = < 1 >;
+ phy-handle = < &phy0 >;
+ mdio@0 {
+ compatible = "altr,tse-mdio";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ phy0: ethernet-phy@0 {
+ reg = <0x0>;
+ device_type = "ethernet-phy";
+ };
+
+ phy1: ethernet-phy@1 {
+ reg = <0x1>;
+ device_type = "ethernet-phy";
+ };
+
+ };
+ };
+
+ tse_sub_1_eth_tse_0: ethernet@0x100001000 {
+ compatible = "altr,tse-msgdma-1.0";
+ reg = < 0x00000001 0x00001000 0x00000400
+ 0x00000001 0x00001460 0x00000020
+ 0x00000001 0x00001480 0x00000020
+ 0x00000001 0x000014A0 0x00000008
+ 0x00000001 0x00001400 0x00000020
+ 0x00000001 0x00001420 0x00000020 >;
+ reg-names = "control_port", "rx_csr", "rx_desc", "rx_resp", "tx_csr", "tx_desc";
+ interrupt-parent = < &hps_0_arm_gic_0 >;
+ interrupts = < 0 43 4 0 42 4 >;
+ interrupt-names = "rx_irq", "tx_irq";
+ altr,rx-fifo-depth = < 2048 >;
+ altr,tx-fifo-depth = < 2048 >;
+ address-bits = < 48 >;
+ max-frame-size = < 1500 >;
+ local-mac-address = [ 00 00 00 00 00 00 ];
+ phy-mode = "gmii";
+ altr,phy-addr = < 1 >;
+ altr,enable-sup-addr = < 0 >;
+ altr,enable-hash = < 1 >;
+ phy-handle = < &phy1 >;
+ };
+
--
1.7.9.5
next prev parent reply other threads:[~2014-03-02 20:42 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-02 20:41 [PATCH RFC 0/3] Altera Triple Speed Ethernet (TSE) Driver RFC Vince Bridgers
2014-03-02 20:42 ` Vince Bridgers [this message]
2014-03-02 20:42 ` [PATCH RFC 2/3] Documentation: networking: Add Altera Triple Speed Ethernet (TSE) Documentation Vince Bridgers
2014-03-02 20:42 ` [PATCH RFC 3/3] Altera TSE: Add Altera Triple Speed Ethernet (TSE) Driver Vince Bridgers
2014-03-03 0:59 ` Florian Fainelli
2014-03-03 18:21 ` Vince Bridgers
2014-03-03 18:38 ` Florian Fainelli
2014-03-03 22:11 ` Vince Bridgers
2014-03-04 10:06 ` David Laight
2014-03-09 16:32 ` Ben Hutchings
2014-03-03 9:53 ` [PATCH RFC 0/3] Altera Triple Speed Ethernet (TSE) Driver RFC David Laight
2014-03-03 18:11 ` Vince Bridgers
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=1393792922-2381-2-git-send-email-vbridgers2013@gmail.com \
--to=vbridgers2013@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=galak@codeaurora.org \
--cc=ijc+devicetree@hellion.org.uk \
--cc=linux-doc@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=netdev@vger.kernel.org \
--cc=pawel.moll@arm.com \
--cc=rob@landley.net \
--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).