From patchwork Fri Jun 21 15:38:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Manoil X-Patchwork-Id: 11010313 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DD335112C for ; Fri, 21 Jun 2019 15:39:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C738D1FF73 for ; Fri, 21 Jun 2019 15:39:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BB6AF262F2; Fri, 21 Jun 2019 15:39:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 311211FF73 for ; Fri, 21 Jun 2019 15:39:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=ReqT9KcQwz5K1R7k0FJLRoFV9M4zSUJwhzGwRa0JkOM=; b=pypHjpPrGESrFNNgDiikabdevq 9AzRd8Y6uE/Z634h7bGwKooEMtFv/SPM047xdTtZLo8EIyemfvqtdWcHa4RZD0bRVnNFGyjUu60db t5VgZxYD4jDO5MBumjWgiZIXKynpu6Brfvpd+IOUN0E8GO2LEm7Jzw+lpN44D3M63DMie2IgXOuEr 10eVdJa1rq2I2XqztbcFCFYk6u5lcLPI/pvotip5pML0vLCyQAGLdmF99pOo2kRrNFsnIbTvBQIJq b5KrY4LL/6/4oSM7kmLop++mBcAXseWUqknvVxhVUB8U84bbWcPx+kFNGQMuEGiCNAFSfr36ibovB rA8Br/RQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1heLdN-00046N-NE; Fri, 21 Jun 2019 15:39:25 +0000 Received: from inva021.nxp.com ([92.121.34.21]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1heLcw-0003kZ-Ax for linux-arm-kernel@lists.infradead.org; Fri, 21 Jun 2019 15:39:02 +0000 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 001852009FD; Fri, 21 Jun 2019 17:38:56 +0200 (CEST) Received: from inva024.eu-rdc02.nxp.com (inva024.eu-rdc02.nxp.com [134.27.226.22]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id E39D8200071; Fri, 21 Jun 2019 17:38:56 +0200 (CEST) Received: from fsr-ub1664-016.ea.freescale.net (fsr-ub1664-016.ea.freescale.net [10.171.71.216]) by inva024.eu-rdc02.nxp.com (Postfix) with ESMTP id 7482B20629; Fri, 21 Jun 2019 17:38:56 +0200 (CEST) From: Claudiu Manoil To: "David S . Miller" Subject: [PATCH net-next 5/6] dt-bindings: net: Add DT bindings for Microsemi Felix Switch Date: Fri, 21 Jun 2019 18:38:51 +0300 Message-Id: <1561131532-14860-6-git-send-email-claudiu.manoil@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1561131532-14860-1-git-send-email-claudiu.manoil@nxp.com> References: <1561131532-14860-1-git-send-email-claudiu.manoil@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190621_083858_535415_8F1C7356 X-CRM114-Status: UNSURE ( 9.39 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Alexandre Belloni , netdev@vger.kernel.org, alexandru.marginean@nxp.com, linux-kernel@vger.kernel.org, UNGLinuxDriver@microchip.com, Allan Nielsen , Rob Herring , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP DT bindings for the Felix ethernet switch, consisting of the VSC9959 switch core integrated as a PCIe endpoint device. Signed-off-by: Claudiu Manoil --- .../devicetree/bindings/net/mscc-felix.txt | 77 +++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/mscc-felix.txt diff --git a/Documentation/devicetree/bindings/net/mscc-felix.txt b/Documentation/devicetree/bindings/net/mscc-felix.txt new file mode 100644 index 000000000000..c91c63ba524c --- /dev/null +++ b/Documentation/devicetree/bindings/net/mscc-felix.txt @@ -0,0 +1,77 @@ +Microsemi Felix network Switch +============================== + +The Felix switch device is the Microsemi VSC9959 gigabit ethernet +switch core integrated as a PCIe endpoint device. + +Required properties: +- compatible : Should be "mscc,felix-switch" +- reg : Specifies PCIe Device Number and Function + Number of the integrated endpoint device, + according to parent node bindings. +- ethernet-ports: A container of child nodes representing + switch ports. + +"ethernet-ports" container has the following required properties: +- #address-cells: Must be 1 +- #size-cells : Must be 0 + +A list of child nodes representing switch ports is expected. +Each child port node must have the following mandatory property: +- reg : port id (address) in the switch (0..N-1) + +Port nodes may also contain the following optional standardised +properties, described in corresponding binding documents: + +- phy-handle : Phandle to a PHY on a MDIO bus. See + Documentation/devicetree/bindings/net/ethernet.txt + +or, +- fixed-link : "fixed-link" node, for internal ports or external + fixed-link connections. See + Documentation/devicetree/bindings/net/fixed-link.txt + +Example: + + switch@0,5 { + compatible = "mscc,felix-switch" + reg = <0x000500 0 0 0 0>; + + ethernet-ports { + #address-cells = <1>; + #size-cells = <0>; + + /* external ports */ + switch_port0: port@0 { + reg = <0>; + phy-handle = <&phy0>; + }; + switch_port1: port@1 { + reg = <1>; + phy-handle = <&phy1>; + }; + switch_port2: port@2 { + reg = <2>; + phy-handle = <&phy2>; + }; + switch_port3: port@3 { + reg = <3>; + phy-handle = <&phy3>; + }; + /* internal to-cpu ports */ + port@4 { + reg = <4>; + fixed-link { + speed = <1000>; + full-duplex; + }; + }; + port@5 { + reg = <5>; + fixed-link { + speed = <1000>; + full-duplex; + }; + }; + }; + };