From patchwork Tue Nov 4 11:56:36 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: shaohui xie X-Patchwork-Id: 406609 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 1BD6414009E for ; Wed, 5 Nov 2014 00:28:43 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753363AbaKDN2l (ORCPT ); Tue, 4 Nov 2014 08:28:41 -0500 Received: from mail-bn1bon0085.outbound.protection.outlook.com ([157.56.111.85]:28480 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753234AbaKDN2k (ORCPT ); Tue, 4 Nov 2014 08:28:40 -0500 X-Greylist: delayed 1065 seconds by postgrey-1.27 at vger.kernel.org; Tue, 04 Nov 2014 08:28:40 EST Received: from DM2PR03MB1021.namprd03.prod.outlook.com (10.141.212.20) by DM2PR03MB382.namprd03.prod.outlook.com (10.141.55.14) with Microsoft SMTP Server (TLS) id 15.1.11.14; Tue, 4 Nov 2014 12:56:16 +0000 Received: from BY2PR03CA060.namprd03.prod.outlook.com (10.141.249.33) by DM2PR03MB1021.namprd03.prod.outlook.com (10.141.212.20) with Microsoft SMTP Server (TLS) id 15.1.11.14; Tue, 4 Nov 2014 12:56:14 +0000 Received: from BN1AFFO11FD028.protection.gbl (2a01:111:f400:7c10::143) by BY2PR03CA060.outlook.office365.com (2a01:111:e400:2c5d::33) with Microsoft SMTP Server (TLS) id 15.1.11.14 via Frontend Transport; Tue, 4 Nov 2014 12:56:14 +0000 Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1AFFO11FD028.mail.protection.outlook.com (10.58.52.88) with Microsoft SMTP Server (TLS) id 15.1.6.13 via Frontend Transport; Tue, 4 Nov 2014 12:56:13 +0000 Received: from Tank.ap.freescale.net (tank.ap.freescale.net [10.193.20.104]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id sA4Cu9am017775; Tue, 4 Nov 2014 05:56:10 -0700 From: To: , , CC: , Shaohui Xie Subject: [PATCH] DT: add MDIO node for FMan node Date: Tue, 4 Nov 2014 19:56:36 +0800 Message-ID: <1415102196-9238-1-git-send-email-shh.xie@gmail.com> X-Mailer: git-send-email 1.8.4.1 X-EOPAttributedMessage: 0 X-Matching-Connectors: 130595793738833715; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:CAL; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(189002)(199003)(84676001)(4396001)(87572001)(50986999)(83322999)(19580395003)(86152002)(55446002)(50226001)(47776003)(86362001)(15975445006)(64706001)(73392002)(20776003)(81442002)(50466002)(62966003)(76482003)(104166001)(93916002)(99396003)(61266001)(120916001)(88136002)(33646002)(48376002)(46102003)(104016003)(97736003)(44976005)(68736004)(87936001)(36756003)(31966008)(87286001)(19580405001)(73972006)(92566001)(107046002)(2201001)(82202001)(89996001)(92726001)(229853001)(26826002)(102836001)(77156002)(95666004)(15202345003)(106466001)(6806004)(21056001)(105596002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR03MB1021; H:tx30smr01.am.freescale.net; FPR:; MLV:ovrnspm; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Antispam: UriScan:;UriScan:; X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;SRVR:DM2PR03MB1021; X-Forefront-PRVS: 03853D523D Received-SPF: SoftFail (protection.outlook.com: domain of transitioning gmail.com discourages use of 192.88.168.50 as permitted sender) Authentication-Results: spf=softfail (sender IP is 192.88.168.50) smtp.mailfrom=shh.xie@gmail.com; X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;SRVR:DM2PR03MB382; Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Shaohui Xie This binding is for FMan MDIO, it covers FMan v2 & FMan v3. Signed-off-by: Shaohui Xie --- based on http://patchwork.ozlabs.org/patch/390351/ for 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/scottwood/linux.git .../devicetree/bindings/powerpc/fsl/fman.txt | 69 ++++++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/Documentation/devicetree/bindings/powerpc/fsl/fman.txt b/Documentation/devicetree/bindings/powerpc/fsl/fman.txt index da8e5f2..83c2f14 100644 --- a/Documentation/devicetree/bindings/powerpc/fsl/fman.txt +++ b/Documentation/devicetree/bindings/powerpc/fsl/fman.txt @@ -7,6 +7,7 @@ CONTENTS - FMan MURAM Node - FMan dTSEC/XGEC/mEMAC Node - FMan IEEE 1588 Node + - FMan MDIO Node - Example ============================================================================= @@ -352,6 +353,67 @@ ptp-timer@fe000 { }; ============================================================================= +FMan MDIO Node + +DESCRIPTION + +The MDIO is a bus to which the PHY devices are connected. + +PROPERTIES + +- compatible + Usage: required + Value type: + Definition: A standard property. + Must include "fsl,fman-mdio" for 1 Gb/s MDIO from FMan v2. + Must include "fsl,fman-xmdio" for 10 Gb/s MDIO from FMan v2. + Must include "fsl,fman-memac-mdio" for 1/10 Gb/s MDIO from + FMan v3. + +- reg + Usage: required + Value type: + Definition: A standard property. + +- bus-frequency + Usage: optional + Value type: + Definition: Default MDIO bus clock speed. + +- interrupts + Usage: optional + Value type: + Definition: MDIO controller event interrupts. + +- type + Usage: required for FMan v3 + Value type: + Definition: A standard property. + FMan v3 has internal MDIO for internal PCS(Physical Coding + Sublayer) PHYs and external MDIO for external PHYs. + The settings and programming routines for internal/external + MDIO are different. Must include "internal" for internal MDIO, + must include "external" for external MDIO. + +EXAMPLE + +Example for FMan v2: + +mdio@f1000 { + compatible = "fsl,fman-xmdio"; + reg = <0xf1000 0x1000>; +}; + +Example for FMan v3: + +mdio@fd000 { + compatible = "fsl,fman-memac-mdio"; + reg = <0xfd000 0x1000>; + bus-frequency = <2500000>; + type = "external"; +}; + +============================================================================= Example fman@400000 { @@ -526,4 +588,11 @@ fman@400000 { compatible = "fsl,fman-ptp-timer"; reg = <0xfe000 0x1000>; }; + + mdio@fd000 { + compatible = "fsl,fman-memac-mdio"; + reg = <0xfd000 0x1000>; + bus-frequency = <2500000>; + type = "external"; + }; };