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: 2202321 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 25C323FCA4 for ; Fri, 1 Mar 2013 16:45:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751308Ab3CAQpl (ORCPT ); Fri, 1 Mar 2013 11:45:41 -0500 Received: from mail-qa0-f43.google.com ([209.85.216.43]:58154 "EHLO mail-qa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750910Ab3CAQpl (ORCPT ); Fri, 1 Mar 2013 11:45:41 -0500 Received: by mail-qa0-f43.google.com with SMTP id dx4so5182927qab.9 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 Cc: Magnus Damm , linux-arm-kernel@lists.infradead.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> Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.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, };