Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752293AbcCAHeR (ORCPT ); Tue, 1 Mar 2016 02:34:17 -0500 Received: from mail-by2on0084.outbound.protection.outlook.com ([207.46.100.84]:50720 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750894AbcCAHeP (ORCPT ); Tue, 1 Mar 2016 02:34:15 -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 v3 2/7] QE: Add ucc hdlc document to bindings Date: Tue, 1 Mar 2016 15:09:38 +0800 Message-ID: <1456816183-22340-2-git-send-email-qiang.zhao@nxp.com> X-Mailer: git-send-email 2.1.0.27.g96db324 In-Reply-To: <1456816183-22340-1-git-send-email-qiang.zhao@nxp.com> References: <1456816183-22340-1-git-send-email-qiang.zhao@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131012903218135188;(91ab9b29-cfa4-454e-5278-08d120cd25b8);() X-Forefront-Antispam-Report: CPI:192.88.168.50;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(4326007)(2950100001)(36756003)(5001960100003)(81156008)(92566002)(50466002)(110136002)(11100500001)(77096005)(6806005)(48376002)(2906002)(1096002)(586003)(1220700001)(189998001)(106466001)(86362001)(105606002)(76176999)(50986999)(19580395003)(19580405001)(2351001)(229853001)(33646002)(104016004)(5008740100001)(50226001)(85426001)(87936001)(5003940100001)(47776003)(7059030);DIR:OUT;SFP:1101;SCL:1;SRVR:BN3PR03MB1495;H:tx30smr01.am.freescale.net;FPR:;SPF:Fail;MLV:sfv;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BL2FFO11FD032;1:uIWhcMSv2DRavc7j5JQayYppZaRvdySJ1bkWQI7GYMt9dq+LR0+sqU0BEbrpryt20SHzDhQPibrrO/50TSguepneeuxvIdXeiudfHKU/LsUN2fmWzYtTfU9H+iUFeBywD5zbzKL0L2+6V6XlKfdJ7qGabYCdG1exOen5fEuysQkjcWVAKTMMzJ74QMcPyc+5MDZ6arUE01mOJ3goY0Vj5OqeyzvRFpVrkO8fLCwuYII6bCZWoVROVFH4NTFueF5DyGWDk3ziy8UtkkrECyYwvaeaMQ4NhgV6Sl/uXj9bJMWVEv9AeTq9UVVKQ+BlImI7Jzb3A15Q76ZTC3gWoEvelf2kQ9wBCfJVGpSpK1rv3Fvrw38KNmUs6oEFo2Bp4wzioYhkcRvyOecO3/hbGsogm5n6Fzza9RZFIPfyO5uEcSxa3mqm18Jv1jue0ema+JXMeiTD7qg8PsO0xx3wgSiMutEd0m9gSsvuMUiR/l4B/Axx0PNaWad18B84JPZ/bfsRZMfO5iIeCM9omPKSZWOtluyCPar6GIItgpN3p0w/WlaHyUXzoL/Z24hM7ir6Yq4EmXaSLhSm91nPU0tESVzos6+oYSZU3ZliRmdZQDCeCOQ= MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: f39cd892-5732-4cf2-df33-08d341a1b7c3 X-Microsoft-Exchange-Diagnostics: 1;BN3PR03MB1495;2:YRQb6OaIut8+OFI3hfLhgDtSZyFviubKYtYBtSEgYUoOoo7aoSQJyPafxBLhjhZE9YLz6b+ND2Kkqk+TuOH1EN1EYlk0ioFzpYSa0tcQpo3NArNnpiExsNbaVjlT9hJMMl89KOpgzxq10448e9kILv9m7xAWP4ueAkhSswnFFliUXXhSawz63pJJs7dFA7Ah;3:TF0cPCCcKeLLYwheK3qOj5IjvjiB2jGbu86u0FdLwYGHQmkjp184XDQKLyuMFtl8hKEst9403F2irmdm/ptCoc8oshTei2rUPnUL+XgsDOSV2ei+2L105xhbVbAxvtuwAsLbqC6h8/ra7EIFE+v/b5KTs6kxHPSRaWtcjYEvMVDSHg1BrRnQiQEw4ri6UtbSxainWHy7f/OqamNpNepFfcQ8rNFh2lOWIrDXa0XGRg0=;25:B9XcWT2fZ+nXlNS1JKFwOCoPM9CgKA7ZOot1SM/ygvqFfXA3xqy4C3LfCRgvGSm4ooB9rycBeLe2T0rNrNKIeVoDMiivV2EATvmxIV8rDNFpyelpTHSSA7OjQ54Qh4maoe8ySiR0O9GE8lVHYRAc0q5VCbXINsO9IeiRmqEgXxt5USTlKcOpXf9YoZsgn3JTlZSG82JtkCWdr/6Y6grB7SSG0alrOe8VWmd2Ao+ctRlo6fTc80kJwyt1AyGzjByw9YYePI2VWzHEEJHvcspbT9QS6TqEsBaNAhXjeDXHHy3QN9aapfZ1AHdarsSIZC0qCuDWo/Fxqt6TF51bJZDBLg== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN3PR03MB1495; 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:BN3PR03MB1495;BCL:0;PCL:0;RULEID:(400006);SRVR:BN3PR03MB1495; X-Microsoft-Exchange-Diagnostics: 1;BN3PR03MB1495;4:Dy0CakG0cyTtiNnBKymEoxpRxekOAsoixYnwzPGUfUxA9ik6JC190XpqK7ESADbxdaX877Quggru0hPfi/aAp5XSizNvA/yKEri7chNUkFBShku/jgwX5Rr/VppTyWwFSGyRmf9FuhpJf5TEXZjbjFBmN8TYNsAsd22WZyQhWrsMpZLUcjvw1FzSr+8qur9Gen6uy+qxfnJA1SKEYSHFQBbENcLdrox2ElLzM8ZZON+5ZSgfKYTMUezhAluxFurnXt+4RhzAErnpMhC0zYxlit6qPmlLsqyV0Xm8WaddXsQdOPXOqMRb618dqwFIkzuLwIUrSczY2JSm8yi8EwteT94eKyuauPXqjJVI6oc4zc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IKQsyokxsCvh72RvE2andhEyKQIrxDGXXV8Omnb?= =?us-ascii?Q?1Pt9NwFA9DcufVHUtNQRQfZqfuXUaauRuoEqB2aB8mMS+N1heeWjijzBo+Q1?= =?us-ascii?Q?yhST1IlRlhzpFWOpcR8SvpjfhJPz1bRydmATpOdXjQGHi/0RJISATvpl3O/x?= =?us-ascii?Q?XkUs/Jw6/x0xFt48p00kD1opWtgOJmjLvflI0r6Qktd1eis4H2Del8249Szl?= =?us-ascii?Q?VzA/Y7+dbzwnNV9NlZRhIyiqJPxMrHmN74rscXRrn2R96jLpEpIqwqHY7nZA?= =?us-ascii?Q?YOfD43pAjuYhIzmq0/Etz64dEj2qcvsh7NO7iCYVuD04YOvnxnpNd19h+ROR?= =?us-ascii?Q?VySAPdDRyLgvC+f6RDifh+waCZ1mPhzkYzz5D1NGsGDsuY3+A=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1;BN3PR03MB1495;5:hHK/nvHWBvcQGaOdwYCri8wDSjreO1+D5H4P6TS4DpGCGVdOhb6MdBC9C2XyoM32KQ3v5AX+fIA6HSMz2/8IhwP2fceCd0PHVbkCTxUt+myqymvV51xHnRrsnzPCt9tImeOLHTcplSo+90U9SpwSZORa6LWtZg9UhrDS25e9QzA=;24:VUeX2lIWqF2skLt9PNdvycRrIO28IJZvoKHPV5aCFzfLTsVfd3SEVu26xNTuqzpY8trNFoiVZcuSYI7+ObKNi/Fe7LyTe880Pl8QLRV2Voo= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Mar 2016 07:18:38.8026 (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: BN3PR03MB1495 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2986 Lines: 107 Add ucc hdlc document to Documentation/devicetree/bindings/powerpc/fsl/cpm_qe/network.txt Signed-off-by: Zhao Qiang --- 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 .../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