From patchwork Fri Oct 20 10:28:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Horman X-Patchwork-Id: 10019777 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9F7A060211 for ; Fri, 20 Oct 2017 10:51:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8FE2628E91 for ; Fri, 20 Oct 2017 10:51:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 82B7D28EE1; Fri, 20 Oct 2017 10:51:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 84C6528E91 for ; Fri, 20 Oct 2017 10:51:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=Sw3Dbs9lvR4AY15Xt76jni1hhQDmFzsXd4Gq7f1CYVI=; b=knrkQSaOW23gyUdLR3BYfbm/e/ T5mgHvsh/Qmk2v3Ed2soa/0++4R1UFfRdkLsES3kRxk/9u5G5eCHrYrKXdEP0PLu+eqdk8gtSrkrk xgCFhrHS78S0Q1nBW2/7HdTSGkDhqp3nf97BlDP+AVRUzO2nwJM1ngSFSTqUH2PceGOkCHi+nNk7X 7w2rQOYOJV9fWnvohhg1usVXDPjSvVwXJAZw6bpK02hQYL9PPKjSPpK9CSH8VtGYQCv7M5VvMYHtk haIOEwhgZesXCsv64zWeF/Ask+0WngFxXUB97jF7wT9YM2Lqs+AfDHoc1McQUicnpsFPwY1Wl57HM m2zNnFAA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1e5Uu7-0006HM-0b; Fri, 20 Oct 2017 10:51:51 +0000 Received: from kirsty.vergenet.net ([202.4.237.240]) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1e5UmU-0001kZ-KN for linux-arm-kernel@lists.infradead.org; Fri, 20 Oct 2017 10:44:00 +0000 Received: from penelope.horms.nl (unknown [217.111.208.18]) by kirsty.vergenet.net (Postfix) with ESMTPA id DBACE25BF06; Fri, 20 Oct 2017 21:29:45 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=verge.net.au; s=mail; t=1508495386; bh=gZavMR1D7nMzg0vDH0uqFYXbEWnAZ05DlWwsWrLQgzg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pIzXRW4MS9sILCeEhUgVzEe1I3oDIkxI6ZLdegwZqIwfCfAY73xZNulMw6HE+J7um MpGZlftUDsk2vcmxjIz5EzvyqHGwyOspFtLlHlf15OjgUVJbdf6l7we8M4f9GuTwmo OfQWSzehEA8B6AWQE8SFJFTNm7jP7BqinmfAkHVw= Received: by penelope.horms.nl (Postfix, from userid 7100) id 757AAE20453; Fri, 20 Oct 2017 12:29:11 +0200 (CEST) From: Simon Horman To: linux-renesas-soc@vger.kernel.org Subject: [PATCH 20/42] ARM: dts: gr-peach: Enable ostm0 and ostm1 timers Date: Fri, 20 Oct 2017 12:28:47 +0200 Message-Id: <1126e108a3ad8ae92a0532259e3da4b14072355f.1508493785.git.horms+renesas@verge.net.au> X-Mailer: git-send-email 2.11.0 In-Reply-To: References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171020_034358_937650_8F63A86E X-CRM114-Status: UNSURE ( 7.79 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jacopo Mondi , Magnus Damm , linux-arm-kernel@lists.infradead.org, Simon Horman MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Jacopo Mondi Enable ostm0 and ostm1 timers to be used as clock source and clockevent source. The timers provides greater accuracy than the already enabled mtu2 one. With these enabled: clocksource: ostm: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 57352151442 ns sched_clock: 32 bits at 33MHz, resolution 30ns, wraps every 64440619504ns ostm: used for clocksource ostm: used for clock events Signed-off-by: Jacopo Mondi Suggested-by: Chris Brandt Reviewed-by: Geert Uytterhoeven Signed-off-by: Simon Horman --- arch/arm/boot/dts/r7s72100-gr-peach.dts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/r7s72100-gr-peach.dts b/arch/arm/boot/dts/r7s72100-gr-peach.dts index eca14e3801ec..779f724b4531 100644 --- a/arch/arm/boot/dts/r7s72100-gr-peach.dts +++ b/arch/arm/boot/dts/r7s72100-gr-peach.dts @@ -104,6 +104,14 @@ status = "okay"; }; +&ostm0 { + status = "okay"; +}; + +&ostm1 { + status = "okay"; +}; + &scif2 { pinctrl-names = "default"; pinctrl-0 = <&scif2_pins>;