From patchwork Fri Dec 26 12:34:54 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Reichel X-Patchwork-Id: 5542921 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 BC3BD9F47A for ; Fri, 26 Dec 2014 12:38:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0D1E2201C7 for ; Fri, 26 Dec 2014 12:38:10 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 38CE520166 for ; Fri, 26 Dec 2014 12:38:09 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Y4U7u-00038O-71; Fri, 26 Dec 2014 12:36:18 +0000 Received: from ring0.de ([2a03:4000:6:106d::1]) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Y4U7W-0002gN-PU for linux-arm-kernel@lists.infradead.org; Fri, 26 Dec 2014 12:35:55 +0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 From: Sebastian Reichel To: Sebastian Reichel , Pavel Machek , Pali Rohar , Jean Delvare , Guenter Roeck , Tony Lindgren , =?UTF-8?q?Beno=C3=AEt=20Cousson?= Subject: [PATCH 3/3] ARM: dts: OMAP34xx/36xx: Add temperature sensor Date: Fri, 26 Dec 2014 13:34:54 +0100 Message-Id: <1419597294-21487-4-git-send-email-sre@kernel.org> X-Mailer: git-send-email 2.1.3 In-Reply-To: <1419597294-21487-1-git-send-email-sre@kernel.org> References: <20141226102933.GA28778@amd> <1419597294-21487-1-git-send-email-sre@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141226_043555_042294_72379B20 X-CRM114-Status: UNSURE ( 7.52 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.0 (/) Cc: Mark Rutland , devicetree@vger.kernel.org, Pawel Moll , Ian Campbell , linux-kernel@vger.kernel.org, lm-sensors@lm-sensors.org, Rob Herring , Kumar Gala , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 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-Virus-Scanned: ClamAV using ClamSMTP OMAP34xx and OMAP36xx processors contain a register in the syscon area, which can be used to determine the SoCs temperature. Signed-off-by: Sebastian Reichel Acked-by: Pavel Machek Tested-by: Pavel Machek --- arch/arm/boot/dts/omap34xx.dtsi | 7 +++++++ arch/arm/boot/dts/omap36xx.dtsi | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/omap34xx.dtsi b/arch/arm/boot/dts/omap34xx.dtsi index 3819c1e..64679ee 100644 --- a/arch/arm/boot/dts/omap34xx.dtsi +++ b/arch/arm/boot/dts/omap34xx.dtsi @@ -38,6 +38,13 @@ pinctrl-single,function-mask = <0xff1f>; }; }; + + omap3_temperature_sensor: temperature-sensor { + compatible = "ti,omap34xx-temperature-sensor"; + syscon = <&omap3_scm_general>; + clocks = <&ts_fck>; + clock-names = "fck"; + }; }; &ssi { diff --git a/arch/arm/boot/dts/omap36xx.dtsi b/arch/arm/boot/dts/omap36xx.dtsi index 541704a..be9ee1d 100644 --- a/arch/arm/boot/dts/omap36xx.dtsi +++ b/arch/arm/boot/dts/omap36xx.dtsi @@ -70,6 +70,13 @@ pinctrl-single,function-mask = <0xff1f>; }; }; + + omap3_temperature_sensor: temperature-sensor { + compatible = "ti,omap36xx-temperature-sensor"; + syscon = <&omap3_scm_general>; + clocks = <&ts_fck>; + clock-names = "fck"; + }; }; /* OMAP3630 needs dss_96m_fck for VENC */