{"id":809269,"url":"http://patchwork.ozlabs.org/api/1.2/patches/809269/?format=json","web_url":"http://patchwork.ozlabs.org/project/netdev/patch/01ae7bc45d68322669d18a4feeaeef733ba888d7.1504441874.git.baruch@tkos.co.il/","project":{"id":7,"url":"http://patchwork.ozlabs.org/api/1.2/projects/7/?format=json","name":"Linux network development","link_name":"netdev","list_id":"netdev.vger.kernel.org","list_email":"netdev@vger.kernel.org","web_url":null,"scm_url":null,"webscm_url":null,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<01ae7bc45d68322669d18a4feeaeef733ba888d7.1504441874.git.baruch@tkos.co.il>","list_archive_url":null,"date":"2017-09-03T12:31:13","name":"[v3,2/3] dt-binding: net: sfp binding documentation","commit_ref":null,"pull_url":null,"state":"changes-requested","archived":true,"hash":"804dd49ca632f36529ee19d57b122e0a19045046","submitter":{"id":1458,"url":"http://patchwork.ozlabs.org/api/1.2/people/1458/?format=json","name":"Baruch Siach","email":"baruch@tkos.co.il"},"delegate":{"id":34,"url":"http://patchwork.ozlabs.org/api/1.2/users/34/?format=json","username":"davem","first_name":"David","last_name":"Miller","email":"davem@davemloft.net"},"mbox":"http://patchwork.ozlabs.org/project/netdev/patch/01ae7bc45d68322669d18a4feeaeef733ba888d7.1504441874.git.baruch@tkos.co.il/mbox/","series":[{"id":1222,"url":"http://patchwork.ozlabs.org/api/1.2/series/1222/?format=json","web_url":"http://patchwork.ozlabs.org/project/netdev/list/?series=1222","date":"2017-09-03T12:31:14","name":"[v3,1/3] dt-bindings: add SFF vendor prefix","version":3,"mbox":"http://patchwork.ozlabs.org/series/1222/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/809269/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/809269/checks/","tags":{},"related":[],"headers":{"Return-Path":"<netdev-owner@vger.kernel.org>","X-Original-To":"patchwork-incoming@ozlabs.org","Delivered-To":"patchwork-incoming@ozlabs.org","Authentication-Results":"ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=netdev-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)","Received":["from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xlXRz4TgDz9sP3\n\tfor <patchwork-incoming@ozlabs.org>;\n\tSun,  3 Sep 2017 22:32:31 +1000 (AEST)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1753166AbdICMcX (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tSun, 3 Sep 2017 08:32:23 -0400","from guitar.tcltek.co.il ([192.115.133.116]:47270 \"EHLO\n\tmx.tkos.co.il\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP\n\tid S1753148AbdICMcP (ORCPT <rfc822;netdev@vger.kernel.org>);\n\tSun, 3 Sep 2017 08:32:15 -0400","from sapphire.tkos.co.il (unknown [10.0.4.3])\n\tby mx.tkos.co.il (Postfix) with ESMTPA id 66D374407B2;\n\tSun,  3 Sep 2017 15:32:11 +0300 (IDT)"],"From":"Baruch Siach <baruch@tkos.co.il>","To":"Rob Herring <robh+dt@kernel.org>, Mark Rutland <mark.rutland@arm.com>,\n\tAndrew Lunn <andrew@lunn.ch>, Florian Fainelli <f.fainelli@gmail.com>,\n\t\"David S. Miller\" <davem@davemloft.net>,\n\tRussell King <rmk+kernel@arm.linux.org.uk>","Cc":"netdev@vger.kernel.org, devicetree@vger.kernel.org,\n\tSergei Shtylyov <sergei.shtylyov@cogentembedded.com>,\n\tBaruch Siach <baruch@tkos.co.il>","Subject":"[PATCH v3 2/3] dt-binding: net: sfp binding documentation","Date":"Sun,  3 Sep 2017 15:31:13 +0300","Message-Id":"<01ae7bc45d68322669d18a4feeaeef733ba888d7.1504441874.git.baruch@tkos.co.il>","X-Mailer":"git-send-email 2.14.1","In-Reply-To":"<c2a27566a8eb358ee2566a213c385d0bf3d64307.1504441874.git.baruch@tkos.co.il>","References":"<c2a27566a8eb358ee2566a213c385d0bf3d64307.1504441874.git.baruch@tkos.co.il>","Sender":"netdev-owner@vger.kernel.org","Precedence":"bulk","List-ID":"<netdev.vger.kernel.org>","X-Mailing-List":"netdev@vger.kernel.org"},"content":"Add device-tree binding documentation SFP transceivers. Support for SFP\ntransceivers has been recently introduced (drivers/net/phy/sfp.c).\n\nSigned-off-by: Baruch Siach <baruch@tkos.co.il>\n---\nv3:\n  Mention gpios phandle and specifier\n  Mention the polarity of each gpio\n  Fix example property names\n\nv2:\n  Rename -gpio properties to -gpios\n  Rename the rate-select-gpio property to rate-select0-gpios\n  Add the rate-select1-gpios property\n  Add examples\n---\n Documentation/devicetree/bindings/net/sff,sfp.txt | 78 +++++++++++++++++++++++\n 1 file changed, 78 insertions(+)\n create mode 100644 Documentation/devicetree/bindings/net/sff,sfp.txt","diff":"diff --git a/Documentation/devicetree/bindings/net/sff,sfp.txt b/Documentation/devicetree/bindings/net/sff,sfp.txt\nnew file mode 100644\nindex 000000000000..b98ee5945265\n--- /dev/null\n+++ b/Documentation/devicetree/bindings/net/sff,sfp.txt\n@@ -0,0 +1,78 @@\n+Small Form Factor (SFF) Committee Small Form-factor Pluggable (SFP)\n+Transceiver\n+\n+Required properties:\n+\n+- compatible : must be \"sff,sfp\"\n+\n+Optional Properties:\n+\n+- i2c-bus : phandle of an I2C bus controller for the SFP two wire serial\n+  interface\n+\n+- moddef0-gpios : GPIO phandle and a single specifier of the MOD-DEF0 (AKA\n+  Mod_ABS) module presence input gpio signal, active (module absent) high\n+\n+- los-gpios : GPIO phandle and a single specifier of the Receiver Loss of\n+  Signal Indication input gpio signal, active (signal lost) high\n+\n+- tx-fault-gpios : GPIO phandle and a single specifier of the Module\n+  Transmitter Fault input gpio signal, active (fault condition) high\n+\n+- tx-disable-gpios : GPIO phandle and a single specifier of the Transmitter\n+  Disable output gpio signal, active (Tx disable) high\n+\n+- rate-select0-gpios : GPIO phandle and a single specifier of the Rx Signaling\n+  Rate Select (AKA RS0) output gpio signal, low: low Rx rate, high: high Rx\n+  rate\n+\n+- rate-select1-gpios : GPIO phandle and a single specifier of the Tx Signaling\n+  Rate Select (AKA RS1) output gpio signal (SFP+ only), low: low Tx rate,\n+  high: high Tx rate\n+\n+Example #1: Direct serdes to SFP connection\n+\n+sfp_eth3: sfp-eth3 {\n+\tcompatible = \"sff,sfp\";\n+\ti2c-bus = <&sfp_1g_i2c>;\n+\tlos-gpios = <&cpm_gpio2 22 GPIO_ACTIVE_HIGH>;\n+\tmoddef0-gpios = <&cpm_gpio2 21 GPIO_ACTIVE_LOW>;\n+\tpinctrl-names = \"default\";\n+\tpinctrl-0 = <&cpm_sfp_1g_pins &cps_sfp_1g_pins>;\n+\ttx-disable-gpios = <&cps_gpio1 24 GPIO_ACTIVE_HIGH>;\n+\ttx-fault-gpios = <&cpm_gpio2 19 GPIO_ACTIVE_HIGH>;\n+};\n+\n+&cps_emac3 {\n+\tphy-mode = \"sgmii\";\n+\tphy-names = \"comphy\";\n+\tphys = <&cps_comphy 5 COMPHY_SGMII2>;\n+\tsfp = <&sfp_eth3>;\n+};\n+\n+Example #2: Serdes to PHY to SFP connection\n+\n+sfp_eth0: sfp-eth0 {\n+\tcompatible = \"sff,sfp+\";\n+\ti2c-bus = <&sfpp0_i2c>;\n+\tlos-gpios = <&cps_gpio1 28 GPIO_ACTIVE_HIGH>;\n+\tmoddef0-gpios = <&cps_gpio1 27 GPIO_ACTIVE_LOW>;\n+\tpinctrl-names = \"default\";\n+\tpinctrl-0 = <&cps_sfpp0_pins>;\n+\ttx-disable-gpios = <&cps_gpio1 29 GPIO_ACTIVE_HIGH>;\n+\ttx-fault-gpios  = <&cps_gpio1 26 GPIO_ACTIVE_HIGH>;\n+};\n+\n+p0_phy: ethernet-phy@0 {\n+\tcompatible = \"ethernet-phy-ieee802.3-c45\";\n+\tpinctrl-names = \"default\";\n+\tpinctrl-0 = <&cpm_phy0_pins &cps_phy0_pins>;\n+\treg = <0>;\n+\tinterrupt = <&cpm_gpio2 18 IRQ_TYPE_EDGE_FALLING>;\n+\tsfp = <&sfp_eth0>;\n+};\n+\n+&cpm_eth0 {\n+\tphy = <&p0_phy>;\n+\tphy-mode = \"10gbase-kr\";\n+};\n","prefixes":["v3","2/3"]}