From patchwork Tue Aug 20 13:52:41 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Figa X-Patchwork-Id: 2847098 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C1F7D9F271 for ; Tue, 20 Aug 2013 13:54:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 041B52045E for ; Tue, 20 Aug 2013 13:54:02 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 968F320445 for ; Tue, 20 Aug 2013 13:54:00 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VBmNX-0007IV-M8; Tue, 20 Aug 2013 13:53:47 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VBmNT-0004sP-2h; Tue, 20 Aug 2013 13:53:43 +0000 Received: from mailout2.w1.samsung.com ([210.118.77.12]) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VBmND-0004oK-39 for linux-arm-kernel@lists.infradead.org; Tue, 20 Aug 2013 13:53:27 +0000 Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245]) by mailout2.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MRU00BVB18621A0@mailout2.w1.samsung.com> for linux-arm-kernel@lists.infradead.org; Tue, 20 Aug 2013 14:53:01 +0100 (BST) X-AuditID: cbfec7f5-b7f5f6d00000105f-8a-521374bdfa4f Received: from eusync4.samsung.com ( [203.254.199.214]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id D2.81.04191.DB473125; Tue, 20 Aug 2013 14:53:01 +0100 (BST) Received: from amdc1227.digital.local ([106.116.147.199]) by eusync4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MRU00BA81854D30@eusync4.samsung.com>; Tue, 20 Aug 2013 14:53:01 +0100 (BST) From: Tomasz Figa To: linux-samsung-soc@vger.kernel.org Subject: [PATCH 1/8] Documentation: devicetree: Update Exynos MCT bindings description Date: Tue, 20 Aug 2013 15:52:41 +0200 Message-id: <1377006768-23174-2-git-send-email-t.figa@samsung.com> X-Mailer: git-send-email 1.8.3.2 In-reply-to: <1377006768-23174-1-git-send-email-t.figa@samsung.com> References: <1377006768-23174-1-git-send-email-t.figa@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrALMWRmVeSWpSXmKPExsVy+t/xa7p7S4SDDL49Z7f4O+kYu8X8I+dY LfrfLGS1eNPbwWLRu+Aqm8XZpjfsFpseX2O1mHF+H5PF0usXmSxOXf/MZjFh+loWi8MrDjBZ HH7Tzmrx6mAbi8X6Ga9ZLI7NWMLoIOCxZt4aRo/fvyYxeiz4fIXd4/XkCYwel/t6mTzuXNvD 5rF5Sb3HlRNNrB59W1YxenzeJOexcW5oAHcUl01Kak5mWWqRvl0CV8aqLa9YCn7KVKy6NZ25 gfG8WBcjJ4eEgInEvpYeZghbTOLCvfVsXYxcHEICSxklVjU3skI4fUwSV74sZQepYhNQk/jc 8IgNxBYRUJX43LaAHaSIWeAps8SOXfNZQBLCAhESiz5/ZgSxWYCKNn06ygpi8wo4Sdx/cZ8F Yp2CxLIva8FWcwo4S7R+WgO2QAio5mjPE6YJjLwLGBlWMYqmliYXFCel5xrpFSfmFpfmpesl 5+duYoSE+tcdjEuPWR1iFOBgVOLh5QDGgBBrYllxZe4hRgkOZiUR3m0ZQCHelMTKqtSi/Pii 0pzU4kOMTBycUg2MO+XnLr7Qv/Ol+nX5D987i+X0Ky28V8WpfHSfWLlJ6M3pkwX2z6d4Czx4 y/ttU4jY+fw/P/7UtahGBYtG8bfsZFtqFR12+rHS0baJPsedL+/MPJJluW2fpfbqU8sDlA6f MHn8PuhC5bYgbxvtjzmu/l9z/5964blkzcKC/3q7D95tWdMbUMZ/V4mlOCPRUIu5qDgRACnA xCxTAgAA X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130820_095327_225119_F213FAC6 X-CRM114-Status: UNSURE ( 9.88 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -9.7 (---------) Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, Kukjin Kim , ian.campbell@citrix.com, pawel.moll@arm.com, swarren@wwwdotorg.org, Arnd Bergmann , Tomasz Figa , rob.herring@calxeda.com, Kyungmin Park , Thomas Abraham , Sylwester Nawrocki , galak@codeaurora.org, Olof Johansson , linux-arm-kernel@lists.infradead.org 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: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch updates description of device tree bindings for Exynos MCT (multicore timers). Namely: - added note about simplified specification of local timer interrupts, when using single per-processor interrupt for all local timers, - changed first example that was incorrectly suggesting that global timer interrupts are optional, - simplified example interrupt map, - added example showing simplified local timer interrupt specification. Signed-off-by: Tomasz Figa Signed-off-by: Kyungmin Park --- .../bindings/timer/samsung,exynos4210-mct.txt | 49 ++++++++++++++-------- 1 file changed, 32 insertions(+), 17 deletions(-) diff --git a/Documentation/devicetree/bindings/timer/samsung,exynos4210-mct.txt b/Documentation/devicetree/bindings/timer/samsung,exynos4210-mct.txt index b5a86d2..a5d6891f 100644 --- a/Documentation/devicetree/bindings/timer/samsung,exynos4210-mct.txt +++ b/Documentation/devicetree/bindings/timer/samsung,exynos4210-mct.txt @@ -31,38 +31,53 @@ Required properties: 7: .. i: Local Timer Interrupt n -Example 1: In this example, the system uses only the first global timer - interrupt generated by MCT and the remaining three global timer - interrupts are unused. Two local timer interrupts have been - specified. + For MCT block that uses a per-processor interrupt for local timers, such + as ones compatible with "samusng,exynos4412-mct", only one local timer + interrupt might be specified, meaning that all local timers use the same + per processor interrupt. + +Example 1: In this example, the IP contains two local timers, using separate + interrupts, so two local timer interrupts have been specified, + in addition to four global timer interrupts. mct@10050000 { compatible = "samsung,exynos4210-mct"; reg = <0x10050000 0x800>; - interrupts = <0 57 0>, <0 0 0>, <0 0 0>, <0 0 0>, + interrupts = <0 57 0>, <0 69 0>, <0 70 0>, <0 71 0>, <0 42 0>, <0 48 0>; }; -Example 2: In this example, the MCT global and local timer interrupts are - connected to two separate interrupt controllers. Hence, an - interrupt-map is created to map the interrupts to the respective - interrupt controllers. +Example 2: In this example, the timer interrupts are connected to two separate + interrupt controllers. Hence, an interrupt-map is created to map + the interrupts to the respective interrupt controllers. mct@101C0000 { compatible = "samsung,exynos4210-mct"; reg = <0x101C0000 0x800>; - interrupt-controller; - #interrups-cells = <2>; interrupt-parent = <&mct_map>; - interrupts = <0 0>, <1 0>, <2 0>, <3 0>, - <4 0>, <5 0>; + interrupts = <0>, <1>, <2>, <3>, <4>, <5>; mct_map: mct-map { - #interrupt-cells = <2>; + #interrupt-cells = <1>; #address-cells = <0>; #size-cells = <0>; - interrupt-map = <0x0 0 &combiner 23 3>, - <0x4 0 &gic 0 120 0>, - <0x5 0 &gic 0 121 0>; + interrupt-map = <0 &gic 0 57 0>, + <1 &gic 0 69 0>, + <2 &combiner 12 6>, + <3 &combiner 12 7>, + <4 &gic 0 42 0>, + <5 &gic 0 48 0>; }; }; + +Example 3: In this example, the IP contains four local timers, but using + a per-processor interrupt to handle them. Either all the local + timer interrupts can be specified, with the same interrupt specifier + value or just the first one. + + mct@10050000 { + compatible = "samsung,exynos4412-mct"; + reg = <0x10050000 0x800>; + interrupts = <0 57 0>, <0 69 0>, <0 70 0>, <0 71 0>, + <0 42 0>/*, <0 42 0>, <0 42 0>, <0 42 0>*/; + };