From patchwork Thu Mar 7 11:27:47 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: sandeep@freescale.com X-Patchwork-Id: 2231131 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id 3F8BC3FC8F for ; Thu, 7 Mar 2013 11:32:42 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UDZ0N-0006Un-Og; Thu, 07 Mar 2013 11:28:59 +0000 Received: from ch1ehsobe005.messaging.microsoft.com ([216.32.181.185] helo=ch1outboundpool.messaging.microsoft.com) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UDYzd-0006IA-JS for linux-arm-kernel@lists.infradead.org; Thu, 07 Mar 2013 11:28:20 +0000 Received: from mail67-ch1-R.bigfish.com (10.43.68.227) by CH1EHSOBE010.bigfish.com (10.43.70.60) with Microsoft SMTP Server id 14.1.225.23; Thu, 7 Mar 2013 11:28:05 +0000 Received: from mail67-ch1 (localhost [127.0.0.1]) by mail67-ch1-R.bigfish.com (Postfix) with ESMTP id 164BE420143; Thu, 7 Mar 2013 11:28:05 +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: 0 X-BigFish: VS0(zzzz1f42h1ee6h1de0h1202h1e76h1d1ah1d2ahzz8275bhz2dh2a8h668h839he5bhf0ah1288h12a5h12a9h12bdh12e5h137ah139eh13b6h1441h1504h1537h162dh1631h1758h1898h18e1h1946h19b5h1ad9h1b0ah1155h) Received: from mail67-ch1 (localhost.localdomain [127.0.0.1]) by mail67-ch1 (MessageSwitch) id 1362655683496945_9340; Thu, 7 Mar 2013 11:28:03 +0000 (UTC) Received: from CH1EHSMHS029.bigfish.com (snatpool3.int.messaging.microsoft.com [10.43.68.226]) by mail67-ch1.bigfish.com (Postfix) with ESMTP id 6CA594400FA; Thu, 7 Mar 2013 11:28:03 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by CH1EHSMHS029.bigfish.com (10.43.70.29) with Microsoft SMTP Server (TLS) id 14.1.225.23; Thu, 7 Mar 2013 11:28:03 +0000 Received: from tx30smr01.am.freescale.net (10.81.153.31) by 039-SN1MMR1-005.039d.mgd.msft.net (10.84.1.17) with Microsoft SMTP Server (TLS) id 14.2.328.11; Thu, 7 Mar 2013 11:28:02 +0000 Received: from nmglablinux22.zin33.ap.freescale.net (nmglablinux22.zin33.ap.freescale.net [10.232.20.244]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id r27BRpUM026457; Thu, 7 Mar 2013 04:28:00 -0700 From: Sandeep Singh To: , Subject: [PATCH 3/4] TDM Device Tree entries for various Freescale Platforms Date: Thu, 7 Mar 2013 16:57:47 +0530 Message-ID: <1362655668-26721-3-git-send-email-Sandeep@freescale.com> X-Mailer: git-send-email 1.7.6.GIT In-Reply-To: <1362655668-26721-1-git-send-email-Sandeep@freescale.com> References: <1362655668-26721-1-git-send-email-Sandeep@freescale.com> MIME-Version: 1.0 X-OriginatorOrg: freescale.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130307_062813_971072_77C05312 X-CRM114-Status: GOOD ( 12.87 ) X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [216.32.181.185 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Sandeep Singh , Poonam Aggrwal X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org P1010RDB, P1020RDB, P1020MBG-PC, P1022DS, P1020RDB-PC and P1024RDB In this Patch: 1. TDM node included in .dtsi files. 2. Disabled TDM in 36bit configurations because of limitations in TDM hardware block, details mentioned below. Details of 36bit h/w limitaion: --------------------------------- TDM DMAC IP does not support more than 32b address. To address memory regions more than 4GB, 4 bits of address were provided in GUTs, which are appended to txns initiated by TDM DMAC. These 4 bits are appended irrespective of the region addressed. When TDM works in DMA mode, the DMA need to access DDR as well as TDM FIFO in CCSR space. So this poses a restriction that if memory region above 4GB need to be accessed, CCSR space should also be mapped into that 4GB region. In this case DDR is at at first 4G (starting from 0) and CCSR is at different 4G (0xfffe00000), hence the issue. Signed-off-by: Sandeep Singh Signed-off-by: Poonam Aggrwal --- arch/powerpc/boot/dts/fsl/p1010si-post.dtsi | 3 ++- arch/powerpc/boot/dts/fsl/p1020si-post.dtsi | 1 + arch/powerpc/boot/dts/fsl/p1022si-post.dtsi | 1 + arch/powerpc/boot/dts/p1010rdb_36b.dts | 3 +++ arch/powerpc/boot/dts/p1020mbg-pc_36b.dts | 3 +++ arch/powerpc/boot/dts/p1020rdb-pc_36b.dts | 3 +++ arch/powerpc/boot/dts/p1020rdb_36b.dts | 3 +++ arch/powerpc/boot/dts/p1022ds_36b.dts | 3 +++ arch/powerpc/boot/dts/p1024rdb_36b.dts | 3 +++ 9 files changed, 22 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/boot/dts/fsl/p1010si-post.dtsi b/arch/powerpc/boot/dts/fsl/p1010si-post.dtsi index 0bde9ee..15c74a2 100644 --- a/arch/powerpc/boot/dts/fsl/p1010si-post.dtsi +++ b/arch/powerpc/boot/dts/fsl/p1010si-post.dtsi @@ -1,7 +1,7 @@ /* * P1010/P1014 Silicon/SoC Device Tree Source (post include) * - * Copyright 2011 Freescale Semiconductor Inc. + * Copyright 2011-2012 Freescale Semiconductor Inc. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -132,6 +132,7 @@ /include/ "pq3-gpio-0.dtsi" /include/ "pq3-sata2-0.dtsi" /include/ "pq3-sata2-1.dtsi" +/include/ "pq3-tdm1.0-0.dtsi" can0: can@1c000 { compatible = "fsl,p1010-flexcan"; diff --git a/arch/powerpc/boot/dts/fsl/p1020si-post.dtsi b/arch/powerpc/boot/dts/fsl/p1020si-post.dtsi index 68cc5e7..684f664 100644 --- a/arch/powerpc/boot/dts/fsl/p1020si-post.dtsi +++ b/arch/powerpc/boot/dts/fsl/p1020si-post.dtsi @@ -131,6 +131,7 @@ }; /include/ "pq3-gpio-0.dtsi" +/include/ "pq3-tdm1.0-0.dtsi" L2: l2-cache-controller@20000 { compatible = "fsl,p1020-l2-cache-controller"; diff --git a/arch/powerpc/boot/dts/fsl/p1022si-post.dtsi b/arch/powerpc/boot/dts/fsl/p1022si-post.dtsi index 06216b8..4016e45 100644 --- a/arch/powerpc/boot/dts/fsl/p1022si-post.dtsi +++ b/arch/powerpc/boot/dts/fsl/p1022si-post.dtsi @@ -190,6 +190,7 @@ fsl,fifo-depth = <15>; }; +/include/ "pq3-tdm1.0-0.dtsi" /include/ "pq3-sata2-0.dtsi" /include/ "pq3-sata2-1.dtsi" diff --git a/arch/powerpc/boot/dts/p1010rdb_36b.dts b/arch/powerpc/boot/dts/p1010rdb_36b.dts index 64776f4..e159b42 100644 --- a/arch/powerpc/boot/dts/p1010rdb_36b.dts +++ b/arch/powerpc/boot/dts/p1010rdb_36b.dts @@ -52,6 +52,9 @@ board_soc: soc: soc@fffe00000 { ranges = <0x0 0xf 0xffe00000 0x100000>; + tdm@16000 { + status = "disabled"; + }; }; pci0: pcie@fffe09000 { diff --git a/arch/powerpc/boot/dts/p1020mbg-pc_36b.dts b/arch/powerpc/boot/dts/p1020mbg-pc_36b.dts index 9e9f401..416e1a7 100644 --- a/arch/powerpc/boot/dts/p1020mbg-pc_36b.dts +++ b/arch/powerpc/boot/dts/p1020mbg-pc_36b.dts @@ -52,6 +52,9 @@ soc: soc@fffe00000 { ranges = <0x0 0xf 0xffe00000 0x100000>; + tdm@16000 { + status = "disabled"; + }; }; pci0: pcie@fffe09000 { diff --git a/arch/powerpc/boot/dts/p1020rdb-pc_36b.dts b/arch/powerpc/boot/dts/p1020rdb-pc_36b.dts index 5237da7..a1861d6 100644 --- a/arch/powerpc/boot/dts/p1020rdb-pc_36b.dts +++ b/arch/powerpc/boot/dts/p1020rdb-pc_36b.dts @@ -53,6 +53,9 @@ soc: soc@fffe00000 { ranges = <0x0 0xf 0xffe00000 0x100000>; + tdm@16000 { + status = "disabled"; + }; }; pci0: pcie@fffe09000 { diff --git a/arch/powerpc/boot/dts/p1020rdb_36b.dts b/arch/powerpc/boot/dts/p1020rdb_36b.dts index bdbdb60..7bac196 100644 --- a/arch/powerpc/boot/dts/p1020rdb_36b.dts +++ b/arch/powerpc/boot/dts/p1020rdb_36b.dts @@ -29,6 +29,9 @@ board_soc: soc: soc@fffe00000 { ranges = <0x0 0xf 0xffe00000 0x100000>; + tdm@16000 { + status = "disabled"; + }; }; pci0: pcie@fffe09000 { diff --git a/arch/powerpc/boot/dts/p1022ds_36b.dts b/arch/powerpc/boot/dts/p1022ds_36b.dts index f7aacce..024ea40 100644 --- a/arch/powerpc/boot/dts/p1022ds_36b.dts +++ b/arch/powerpc/boot/dts/p1022ds_36b.dts @@ -51,6 +51,9 @@ board_soc: soc: soc@fffe00000 { ranges = <0x0 0xf 0xffe00000 0x100000>; + tdm@16000 { + status = "disabled"; + }; }; pci0: pcie@fffe09000 { diff --git a/arch/powerpc/boot/dts/p1024rdb_36b.dts b/arch/powerpc/boot/dts/p1024rdb_36b.dts index 3656825..b113229 100644 --- a/arch/powerpc/boot/dts/p1024rdb_36b.dts +++ b/arch/powerpc/boot/dts/p1024rdb_36b.dts @@ -49,6 +49,9 @@ soc: soc@fffe00000 { ranges = <0x0 0xf 0xffe00000 0x100000>; + tdm@16000 { + status = "disabled"; + }; }; pci0: pcie@fffe09000 {