From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4F632C43613 for ; Fri, 21 Jun 2019 15:39:28 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 26C3420673 for ; Fri, 21 Jun 2019 15:39:28 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="pypHjpPr" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 26C3420673 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 1heLdM-00046N-CO; Fri, 21 Jun 2019 15:39:24 +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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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; + }; + }; + }; + }; -- 2.17.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel