Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751733AbcCIBwO (ORCPT ); Tue, 8 Mar 2016 20:52:14 -0500 Received: from mail-bl2on0062.outbound.protection.outlook.com ([65.55.169.62]:12093 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750887AbcCIBwI (ORCPT ); Tue, 8 Mar 2016 20:52:08 -0500 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=nxp.com; From: Zhao Qiang To: CC: , , , , , , Zhao Qiang Subject: [PATCH v5 2/7] QE: Add ucc hdlc document to bindings Date: Wed, 9 Mar 2016 09:21:29 +0800 Message-ID: <1457486494-11377-2-git-send-email-qiang.zhao@nxp.com> X-Mailer: git-send-email 2.1.0.27.g96db324 In-Reply-To: <1457486494-11377-1-git-send-email-qiang.zhao@nxp.com> References: <1457486494-11377-1-git-send-email-qiang.zhao@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131019619242806622;(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)(1109001)(1110001)(339900001)(189002)(199003)(48376002)(47776003)(106466001)(105606002)(586003)(1220700001)(4326007)(85426001)(92566002)(2950100001)(1096002)(5008740100001)(2906002)(6806005)(11100500001)(77096005)(81166005)(19580405001)(19580395003)(50466002)(33646002)(104016004)(5003940100001)(229853001)(36756003)(2351001)(87936001)(76176999)(189998001)(50986999)(110136002)(50226001)(86362001)(7059030);DIR:OUT;SFP:1101;SCL:1;SRVR:BL2PR03MB593;H:tx30smr01.am.freescale.net;FPR:;SPF:Fail;MLV:sfv;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BL2FFO11FD034;1:n9FR5abcDU5yw169HXAW8zfJc9A2OsOZ3Vf98Q4dO0zgi3lP2RcZzZb1yPNZtWrxo3ocxZ0hVz/fE9yBeHjwMUaQyfiPCsLWBFBNJESlYV+o4TlI+p3jVDwxiYafyiGWWam2HVqXoEhZq/VuT/HZhoyYSqdKJNt+krJ/wQPB+8TZEVAdVo6w22riDAHbBuZ/CRXP3WWIhU7W7nkn0iYCbVkbsMo4jg9wgQpLFeTvHAQQ31hk72AmT6n3FRVstexzvlSTobaUMG7GZCRvRYaMNmBz9mSmzJI7OqeFviQFgnGgWf2qcmBSYsUULF2PvaOYEz2hc303wus1qgAXlfCRDQlj+Aqd5IOf5S9+8ro44g0TQ2OxmEE09bnOjjPhnnvkWS//rRFdW1n1x8QcRj3XiLpYYHLbkFSF7cpa2cfP2noYW8dWkkLbQVD1whS0wjtEV5ZuCOt8+lrzSOVjCfqkIGHn3eW9gWSOwENk+vefRHkaoU4Uo/zGw5XqpYyh5eMQ MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 8d794e48-bdc7-4f99-abfd-08d347bd6a07 X-Microsoft-Exchange-Diagnostics: 1;BL2PR03MB593;2:yawIK2WuM+uVaDT2tRwFwKslIbnAg5RrxDBhdxEaihLMZUKsSF/zWiabjizVpMrYIk3t16N+XDPVF3I9iZA2SluxLhq1ZAnDDDmAq+1BQmLE9Baf64l7jCif5FtYMC4wNXT6/oEntvtyqPRD0IGsm0J4h0YqS/j0kNHNUJ8F3Vzo9zt3pntjhHDmOYtP0kMn;3:jZW6NB5/rBjZrZN6nSJTEcsfKNXxExSfwuEL8UdJnB3/BfG8nwct8wZuF5mM1R31xWZOWrGPdEBEIOzfDv76yLTwahNJ4Bx738o9iewirtvFUmY5/TgG/0ormwYht48Q+IwaUEUVl8CKaFTHB9TxXlCfWdyop/MZyriwXDfutZ+zeXozp63VR3oho57nCuFc2Iv2Bj2joa+5MywivEAbOiitBra+440k0wIu4cteI4U=;25:Id2ZxepAv6lfYjOhaYHvMGQp4BRebE+WLVEM2ppOfqoy02nlqVXDMWRumXzO+iLH/eOM5qg1indMyxUkqeEMjjgNvsYheSoAq6L5vB78EWUozvLjuxs5MaklBoOz/zQH6PoX7MpyxarPpPiQvV6VrPKVzggzF43sFelnR6oGm0xxATQr1lGzwnW2AjQsDyu/ghmJ2zHq1/EBeZKyGBL7fXcszJdpBW8AJjpzZOUUB4P26rz7PLLSo80A4My5GtxLm2VWGY7WIYZqm7878fChECMHwm+EkNLvuh3+AAtCzisASiNbHldB+Eck6NgjABJOPgfNlc/CpVGXsTD2fER5Cw== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BL2PR03MB593; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(13018025)(13015025)(8121501046)(5005006)(13024025)(13023025)(13017025)(10201501046)(3002001);SRVR:BL2PR03MB593;BCL:0;PCL:0;RULEID:(400006);SRVR:BL2PR03MB593; X-Microsoft-Exchange-Diagnostics: 1;BL2PR03MB593;4:AmsoD9PUqDoHim4N6GC5ot+AvZv9vDv5U9LH0ud8Gz2Odv4gaT/j1KF+piOZbYDwbTP+K5veXUx7WAIGfr1+e1qdTEgVlPeb3xih0XUhb6hKUxTHtlRZJZdv9BMGDgeHMfi6iWZk2iMaN6pBXFY8FekloFLY9DfJWtXBgXzwP7R5ptR34hASdBcMKCGPyTvMA/bd51eBz2K0Lx4Vyidy3lXPUc/mM8BJcUIsxapMHXizaTEIpbzGBHLMyZnXlgIyHj9fwn432TLpEj9p3ieaWp5l/9RKCjH4co0aDqeq0wazGZHKRt+R1IQZnw8A9bUOwIfkKQywXXt1Po02aUdOqxnKn9SrDa3OAgpNNtq4jhrnImyhnyRac6P6erSuPO67ERpmwvfhl9WJ+bAYCmhxFKNAT6T9nW5R25vXyCKwact/fQPjWiQmtrbKxeuYezomIMLpMYm+QUV/fjZixncU5g== X-Forefront-PRVS: 0876988AF0 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BL2PR03MB593;23:4GC970ZS5uWT78YStcLA4cGpoG/WdJ8t51sZzH6cKG?= =?us-ascii?Q?UMjMH1D/j/j9bUNKQAa/nprjtlAY2F8NZgrAP77/LPcHjSEFePCfoXTbUol/?= =?us-ascii?Q?w7vXZLcuLRHU6uGXYnVq+VGEaC6CMDoaIqM6B3rTEK3f3Hm19WpAzWtfDc3K?= =?us-ascii?Q?bMvIEodHCeb1DONm3FIFVNKtTdN7auAik+T/V4w3VQGrA3Rtw97qCRd7fw2r?= =?us-ascii?Q?LA8gTvMjDQErASLZQSOtCCQmqSerdVPGyO27pDt90OmVXL4g7Xy8MLyoIA2q?= =?us-ascii?Q?3GhvUdTPewTQKDquWeduwMro/rfa9GVzE4RvZmEx2GvyGOCst+4zs1QM0FPW?= =?us-ascii?Q?PlCRpqis9haRZ7xOklSgwSHorf0/xUxE6tagG/u20vbx7rkh/o8vNZLTtRVl?= =?us-ascii?Q?Z7wR6TTDfNE/rjY2NuopF5dC034P6jV7lIt70aPI7N868Caf/lf5AdsJnQge?= =?us-ascii?Q?Yl0cP3ZpxzZZrXOcSymwqUvkgLBgS7L3K7gindWsYPyfNH4Kb5OAXkjUU6Ze?= =?us-ascii?Q?wny0DnohMna8dzV0J4zJ03icRjb/v5Rxebu+gKC57TWehuKs9UwutwRt+nyg?= =?us-ascii?Q?jHpPlQ6fY6C0H/EJF2MARw72SALz1C5Zw2jSPYsief2osYFEka7tfkC4ODVG?= =?us-ascii?Q?XARVmSukXnyAt1FMIBQ2cmqqyq53ZGm41dlObcCndwa4ujV/+eeq5s80/JAI?= =?us-ascii?Q?clrl7cJx6apNz4qsfWBW5ONPrbq7kOYslyhhFaj/BoNmdf3XullCR3Zjo8N4?= =?us-ascii?Q?YeM883F75fS6KMW7zfjITdhfk576kIU8WVNPKzsBebgZPzMp1kssi7qHhBHu?= =?us-ascii?Q?q6gkjS3nWDv3VcAUtMrqoYME1rCLrWz43Utww5JNfdaFLqNU55AjoHiwemxS?= =?us-ascii?Q?q3GDs8R5APS79WYwEgsougynpWJHfjsTHBaHfGrr0c7SVA1yRO8ELXlOUp8d?= =?us-ascii?Q?GnofxiGPSiHl5dv+8xNLHOG6aHZ/1ZNbXvHjDvtnUt5VCdW8IVnpVywHWcta?= =?us-ascii?Q?Cug0+pUQai+2UMXg/HGqXch/9hdMVioiWq54jwzFSYya/aYH/jzUBV/kxya3?= =?us-ascii?Q?b9LE0=3D?= X-Microsoft-Exchange-Diagnostics: 1;BL2PR03MB593;5:gVdDkbVlWA2Q76rcADtFSWhsvkThha3hmEKGyCV+Pbbl6n5bPUu5+uC/feM/Yuol23Z4bdTfHCxQQXSjQWkhfFae0dxKb3TfUwF/qrgstFITSkrG4TsEUY3RcT3vv52qSk/2SokjzrN3MEib+F4X0KO2K/qO6KSCO1N0IeRdx4Y=;24:pUqkHtLk6uXMxN5t6b66R0T+awCLr6B3obwefvns3wQfMc0pBuE+5j6XGlz3ZL5o9vitxDtkQREdd2FpTGdxrFAa44B74OUNKL5P5quVQkw= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Mar 2016 01:52:04.0778 (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: BL2PR03MB593 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3070 Lines: 112 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 Changes for v5 - 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