Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752037AbcCGCh3 (ORCPT ); Sun, 6 Mar 2016 21:37:29 -0500 Received: from mail-bl2on0090.outbound.protection.outlook.com ([65.55.169.90]:17877 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751717AbcCGChQ (ORCPT ); Sun, 6 Mar 2016 21:37:16 -0500 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=none action=none header.from=nxp.com; From: Zhao Qiang To: CC: , , , , , , Zhao Qiang Subject: [PATCH v4 2/8] QE: Add ucc hdlc document to bindings Date: Mon, 7 Mar 2016 10:28:02 +0800 Message-ID: <1457317688-20330-2-git-send-email-qiang.zhao@nxp.com> X-Mailer: git-send-email 2.1.0.27.g96db324 In-Reply-To: <1457317688-20330-1-git-send-email-qiang.zhao@nxp.com> References: <1457317688-20330-1-git-send-email-qiang.zhao@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131017918332618798;(91ab9b29-cfa4-454e-5278-08d120cd25b8);() X-Forefront-Antispam-Report: CIP:192.88.168.50;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(85426001)(33646002)(110136002)(2351001)(1096002)(1220700001)(229853001)(47776003)(106466001)(87936001)(105606002)(5003940100001)(104016004)(6806005)(11100500001)(2950100001)(2906002)(4326007)(48376002)(86362001)(36756003)(92566002)(50466002)(19580395003)(189998001)(586003)(50226001)(81166005)(76176999)(77096005)(5008740100001)(19580405001)(50986999)(7059030);DIR:OUT;SFP:1101;SCL:1;SRVR:DM2PR03MB317;H:tx30smr01.am.freescale.net;FPR:;SPF:Fail;MLV:sfv;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BL2FFO11FD027;1:HNOwlcCL2AikgsmHmDlr94aX85ICF8/HVLPhQNfppT+iliXyDOVSrrVe4DdrkgPSa2eFvZ1XgoaAWQ3L64qOhN78I58SizSPmCb9TtFvsZ2/cmcgXQ5Exzc7nOxpvCXXsaGvKgV29fZYrVGZEk4+W36nsxhZoiBIQidJhY3vyNkOwsKbNWRPg1v0/MaxO86oy0HH4pzFiCNG6Iq6qdDVDanjtfq0c+EnRVcJWtFZSBCeslAAl+TDL2zXM5sUEeAJL9wKy/D+vCNrrs+kUHuGETyaBthU9hnQWWMBxkI1jxWobA1M77EJvigIipmBKw6ymNg/3FtRAsx/6FX0MwsiuGxd2ewWAbESp7K3dSgsLmaEHRrQx5L3RNp2WUwRhMyITI64KvDzo211Suoko7Zgr76sIYK298wC+/YR4QoVZNebJFdzIxQetsLmsP/mXx1wwmQBAlC6+rIUMLGDCb5yjcYK/HqfB0L51or5UYidDTnBeV1i4FlRsPLLo0D8E2M1K2nnvIPOeGjVG8oRNz4NzprYH98fpS20SiYRMrz8YfDoait49q7yh36g8Cabkz7KAm24UiW48n2c+usWNsZqlQ8KDuSudfaKKqOLQgLp1MY= MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: ea87892c-7641-41c5-482e-08d3463163e4 X-Microsoft-Exchange-Diagnostics: 1;DM2PR03MB317;2:CqSioX8m6JTj7uvBO1EuGkivYVuLFUUyReFRyRQzw3Jw5J5mhRM0+pBn4WI1P38N3y04DXqmxjlCTkvkoLGhdJEpNPl6a3GhaVhQ5n346U+wrBMNV28dWxHd34w+7gh2wkkBYP2Ux8HRXl3PIG1mqksBDthS9LMt0bYUZ5aP9deXvuHSMRBGseNhGNBZ63jJ;3:AqlrNFk3rpPgQC49XWXbqmIAkNVs9ynId3mywTlxQb+V5Db5ARTSGKWH1DhioBpND6uuOAvXbSzeWBC6k8JrFsFfheAIfaOfERren3pGA9Rgtu3OFJt4SOMaYn0wNwgtuqs2tFftKFSE024YblYPf5BKPoDtVuncwATgFQZo1UKpgn3OSNQP8Pt8X/GXeBuGwVyt0h5Dg5HqfrAgepxLEUMLVdP7Crgjs/er38U6/Oo=;25:YNO7+ORpq2EegA4ywtJjq1pjcljlDruwrjteJQi8F4b1IeAKuXR9M0NLRnITch2mj8ZrSy+LZh7tPvXr6fmVpyH7pRPPCa97gF5Z26bdc/uYHfTClKBEQJDlad610rWsqshee6oBXrhHpdlwr3rah1c1cxwUrC7Sfg5UFLDX/oRjKJG3yfw0DE/GYKAmjAxWu3nIVUA4XsRXU5wXiXLgZDIMWuIjUdlA7Bn5iQhzeyurctQk3hTC5flTpl7rKDxP07mDjIt/ml00LEDvSdronmn90ZVs1lpCPdGpn8aMDtAcjGTl2husZ92j7na/m9Udl2tIoWd37e2K3xyyJ99idw== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DM2PR03MB317; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(5005006)(13018025)(13017025)(13015025)(13024025)(13023025)(8121501046)(3002001)(10201501046);SRVR:DM2PR03MB317;BCL:0;PCL:0;RULEID:(400006);SRVR:DM2PR03MB317; X-Microsoft-Exchange-Diagnostics: 1;DM2PR03MB317;4:ClN6cPFy8oDtr8Nopj2XcPdvsq7dUeO69hh7+GYx4LtAsrjIxtiHCj8D0nkj3Bag378sBRfcGTsGVnDN2FX+Ut+P3vy1FJGCuc5HG45HA5f+8lkIX1wz29n4tBqMH2M8X1SUiCk/8NrvDaCUspyyM1R8G2EedOY4dAPg4CukSMQw1WhIkWcDX8CgFqkOOFdNts0vIMWohSnCD64z4Om9rpCStWM9Yj3QAVcUDMNsYNlE/yNSpA9IIkC3kUUNhprB8l9DUxda5PJNFdqvrqqAt+4eKt5rIG+vvaWtVAMDRO8qrD8psmfMMlsSns4pboNRwM4q6CTbNJy53sGnyM6lhnCTPrGXT5hFGqobkIzdDuBJ46BD8bLbEihHDva3CAvrG9BgjjwimbKz6+5oRzT+9W4PXMRWwuTXYZIB1Xf03fWfrJA8vvscV311hOcDQ8/gcebx3JpfZdUs8lDB8WzE7Q== X-Forefront-PRVS: 087474FBFA X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;DM2PR03MB317;23:Ts8tNpmeaJlHnZNvTh6RCheNi/X7fjgvobRBCtXIP/?= =?us-ascii?Q?AXJ557FMCFy2bzQcRavhfRIwM36/hfNk/tEEaT6Yad1nthwbkn5QZjR7lJNu?= =?us-ascii?Q?wo5qOdtEdnH7gMnV30q1EDBfDpO7ZTTRX/IxKOPyuyi+k+fngGhjJ7Lv5j03?= =?us-ascii?Q?+iS7avAX3hNDtqUYQXGFYcxWg/CE30zlJTPQI47jgzrfbinhS3wIKZyCb/UJ?= =?us-ascii?Q?ga/qWcxv8X75i6TXxCRJaQKPrP3HVemOpIj3/we+5+sQam6Ogcb7qN4KlYd/?= =?us-ascii?Q?cW2imrYttI6ufQCtvURwLeDHQkSRYfjC8X96GRGoPbA5BtmD8DMxQoTI7QVQ?= =?us-ascii?Q?9F7FQRw+iQdFEgvFKB7gYCElwF9k/37U1c2EqJ5MLmlEBgyIAjyF33UrZqr8?= =?us-ascii?Q?oi5hqQCtXR01QaQYmWH2DUcgwnEkB1quuSRNkWZjWiJi3tBC3skcRyMGjmyl?= =?us-ascii?Q?Bg2wOOA+CqCS6rVjRaPzOTtLUzS3KJB9ZLxcldaRj3IPH1tliGCweTJa8wmZ?= =?us-ascii?Q?fAMMCJ5WYnZN2xYvUtNoSXzm03cOtK3tikt97spTRqWSiPBLBXbAkLPBFOk3?= =?us-ascii?Q?+vELY5aLpFiAO3WBZNqh+tLf7RDp6njt0eYV16p6Gv2xdWXP+6p+BMki5Wuf?= =?us-ascii?Q?UGkJ4SlKVCb4u4NHKItlfjJVnzxhe959iZSubusWlcz/9/CvxWgU41viN5Q8?= =?us-ascii?Q?QrAP+KX96UtaHDOAqwMChJ+nzlrGODqqGViG6uOoCCeu6OC/ZSyXwgIXtECy?= =?us-ascii?Q?ZF2hsghSZLBoVhHNRM1jW7By7kYxy0+umW+TBlb7xUsMIcjgc/0HAwyOb0Vb?= =?us-ascii?Q?dH9RmZIYh3EHK/rfCSAJnm1DrMIr0KirEGzxFxYayWar8jc7f+KHHQTzFVVZ?= =?us-ascii?Q?dvLshP/WfPsn8OOIKJPUAFvlcmYdVJKYRwQYqC3RF/uzQUSIh7Hd5bGx1f5/?= =?us-ascii?Q?U4qjcd1WsHHr1SvgAhelkJ7oL3B0dmYQRUl6RK76yDlijvnTAGbMSMdLEQxI?= =?us-ascii?Q?cM2h0RjmP8l+nsIrEvA6o2UP1Djd+SDci71UjwF/x3ocIZJsYlIF0yhFcskz?= =?us-ascii?Q?tfmzs=3D?= X-Microsoft-Exchange-Diagnostics: 1;DM2PR03MB317;5:HndP/XWU/Kjw4lhr7Ymk5FzXS7pQhbgRQpuTeXn6LgDZROSbHFxO4wMwe87GX5/aLn95mwMc1sk0Oc406ZA5787Wh6hrI4yvkCSJ4+lsDdwlfibUrx4egy4+yEAJ+bvfaU0wIrBR7r350y80dxh0gU8U2Z26Cr+53NMYKp68ha8=;24:PV6azE9qI4+mNVFicVAy+LeFI/5FuqrKXtb04gi6FwsyBamjNCaGyA8vC+eq1syolPZgn3snvLjbS+2UOIJjfUcXe8mzqKACgc9d+v1c6YE= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Mar 2016 02:37:13.0902 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;Ip=[192.88.168.50];Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR03MB317 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3048 Lines: 110 Add ucc hdlc document to Documentation/devicetree/bindings/powerpc/fsl/cpm_qe/network.txt Signed-off-by: Zhao Qiang Acked-by: Rob Herring --- Changes for v2 - use ucc-hdlc instead of ucc_hdlc - add more information to properties. Changes for v3 - use fsl,tx-timeslot-mask instead of fsl,tx-timeslot - use fsl,rx-timeslot-mask instead of fsl,rx-timeslot - add more info Changes for v4 - NA .../bindings/powerpc/fsl/cpm_qe/network.txt | 81 ++++++++++++++++++++++ 1 file changed, 81 insertions(+) diff --git a/Documentation/devicetree/bindings/powerpc/fsl/cpm_qe/network.txt b/Documentation/devicetree/bindings/powerpc/fsl/cpm_qe/network.txt index 29b28b8..03c7416 100644 --- a/Documentation/devicetree/bindings/powerpc/fsl/cpm_qe/network.txt +++ b/Documentation/devicetree/bindings/powerpc/fsl/cpm_qe/network.txt @@ -41,3 +41,84 @@ Example: fsl,mdio-pin = <12>; fsl,mdc-pin = <13>; }; + +* HDLC + +Currently defined compatibles: +- fsl,ucc-hdlc + +Properties for fsl,ucc-hdlc: +- rx-clock-name +- tx-clock-name + Usage: required + Value type: + Definition : Must be "brg1"-"brg16" for internal clock source, + Must be "clk1"-"clk24" for external clock source. + +- fsl,tdm-interface + Usage: optional + Value type: + Definition : Specify that hdlc is based on tdm-interface + +The property below is dependent on fsl,tdm-interface: +- fsl,rx-sync-clock + Usage: required + Value type: + Definition : Must be "none", "rsync_pin", "brg9-11" and "brg13-15". + +- fsl,tx-sync-clock + Usage: required + Value type: + Definition : Must be "none", "tsync_pin", "brg9-11" and "brg13-15". + +- fsl,tdm-framer-type + Usage: required for tdm interface + Value type: + Definition : "e1" or "t1".Now e1 and t1 are used, other framer types + are not supported. + +- fsl,tdm-id + Usage: required for tdm interface + Value type: + Definition : number of TDM ID + +- fsl,tx-timeslot-mask +- fsl,rx-timeslot-mask + Usage: required for tdm interface + Value type: + Definition : time slot mask for TDM operation. Indicates which time + slots used for transmitting and receiving. + +- fsl,siram-entry-id + Usage: required for tdm interface + Value type: + Definition : Must be 0,2,4...64. the number of TDM entry. + +- fsl,tdm-internal-loopback + usage: optional for tdm interface + value type: + Definition : Internal loopback connecting on TDM layer. + +Example for tdm interface: + + ucc@2000 { + compatible = "fsl,ucc-hdlc"; + rx-clock-name = "clk8"; + tx-clock-name = "clk9"; + fsl,rx-sync-clock = "rsync_pin"; + fsl,tx-sync-clock = "tsync_pin"; + fsl,tx-timeslot-mask = <0xfffffffe>; + fsl,rx-timeslot-mask = <0xfffffffe>; + fsl,tdm-framer-type = "e1"; + fsl,tdm-id = <0>; + fsl,siram-entry-id = <0>; + fsl,tdm-interface; + }; + +Example for hdlc without tdm interface: + + ucc@2000 { + compatible = "fsl,ucc-hdlc"; + rx-clock-name = "brg1"; + tx-clock-name = "brg1"; + }; -- 2.1.0.27.g96db324