From patchwork Wed Sep 25 23:11:19 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 2945111 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 8D77CBFF05 for ; Wed, 25 Sep 2013 23:11:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C420820347 for ; Wed, 25 Sep 2013 23:11:34 +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 ADF3A20334 for ; Wed, 25 Sep 2013 23:11:33 +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 1VOyEz-0004aO-4B; Wed, 25 Sep 2013 23:11:29 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VOyEw-0002cO-N1; Wed, 25 Sep 2013 23:11:26 +0000 Received: from mail-pb0-x234.google.com ([2607:f8b0:400e:c01::234]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VOyEt-0002bw-FJ for linux-arm-kernel@lists.infradead.org; Wed, 25 Sep 2013 23:11:24 +0000 Received: by mail-pb0-f52.google.com with SMTP id wz12so294081pbc.39 for ; Wed, 25 Sep 2013 16:11:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:date:message-id:subject; bh=zhlTzGrmvI9NcbWtBJLc61Oa6e04ZENm0YDtmxoWleA=; b=q6pG9MDriRRZZOyf16pEvogbvzcOA9ATOt6vyQqQNipcxZzteGsimcjDerUsjE8bH8 1/Hy1+s+X+HvaJ/aUPlzrtXaJmB1M6MKKz3YYkkSNQpI9eZYRSoOHhUX94uEm3F2OdNc VEWi5DlvhvUj2XFDOae72KaJxBNtwuTm5Ud3gTUrM9jJySYDJ1N0Y8Mg/ZuA3FkjRWsi wGfnfeoMmgX11x6jZ6uCGCX39lBoXhiHJI6aw60xYCGeq4EcFMVEKxhkFXaTWND/33HP kLv0cG0HBVmW9K0M8g6BqUiP0NrhdOnRq4cZ5Nc5zk6hTJ1YkGZk9JnEKSerUwl3dcku tMhw== X-Received: by 10.66.136.227 with SMTP id qd3mr1642452pab.113.1380150660940; Wed, 25 Sep 2013 16:11:00 -0700 (PDT) Received: from [127.0.0.1] (ac230065.ppp.asahi-net.or.jp. [183.77.230.65]) by mx.google.com with ESMTPSA id q4sm25710671pba.12.1969.12.31.16.00.00 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 25 Sep 2013 16:10:59 -0700 (PDT) From: Magnus Damm To: linux-sh@vger.kernel.org Date: Thu, 26 Sep 2013 08:11:19 +0900 Message-Id: <20130925231119.16473.31647.sendpatchset@w520> Subject: [PATCH] ARM: shmobile: Add r8a7790 thermal sensor DT device X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130925_191123_589067_0541DFEB X-CRM114-Status: UNSURE ( 8.60 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.0 (--) Cc: khilman@linaro.org, kuninori.morimoto.gx@renesas.com, arnd@arndb.de, Magnus Damm , horms@verge.net.au, olof@lixom.net, 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=-6.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, 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 From: Magnus Damm Hook up the single channel thermal sensor via DT on r8a7790. The information used by the platform device has been verified against the data sheet. Signed-off-by: Magnus Damm --- Written against renesas-devel-20130925 arch/arm/boot/dts/r8a7790.dtsi | 7 +++++++ arch/arm/mach-shmobile/clock-r8a7790.c | 1 + 2 files changed, 8 insertions(+) --- 0001/arch/arm/boot/dts/r8a7790.dtsi +++ work/arch/arm/boot/dts/r8a7790.dtsi 2013-09-26 07:23:04.000000000 +0900 @@ -87,6 +87,13 @@ interrupts = <1 9 0xf04>; }; + thermal@e61f0000 { + compatible = "renesas,rcar-thermal"; + reg = <0 0xe61f0000 0 0x14>, <0 0xe61f0100 0 0x38>; + interrupt-parent = <&gic>; + interrupts = <0 69 4>; + }; + gpio0: gpio@ffc40000 { compatible = "renesas,gpio-r8a7790", "renesas,gpio-rcar"; reg = <0 0xffc40000 0 0x2c>; --- 0001/arch/arm/mach-shmobile/clock-r8a7790.c +++ work/arch/arm/mach-shmobile/clock-r8a7790.c 2013-09-26 07:24:37.000000000 +0900 @@ -272,6 +272,7 @@ static struct clk_lookup lookups[] = { CLKDEV_DEV_ID("sh-sci.8", &mstp_clks[MSTP717]), CLKDEV_DEV_ID("sh-sci.9", &mstp_clks[MSTP716]), CLKDEV_DEV_ID("r8a7790-ether", &mstp_clks[MSTP813]), + CLKDEV_DEV_ID("e61f0000.thermal", &mstp_clks[MSTP522]), CLKDEV_DEV_ID("rcar_thermal", &mstp_clks[MSTP522]), CLKDEV_DEV_ID("ee200000.mmcif", &mstp_clks[MSTP315]), CLKDEV_DEV_ID("sh_mmcif.0", &mstp_clks[MSTP315]),