linux-mips
[Top] [All Lists]

[PATCH v5 net-next,mips 1/7] dt-bindings: Add Cavium Octeon Common Ether

To: linux-mips@linux-mips.org, ralf@linux-mips.org, James Hogan <james.hogan@mips.com>, netdev@vger.kernel.org, "David S. Miller" <davem@davemloft.net>, Rob Herring <robh+dt@kernel.org>, Mark Rutland <mark.rutland@arm.com>
Subject: [PATCH v5 net-next,mips 1/7] dt-bindings: Add Cavium Octeon Common Ethernet Interface.
From: David Daney <david.daney@cavium.com>
Date: Fri, 1 Dec 2017 15:18:01 -0800
Authentication-results: spf=none (sender IP is ) smtp.mailfrom=David.Daney@cavium.com;
Cc: linux-kernel@vger.kernel.org, "Steven J. Hill" <steven.hill@cavium.com>, devicetree@vger.kernel.org, Andrew Lunn <andrew@lunn.ch>, Florian Fainelli <f.fainelli@gmail.com>, Philippe Ombredanne <pombredanne@nexb.com>, Carlos Munoz <cmunoz@cavium.com>, "Steven J . Hill" <Steven.Hill@cavium.com>, David Daney <david.daney@cavium.com>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=+xGCXfVgT3ZjsVa8BaQUj4vjyihr26dDMshXgQeJcmA=; b=MyhmuHaa3CxXY3J3pSS5DvLAGXuSgDFz2tJsxw9rmgS7EsTc5X7K+lL33IEbg7J0nhwdazEfgSLZvFAx4ddNV8r6fUzZcJG/1QVl7LEmordwUrgf2xPRutTSAQ7aRqNJ1n7on195dKajRDnLloJ0kU9XMA0PxSVWdUtzFocuHKk=
In-reply-to: <20171201231807.25266-1-david.daney@cavium.com>
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20171201231807.25266-1-david.daney@cavium.com>
Sender: linux-mips-bounce@linux-mips.org
Spamdiagnosticmetadata: NSPM
Spamdiagnosticoutput: 1:99
From: Carlos Munoz <cmunoz@cavium.com>

Add bindings for Common Ethernet Interface (BGX) block.

Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Carlos Munoz <cmunoz@cavium.com>
Signed-off-by: Steven J. Hill <Steven.Hill@cavium.com>
Signed-off-by: David Daney <david.daney@cavium.com>
---
 .../devicetree/bindings/net/cavium-bgx.txt         | 61 ++++++++++++++++++++++
 1 file changed, 61 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/net/cavium-bgx.txt

diff --git a/Documentation/devicetree/bindings/net/cavium-bgx.txt 
b/Documentation/devicetree/bindings/net/cavium-bgx.txt
new file mode 100644
index 000000000000..830c5f08dddd
--- /dev/null
+++ b/Documentation/devicetree/bindings/net/cavium-bgx.txt
@@ -0,0 +1,61 @@
+* Common Ethernet Interface (BGX) block
+
+Properties:
+
+- compatible: "cavium,octeon-7890-bgx": Compatibility with all cn7xxx SOCs.
+
+- reg: The base address of the BGX block.
+
+- #address-cells: Must be <1>.
+
+- #size-cells: Must be <0>.  BGX addresses have no size component.
+
+A BGX block has several children, each representing an Ethernet
+interface.
+
+
+* Ethernet Interface (BGX port) connects to PKI/PKO
+
+Properties:
+
+- compatible: "cavium,octeon-7890-bgx-port": Compatibility with all
+             cn7xxx SOCs.
+
+             "cavium,octeon-7360-xcv": Compatibility with cn73xx SOCs
+             for RGMII.
+
+- reg: The index of the interface within the BGX block.
+
+Optional properties:
+
+- local-mac-address: Mac address for the interface.
+
+- phy-handle: phandle to the phy node connected to the interface.
+
+- phy-mode: described in ethernet.txt.
+
+- fixed-link: described in fixed-link.txt.
+
+Example:
+
+       ethernet-mac-nexus@11800e0000000 {
+               compatible = "cavium,octeon-7890-bgx";
+               reg = <0x00011800 0xe0000000 0x00000000 0x01000000>;
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               ethernet@0 {
+                       compatible = "cavium,octeon-7360-xcv";
+                       reg = <0>;
+                       local-mac-address = [ 00 01 23 45 67 89 ];
+                       phy-handle = <&phy3>;
+                       phy-mode = "rgmii-rxid"
+               };
+               ethernet@1 {
+                       compatible = "cavium,octeon-7890-bgx-port";
+                       reg = <1>;
+                       local-mac-address = [ 00 01 23 45 67 8a ];
+                       phy-handle = <&phy4>;
+                       phy-mode = "sgmii"
+               };
+       };
-- 
2.14.3


<Prev in Thread] Current Thread [Next in Thread>