Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1520206imm; Mon, 3 Sep 2018 02:36:23 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbTh2va9OnNdouoN89O/mpHgWAya+vcUbRUrc6UDbG9fAFae0xNf+WWYGDQEUyMIDZUwZPP X-Received: by 2002:a63:d150:: with SMTP id c16-v6mr25634094pgj.188.1535967383224; Mon, 03 Sep 2018 02:36:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535967383; cv=none; d=google.com; s=arc-20160816; b=n1xIaJYzBsghBC73ylu3fjg0mfAEEwAVjIdp11hEBvMST3/jbKhtQ2njqNTfq7dhMO gxl8fdPbXrBBxyfTcLwtuOCUbczCij8yXCGVxqk+POE9fxDYLets5W4HWy+QbyjMxzn/ Eb2fPbCBQ5zlKOF55iYQqDhgDYJMCYDzKTzJUlUtvLO7hd0++LS3/oZ9YT/70EtrXftT 0CLGB1so6c7Z6UPY59ab3vHzy8JWO2Hwvv7+WYGDimh9/tv23+yCSrgLNSZyJck+0I/r Sb9gA0t17X1qhQLdAv62Pj/EUS5l8HtLosB5wfz2AVwYXVAZnIdBjr352NGag2SeAR2B K5xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=7UtUE4gizwNF1wWbAYGyFwKY8MAfjykVCoEGFilQkdQ=; b=QpzIkaOsMxxh+6KnH6HQ99CM9FG234QKVKeeCAOED45GLcq1AboDfs4lN5HPsi7RQL SFbY1QmEhD7V6sOPiw/Gd8N0ZhHlK/EBXVnnmwRyXl4aQ9Rqo+b6Qzu4L1B3KL5ZgeyH sg/MZUF2p5yuOOXjEzveSwXbHAu/1c4xog0z68RoseFW0hIA6D8vmp1YoA9KkqmnedRX Ypyy7Qo1puhr6qVS5aughbx03iCceu+WCeLe8VrLx0ARjDO8VVQKLGaTZV5ovfdWFBRX +Emy+H7ygB6w618b8+webIrRSwWWiWshpeRYtcscaYh1bCgYsxjGatsPz2f79/8x3foN 1l7A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f1-v6si20551716plm.437.2018.09.03.02.36.08; Mon, 03 Sep 2018 02:36:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727762AbeICNxx (ORCPT + 99 others); Mon, 3 Sep 2018 09:53:53 -0400 Received: from mail.bootlin.com ([62.4.15.54]:54584 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727604AbeICNxN (ORCPT ); Mon, 3 Sep 2018 09:53:13 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 350E922A40; Mon, 3 Sep 2018 11:33:54 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost.localdomain (AAubervilliers-681-1-92-107.w90-88.abo.wanadoo.fr [90.88.33.107]) by mail.bootlin.com (Postfix) with ESMTPSA id 03B0C22A44; Mon, 3 Sep 2018 11:33:25 +0200 (CEST) From: Quentin Schulz To: alexandre.belloni@bootlin.com, ralf@linux-mips.org, paul.burton@mips.com, jhogan@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, davem@davemloft.net, kishon@ti.com, andrew@lunn.ch, f.fainelli@gmail.com Cc: allan.nielsen@microchip.com, linux-mips@linux-mips.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, thomas.petazzoni@bootlin.com, Quentin Schulz Subject: [PATCH v2 07/11] dt-bindings: phy: add DT binding for Microsemi Ocelot SerDes muxing Date: Mon, 3 Sep 2018 11:33:04 +0200 Message-Id: <20180903093308.24366-8-quentin.schulz@bootlin.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180903093308.24366-1-quentin.schulz@bootlin.com> References: <20180903093308.24366-1-quentin.schulz@bootlin.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Quentin Schulz --- .../bindings/phy/phy-ocelot-serdes.txt | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/phy-ocelot-serdes.txt diff --git a/Documentation/devicetree/bindings/phy/phy-ocelot-serdes.txt b/Documentation/devicetree/bindings/phy/phy-ocelot-serdes.txt new file mode 100644 index 000000000000..2a88cc346162 --- /dev/null +++ b/Documentation/devicetree/bindings/phy/phy-ocelot-serdes.txt @@ -0,0 +1,40 @@ +Microsemi Ocelot SerDes muxing driver +------------------------------------- + +On Microsemi Ocelot, there is a handful of registers in HSIO address +space for setting up the SerDes to switch port muxing. + +A SerDes X can be "muxed" to work with switch port Y or Z for example. +One specific SerDes can also be used as a PCIe interface. + +Hence, a SerDes represents an interface, be it an Ethernet or a PCIe one. + +There are two kinds of SerDes: SERDES1G supports 10/100Mbps in +half/full-duplex and 1000Mbps in full-duplex mode while SERDES6G supports +10/100Mbps in half/full-duplex and 1000/2500Mbps in full-duplex mode. + +Also, SERDES6G number (aka "macro") 0 is the only interface supporting +QSGMII. + +Required properties: + +- compatible: should be "mscc,vsc7514-serdes" +- #phy-cells : from the generic phy bindings, must be 2. + The first number defines the input port to use for a given + SerDes macro. The second defines the macro to use. They are + defined in dt-bindings/phy/phy-ocelot-serdes.h + +Example: + + serdes: serdes { + compatible = "mscc,vsc7514-serdes"; + #phy-cells = <2>; + }; + + ethernet { + port1 { + phy-handle = <&phy_foo>; + /* Link SERDES1G_5 to port1 */ + phys = <&serdes 1 SERDES1G_5>; + }; + }; -- 2.17.1