From patchwork Fri Mar 1 17:45:32 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bastian Hecht X-Patchwork-Id: 2202331 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id 2B6FDDF24C for ; Fri, 1 Mar 2013 16:48:48 +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 1UBT5q-00039U-6M; Fri, 01 Mar 2013 16:45:58 +0000 Received: from mail-qe0-f41.google.com ([209.85.128.41]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UBT5Z-00035H-A4 for linux-arm-kernel@lists.infradead.org; Fri, 01 Mar 2013 16:45:42 +0000 Received: by mail-qe0-f41.google.com with SMTP id 6so2480995qeb.28 for ; Fri, 01 Mar 2013 08:45:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=5bEmkyMlD52/iA7hA7CBnJhrdJfJPK/ig+RPE76kGzM=; b=k+BvhGNSAR8AZDqEmXhmeSamr1kgIlxQozDvsnsiov8TQMjQqa7KHhfG0A2/aZ6ApX sRfXXO8r/Fbi/WY2D9Ptmh6X9UuUmhhERHp5IpUF7L1wiccRWdPPx71AcBhyhMRUorkV oTsgD5rz3vvvGKoKzLR5wNgrV1Tadn262LEB83jTNzO9O+9DNegmxVqPvTGodR0FT9lY LReucUsOKfOfcNZi3Nkr7rrjboufv+2my9O4hsOA8NQ3TKYlEqYKto57Arbe5MoAKwig v8cN7jpIqlZXNUF/sH7575dElcypXEuqKXAASJGmTpYx2KpCwRmJ9t9L/nKqoQ8uNM90 K5pA== X-Received: by 10.224.53.15 with SMTP id k15mr20667119qag.65.1362156340840; Fri, 01 Mar 2013 08:45:40 -0800 (PST) Received: from bender.routerdd3bcc.com (rrcs-50-74-208-202.nyc.biz.rr.com. [50.74.208.202]) by mx.google.com with ESMTPS id hr3sm20805038qab.4.2013.03.01.08.45.39 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 01 Mar 2013 08:45:40 -0800 (PST) From: Bastian Hecht To: linux-sh@vger.kernel.org Subject: [PATCH 3/3] ARM: mach-shmobile: sh73a0: Setup the timer device CMT10 using DT Date: Fri, 1 Mar 2013 11:45:32 -0600 Message-Id: <1362159932-18533-4-git-send-email-hechtb+renesas@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1362159932-18533-1-git-send-email-hechtb+renesas@gmail.com> References: <1362159932-18533-1-git-send-email-hechtb+renesas@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130301_114541_410455_D552907B X-CRM114-Status: GOOD ( 13.00 ) X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.128.41 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (hechtb[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: Magnus Damm , 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 We can now use the Device Tree for bringing up our timer device CMT10. We move it out of the DT devices list into the early_devices list by the non-reference board code. And we add the device to the kzm9g-reference .dts file. Not-yet-signed-off-by: Bastian Hecht --- I wonder if this should go to arch/arm/boot/dts/sh73a0.dtsi. The moving to the early_devices is a bit hackish - I will cook up a better patch when I know into which .dts(i) file things go. arch/arm/boot/dts/sh73a0-kzm9g-reference.dts | 11 +++++++++++ arch/arm/mach-shmobile/setup-sh73a0.c | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts b/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts index 7fad4b9..fef12f0 100644 --- a/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts +++ b/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts @@ -69,6 +69,17 @@ toshiba,mmc-wrprotect-disable; toshiba,mmc-has-idle-wait; }; + + cmt@0xe6138010 { + compatible = "renesas,cmt"; + reg = <0xe6138010 0xc>; + interrupt-parent = <&gic>; + interrupts = <0 65 0x4>; + renesas,timer-device-id = <1>; + renesas,timer-channel-id = <0>; + renesas,clocksource-rating = <125>; + renesas,clockevent-rating = <125>; + }; }; &mmcif { diff --git a/arch/arm/mach-shmobile/setup-sh73a0.c b/arch/arm/mach-shmobile/setup-sh73a0.c index 6259e07..b7fdec0 100644 --- a/arch/arm/mach-shmobile/setup-sh73a0.c +++ b/arch/arm/mach-shmobile/setup-sh73a0.c @@ -913,10 +913,10 @@ static struct platform_device *sh73a0_devices_dt[] __initdata = { &scif6_device, &scif7_device, &scif8_device, - &cmt10_device, }; static struct platform_device *sh73a0_early_devices[] __initdata = { + &cmt10_device, &tmu00_device, &tmu01_device, };