From patchwork Thu Dec 24 01:42:11 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Igal.Liberman" X-Patchwork-Id: 560936 X-Patchwork-Delegate: scottwood@freescale.com Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id BB394140C3C for ; Fri, 25 Dec 2015 00:12:02 +1100 (AEDT) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 9FCF61A024B for ; Fri, 25 Dec 2015 00:12:02 +1100 (AEDT) X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Received: from na01-by2-obe.outbound.protection.outlook.com (mail-by2on0145.outbound.protection.outlook.com [207.46.100.145]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 06FD61A01EB for ; Fri, 25 Dec 2015 00:11:05 +1100 (AEDT) Received: from BN3PR0301CA0005.namprd03.prod.outlook.com (10.160.180.143) by BN1PR0301MB0755.namprd03.prod.outlook.com (10.160.78.15) with Microsoft SMTP Server (TLS) id 15.1.361.13; Thu, 24 Dec 2015 13:10:58 +0000 Received: from BN1BFFO11FD020.protection.gbl (2a01:111:f400:7c10::1:131) by BN3PR0301CA0005.outlook.office365.com (2a01:111:e400:4000::15) with Microsoft SMTP Server (TLS) id 15.1.361.13 via Frontend Transport; Thu, 24 Dec 2015 13:10:58 +0000 Authentication-Results: spf=permerror (sender IP is 192.88.158.2) smtp.mailfrom=freescale.com; freescale.mail.onmicrosoft.com; dkim=none (message not signed) header.d=none; freescale.mail.onmicrosoft.com; dmarc=none action=none header.from=freescale.com; Received-SPF: PermError (protection.outlook.com: domain of freescale.com used an invalid SPF mechanism) Received: from az84smr01.freescale.net (192.88.158.2) by BN1BFFO11FD020.mail.protection.outlook.com (10.58.144.83) with Microsoft SMTP Server (TLS) id 15.1.355.15 via Frontend Transport; Thu, 24 Dec 2015 13:10:57 +0000 Received: from b31950-Sun-Ultra-20-Workstation.fil.ea.freescale.net ([10.96.120.74]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id tBODAsn7015027; Thu, 24 Dec 2015 06:10:55 -0700 From: To: , Subject: [v2] powerpc/fsl: Update fman dt binding with pcs-phy and tbi-phy Date: Thu, 24 Dec 2015 03:42:11 +0200 Message-ID: <1450921331-25309-1-git-send-email-igal.liberman@freescale.com> X-Mailer: git-send-email 1.7.9.5 X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD020; 1:Nv7blweHF7R8q4F5l9Tb6iC7Jkvj6klrbi9Kk1dLYltLH1fUBAlrr68mtPUe7J4b3JFXmw6uUfdGOmWl4e87zmHkNq8XqvkBMA6UKdiQHYh6z1KIs6kvTmUrIc7piqUBIvNKMrPmcoLyeJzaK/uy3RxCOqu414dGwF9aSCz9fYf5pmixSe1C87xNae/F36sQZjPUmf9wcVY1Tnk/iKhd08hO5RHdIvs1rhjN9yKXjxHgr6CzMCobJMwYHuBDfTl5SRXvE0f9R0NpZ+YjeFeK30vXnjzQiVeb5FymDtgbtmN3suXbP5KahXoGwg5QCBfGB9EE05t+MpQOxcyv0ArPpKCJpMs4erjNRD7i12M2BxjVpciCg5hRGTxwhq6T1jpJjO0t6S3eEDuTV+ZV8LhPEZG3TlgEiEdSuymvFG5z0BR3bkYC2B3Lxa3JVT1xG3JP X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(448002)(3190300001)(189002)(199003)(11100500001)(229853001)(189998001)(81156007)(50226001)(106466001)(33646002)(19580405001)(50986999)(97736004)(69596002)(19580395003)(85326001)(5001770100001)(5001960100002)(87936001)(586003)(36756003)(86362001)(53806999)(50466002)(48376002)(107886002)(4001430100002)(5008740100001)(5003940100001)(43066003)(1096002)(2876002)(77096005)(1220700001)(104016004)(6806005)(47776003)(86152002); DIR:OUT; SFP:1102; SCL:1; SRVR:BN1PR0301MB0755; H:az84smr01.freescale.net; FPR:; SPF:PermError; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; BN1PR0301MB0755; 2:wtZpk6BjUPBPGP3ykx/uZgZ3KbIpl/YNKfvYYgj21LuviqNP5VYiimYgHWMWX7rEqfh8P+bOdRs06Sl7ZyPwzkK1Vj14kgSgRi2pBe+sCCRS9EE0MA23Ftk1p/D6F6DUFGrtypRw/vbPbXlOmd3G2Q==; 3:GDSNcC2WzemJfPgvbA86pTjI7NLayL/q4o9oHfwOW2Q/viEEBuamCL1g/Lb3DU3JPNK7zeo6/VbxgMWLBHZ4RTjgrucOIyQAk8aIuTMY2R+V3HtgvZ1OmfTduumDaDn7Ix/S5p8QjgWMlyhfMOZ8i97S7EXtROSNPufMcNvXEOxyPltAngLLKFwpBuQX9Y7/g3N/BINyKH/TM2GWzK4DAgNjnGtgoTppo9F7YsNDiiA=; 25:DiRkmwLLKtvtreHCdIAB/1cLyqpnF3odzm4CHbH3vVJNm33u0LWO9RXN/uk3XJurjzSFqkvoYgQfQneHqjS5uqGBjpMq+v6MhGw87vWTebflalU415/2jPNixcIKNQhFBdQ/nTAj8kmmf3wT9ppbs6tsQNeW76bUDddX3s+2hgEBoDKgh5+juv9BHvnlqZVYnO7lECJmpicpz9hGgjRMG88cX9fWKhIt+vzwXqGwtQX5o6O3nMVOIiNQCj78kosWw3C+sREewwEw3w57Y3qxVQ== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN1PR0301MB0755; X-Microsoft-Exchange-Diagnostics: 1; BN1PR0301MB0755; 20:gpzMEqv7RrFxcb4tVHpLpsk029cNSjQQH7BSpOEEjF8H7chI3t1n217wcciZFS5h6xLynwtqI0Zr6KGc20QK+Ycc6BgeEn0AzP1THnAgQtJK12PNRI5ZPB4zNX0jxEbz4gOwAvy9OlI06bm3uyUlDm9n/aL2Ljbg0v2AbtqquxKtevwrS5oRHFreTSXzpx82BCatZxZvMocXOcr1oQRAvCnTZuVf1str0OV6OYfP5KSH0BI42qhhFoa5vopdkchqU+GMgc1KA9n5UFpt4njAxqkODdj1gB3Gt0RwGa4bbknoSexDsccVey9UfiEEQfWpiozan+NfXtSbRPtSpfos7nk428q6JCngFV4ctbIEbzY=; 4:L3RA3RSvONhzqxCtj0VGDWOJrxhJHykOJ0sADIoHVvB1GONvDp/SSiE4lQ6HwDCi5dqfACOLwwHJtor89XB/kmvJcO42uCE3BfSBhttLrrXmxZVWSQgwGyWVUSkSK2pLDgUu5DxGtgxyItuuCt2/lqx91GLnhi6Y4ceeXayBczbWEFc+fsEjSgz5XmbuQEhePF05K58+BmXeknUGic5be4HX70LX/phTnGksMDBM7O5qfD8Aw/g5HWTfTjsshyw7a4T1DCktfriCIEINONNgLyyaARxE+EPG+GpU5VGmDsZGi7exGv7mAVcjA1t2vCipEimjvu1h02Xu2acKEDfXZEtuAMGUXhPanGDTA2pgU2TGtYgngBUsMKa7xL2vGXqO7hh2mR08NFKZymf6IRtv+/ExaSgRjiZn5JcoV75Tvfct9NOSgegnujKjLj+lTGsO X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(101931422205132); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(520078)(8121501046)(10201501046)(3002001); SRVR:BN1PR0301MB0755; BCL:0; PCL:0; RULEID:; SRVR:BN1PR0301MB0755; X-Forefront-PRVS: 0800C0C167 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN1PR0301MB0755; 23:etUSP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Q?38oass2OlM6Pyf3uCdjB37/Ph3vv/0NHFFn1Uk/voT2YGPg8hwFWTaOpydhm?= =?us-ascii?Q?IjVSC0+lrol0ctubIOG9sog5v6mdoAFzLf8MriCj8SRMYsndiy6AnWRpyPaj?= =?us-ascii?Q?oRhhwAsKGTJm0tC2Imef552AtVKpJB0OnNynSP2S0ajvlXIXuNQwFtf32HuW?= =?us-ascii?Q?s4PD2qXUBn8bF7o7CLpXmDJJWIWy2/SJmON2c9Pd6/7pI/2jbkA=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; BN1PR0301MB0755; 5:u5a3OHPc0ZValEcxIv36n2SdIAR6viNeamibrLvxINRsqpy2kCYelnPulx2bVU0T53Fj3LISFRm1uWv67hJSSKVxBO29T1czv5OY++cwweVZ2kuymzcQ9ns7prlpniixHv4kyoI6ymlauMD40dVeYw==; 24:qazUS2XkMQ9i3yHk9S02NPRCzeWL+BXlPo9l+MVHqy0C8S4tIMU7BPEpHBwoQZxE0dCym/cOnaQYeLlogGs5yUCu6yD+/ca3gGd4zA5fxlM= X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Dec 2015 13:10:57.7952 (UTC) X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d; Ip=[192.88.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN1PR0301MB0755 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: igal.liberman@freescale.com Cc: scottwood@freescale.com, Igal Liberman , shaohui.xie@freescale.com, madalin.bucur@freescale.com Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" From: Igal Liberman The FMan contains internal PHY devices used for SGMII connections to external PHYs. When these PHYs are in use a reference is needed for both the external PHY and the internal one. For the external PHY phy-handle provides the reference. For the internal PHY a new handle is required. In dTSEC, the internal PHY is a TBI (Ten Bit Interface) PHY, the handle used will be tbi-handle. In mEMAC, the internal PHY is a PCS (Physical Coding Sublayer) PHY, the handle used will be pcsphy-handle. Signed-off-by: Igal Liberman --- v1 --> v2 Addressed feedback from Scott Wood: - Improved commit description - Added missing parentheses .../devicetree/bindings/powerpc/fsl/fman.txt | 40 ++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/Documentation/devicetree/bindings/powerpc/fsl/fman.txt b/Documentation/devicetree/bindings/powerpc/fsl/fman.txt index 1fc5328..55c2c03 100644 --- a/Documentation/devicetree/bindings/powerpc/fsl/fman.txt +++ b/Documentation/devicetree/bindings/powerpc/fsl/fman.txt @@ -315,6 +315,16 @@ PROPERTIES Value type: Definition: A phandle for 1EEE1588 timer. +- pcsphy-handle + Usage required for "fsl,fman-memac" MACs + Value type: + Definition: A phandle for pcsphy. + +- tbi-handle + Usage required for "fsl,fman-dtsec" MACs + Value type: + Definition: A phandle for tbiphy. + EXAMPLE fman1_tx28: port@a8000 { @@ -340,6 +350,7 @@ ethernet@e0000 { reg = <0xe0000 0x1000>; fsl,fman-ports = <&fman1_rx8 &fman1_tx28>; ptp-timer = <&ptp-timer>; + tbi-handle = <&tbi0>; }; ============================================================================ @@ -415,6 +426,13 @@ PROPERTIES The settings and programming routines for internal/external MDIO are different. Must be included for internal MDIO. +For internal PHY device on internal mdio bus, a PHY node should be created. +See the definition of the PHY node in booting-without-of.txt for an +example of how to define a PHY (Internal PHY has no interrupt line). +- For "fsl,fman-mdio" compatible internal mdio bus, the PHY is TBI PHY. +- For "fsl,fman-memac-mdio" compatible internal mdio bus, the PHY is PCS PHY, + PCS PHY addr must be '0'. + EXAMPLE Example for FMan v2 external MDIO: @@ -425,12 +443,29 @@ mdio@f1000 { interrupts = <101 2 0 0>; }; +Example for FMan v2 internal MDIO: + +mdio@e3120 { + compatible = "fsl,fman-mdio"; + reg = <0xe3120 0xee0>; + fsl,fman-internal-mdio; + + tbi1: tbi-phy@8 { + reg = <0x8>; + device_type = "tbi-phy"; + }; +}; + Example for FMan v3 internal MDIO: mdio@f1000 { compatible = "fsl,fman-memac-mdio"; reg = <0xf1000 0x1000>; fsl,fman-internal-mdio; + + pcsphy6: ethernet-phy@0 { + reg = <0x0>; + }; }; ============================================================================= @@ -568,6 +603,7 @@ fman@400000 { cell-index = <0>; reg = <0xe0000 0x1000>; fsl,fman-ports = <&fman1_rx_0x8 &fman1_tx_0x28>; + tbi-handle = <&tbi5>; }; ethernet@e2000 { @@ -575,6 +611,7 @@ fman@400000 { cell-index = <1>; reg = <0xe2000 0x1000>; fsl,fman-ports = <&fman1_rx_0x9 &fman1_tx_0x29>; + tbi-handle = <&tbi6>; }; ethernet@e4000 { @@ -582,6 +619,7 @@ fman@400000 { cell-index = <2>; reg = <0xe4000 0x1000>; fsl,fman-ports = <&fman1_rx_0xa &fman1_tx_0x2a>; + tbi-handle = <&tbi7>; }; ethernet@e6000 { @@ -589,6 +627,7 @@ fman@400000 { cell-index = <3>; reg = <0xe6000 0x1000>; fsl,fman-ports = <&fman1_rx_0xb &fman1_tx_0x2b>; + tbi-handle = <&tbi8>; }; ethernet@e8000 { @@ -596,6 +635,7 @@ fman@400000 { cell-index = <4>; reg = <0xf0000 0x1000>; fsl,fman-ports = <&fman1_rx_0xc &fman1_tx_0x2c>; + tbi-handle = <&tbi9>; ethernet@f0000 { cell-index = <8>;