From patchwork Wed Jan 2 13:25:20 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sandeep Singh X-Patchwork-Id: 209042 X-Patchwork-Delegate: galak@kernel.crashing.org Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from ozlabs.org (localhost [IPv6:::1]) by ozlabs.org (Postfix) with ESMTP id 2CC652C037D for ; Thu, 3 Jan 2013 00:26:10 +1100 (EST) Received: by ozlabs.org (Postfix) id 66D092C0084; Thu, 3 Jan 2013 00:25:32 +1100 (EST) Delivered-To: linuxppc-dev@ozlabs.org Received: from co9outboundpool.messaging.microsoft.com (co9ehsobe004.messaging.microsoft.com [207.46.163.27]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client CN "mail.global.frontbridge.com", Issuer "Microsoft Secure Server Authority" (not verified)) by ozlabs.org (Postfix) with ESMTPS id E4CDF2C007B for ; Thu, 3 Jan 2013 00:25:31 +1100 (EST) Received: from mail62-co9-R.bigfish.com (10.236.132.225) by CO9EHSOBE034.bigfish.com (10.236.130.97) with Microsoft SMTP Server id 14.1.225.23; Wed, 2 Jan 2013 13:25:29 +0000 Received: from mail62-co9 (localhost [127.0.0.1]) by mail62-co9-R.bigfish.com (Postfix) with ESMTP id 46A3FA203E1; Wed, 2 Jan 2013 13:25:29 +0000 (UTC) X-Forefront-Antispam-Report: CIP:70.37.183.190; KIP:(null); UIP:(null); IPV:NLI; H:mail.freescale.net; RD:none; EFVD:NLI X-SpamScore: -4 X-BigFish: VS-4(zzc430I13e6Kzz1de0h1202h1e76h1d1ah1d2ahzz8275bhz2dh2a8h668h839he5bhf0ah1288h12a5h12a9h12bdh12e5h137ah139eh13b6h1441h1504h1537h162dh1631h1758h1155h) Received: from mail62-co9 (localhost.localdomain [127.0.0.1]) by mail62-co9 (MessageSwitch) id 1357133127479122_16236; Wed, 2 Jan 2013 13:25:27 +0000 (UTC) Received: from CO9EHSMHS008.bigfish.com (unknown [10.236.132.243]) by mail62-co9.bigfish.com (Postfix) with ESMTP id 72F0CA0004A; Wed, 2 Jan 2013 13:25:27 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by CO9EHSMHS008.bigfish.com (10.236.130.18) with Microsoft SMTP Server (TLS) id 14.1.225.23; Wed, 2 Jan 2013 13:25:27 +0000 Received: from az84smr01.freescale.net (10.64.34.197) by 039-SN1MMR1-003.039d.mgd.msft.net (10.84.1.16) with Microsoft SMTP Server (TLS) id 14.2.318.3; Wed, 2 Jan 2013 13:25:26 +0000 Received: from nmglablinux22.zin33.ap.freescale.net (nmglablinux22.zin33.ap.freescale.net [10.232.20.244]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id r02DPM58019875; Wed, 2 Jan 2013 06:25:24 -0700 From: Sandeep Singh To: , Subject: [PATCH] Added device tree binding for TDM and TDM phy Date: Wed, 2 Jan 2013 18:55:20 +0530 Message-ID: <1357133120-2271-1-git-send-email-Sandeep@freescale.com> X-Mailer: git-send-email 1.7.6.GIT MIME-Version: 1.0 X-OriginatorOrg: freescale.com Cc: Sandeep Singh , Poonam Aggrwal X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" This controller is available on many Freescale SOCs like MPC8315, P1020, P1010 and P1022 Signed-off-by: Sandeep Singh Signed-off-by: Poonam Aggrwal --- .../devicetree/bindings/powerpc/fsl/fsl-tdm.txt | 63 ++++++++++++++++++++ .../devicetree/bindings/powerpc/fsl/tdm-phy.txt | 38 ++++++++++++ 2 files changed, 101 insertions(+), 0 deletions(-) create mode 100644 Documentation/devicetree/bindings/powerpc/fsl/fsl-tdm.txt create mode 100644 Documentation/devicetree/bindings/powerpc/fsl/tdm-phy.txt diff --git a/Documentation/devicetree/bindings/powerpc/fsl/fsl-tdm.txt b/Documentation/devicetree/bindings/powerpc/fsl/fsl-tdm.txt new file mode 100644 index 0000000..ceb2ef1 --- /dev/null +++ b/Documentation/devicetree/bindings/powerpc/fsl/fsl-tdm.txt @@ -0,0 +1,63 @@ +TDM Device Tree Binding + +NOTE: The bindings described in this document are preliminary +and subject to change. + +TDM (Time Division Multiplexing) + +Description: + +The TDM is full duplex serial port designed to allow various devices including +digital signal processors (DSPs) to communicate with a variety of serial devices +including industry standard framers, codecs, other DSPs and microprocessors. + +The below properties describe the device tree bindings for Freescale TDM +controller. This TDM controller is available on various Freescale Processors +like MPC8315, P1020, P1022 and P1010. + +Required properties: + +- compatible + Value type: + Definition: Should contain "fsl,tdm1.0". + +- reg + Definition: A standard property. The first reg specifier describes the TDM + registers, and the second describes the TDM DMAC registers. + +- tdm_tx_clk + Value type: + Definition: This specifies the value of transmit clock. It should not + exceed 50Mhz. + +- tdm_rx_clk + Value type: + Definition: This specifies the value of receive clock. Its value could be + zero, in which case tdm will operate in shared mode. Its value should not + exceed 50Mhz. + +- interrupts + Definition: Two interrupt specifiers. The first is TDM error, and the + second is TDM DMAC. + +- phy-handle + Value type: + Definition: Phandle of the line controller node or framer node eg. SLIC, + E1/T1 etc. (Refer Documentation/devicetree/bindings/powerpc/fsl/tdm-phy.txt) + +- fsl,max-time-slots + Value type: + Definition: Maximum number of 8-bit time slots in one TDM frame. This is + the maximum number which TDM hardware supports. + +Example: + + tdm@16000 { + compatible = "fsl,tdm1.0"; + reg = <0x16000 0x200 0x2c000 0x2000>; + tdm_tx_clk = <2048000>; + tdm_rx_clk = <0>; + interrupts = <16 8 62 8>; + phy-handle = <&tdm-phy>; + fsl,max-time-slots = <128>; + }; diff --git a/Documentation/devicetree/bindings/powerpc/fsl/tdm-phy.txt b/Documentation/devicetree/bindings/powerpc/fsl/tdm-phy.txt new file mode 100644 index 0000000..2563934 --- /dev/null +++ b/Documentation/devicetree/bindings/powerpc/fsl/tdm-phy.txt @@ -0,0 +1,38 @@ +TDM PHY Device Tree Binding + +NOTE: The bindings described in this document are preliminary +and subject to change. + +Description: +TDM PHY is the terminal interface of TDM subsystem. It is typically a line +control device like E1/T1 framer or SLIC. A TDM device can have multiple TDM +PHYs. + +Required properties: + +- compatible + Value type: + Definition: Should contain generic compatibility like "tdm-phy-slic" or + "tdm-phy-e1" or "tdm-phy-t1". + +- max-num-ports + Value type: + Definition: Defines the maximum number of ports supported by the SLIC + device. Only required if the device is SLIC. For E1/T1 devices the number + of ports are predefined i.e. (24 in case of T1 and 32 in case of E1). + +Apart from the above, there may be other properties required because of the +bus/interface this device is connected on. It could be SPI/local bus, etc. + +Example: + + tdm-phy@0 { + compatible = "zarlink,le88266","tdm-phy-slic"; + reg = <0>; + max-num-ports = <4>; + spi-max-frequency = <8000000>; + }; + +In the above example properties "reg" and "spi-max-frequency" are SPI specific +as the SLIC device is connected on SPI interface. These properties might vary +depending on the specific interface the device is using.