From patchwork Mon Sep 29 21:42:14 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Drake X-Patchwork-Id: 4999051 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 7BDA3BEEA6 for ; Mon, 29 Sep 2014 21:44:54 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 91158201BC for ; Mon, 29 Sep 2014 21:44:53 +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 AF61C20165 for ; Mon, 29 Sep 2014 21:44:52 +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 1XYiiU-0001sf-Ki; Mon, 29 Sep 2014 21:42:46 +0000 Received: from mail-yh0-f49.google.com ([209.85.213.49]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XYiiS-0001pb-2K for linux-arm-kernel@lists.infradead.org; Mon, 29 Sep 2014 21:42:44 +0000 Received: by mail-yh0-f49.google.com with SMTP id z6so5154735yhz.22 for ; Mon, 29 Sep 2014 14:42:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=osnNTpMPMASJp0WNT1UisXHET6c8VO9/CggAQ+4Is+g=; b=BESXmmDJG94af/UIQ8JNMFzPJzGCae17doFQNTsn2LF0QiEE0a8ZKAUvRu3+E9axfJ IRI/krfMIohOXRKGr9Xim7Py0Xhw5o7t2yVDCI9r85ny/ZdsQoh6WfTFpbvPxNT2vq+5 PnENXm8SzUR6PzOt2PComImQuM3BgviBU3vXkhNruRt7muHs4WsrrKxcmm+ALkTlFkEr VzUURlVlkUGi8EOcDBTTbtQNapB+zWBuF50C2PQawslvxb+i1muKGQ1JP3EkB5lyX+tQ rDSxzh9lpTHjS/pERD0uJIiBf35gXuoXfTQXZxwWU5UPn1dnTSm/KI4qbAR1H2npj1X3 SI8w== X-Gm-Message-State: ALoCoQmmjtHvRTCywvGgI5el9xQHHyQNJBpdNqCWZ89wTY22lmPZ1z7qADc9PE4rwjwbfekhI58/ X-Received: by 10.236.228.161 with SMTP id f31mr59900758yhq.44.1412026942327; Mon, 29 Sep 2014 14:42:22 -0700 (PDT) Received: from nuc.endlessm-sf.com ([190.181.142.196]) by mx.google.com with ESMTPSA id q4sm7413783yhb.15.2014.09.29.14.42.19 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 29 Sep 2014 14:42:21 -0700 (PDT) From: Daniel Drake To: ben-linux@fluff.org, kgene.kim@samsung.com Subject: [PATCH] ARM: dts: Enable temperature sensor on exynos4412 & ODROID Date: Mon, 29 Sep 2014 15:42:14 -0600 Message-Id: <1412026934-25947-1-git-send-email-drake@endlessm.com> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140929_144244_175136_8BF3BE1D X-CRM114-Status: UNSURE ( 9.63 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) Cc: devicetree@vger.kernel.org, linux-samsung-soc@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-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, 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 The Exynos4412 has a Thermal Management Unit (TMU) which provides a temperature sensor and related functionality. This must be enabled on a per-board basis, as it requires a 100k resistance to ground on the XtsRES_EXT pin, as well as a 1.8V input on VDD18_TS pin. If that voltage is not supplied, the machine immediately reports a maximum temperature of 255C and triggers the thermal subsystem to shut down the system. This patch also enables the TMU on the ODROID boards via the appropriate power supply. Signed-off-by: Daniel Drake --- arch/arm/boot/dts/exynos4412-odroid-common.dtsi | 5 +++++ arch/arm/boot/dts/exynos4412.dtsi | 10 ++++++++++ 2 files changed, 15 insertions(+) diff --git a/arch/arm/boot/dts/exynos4412-odroid-common.dtsi b/arch/arm/boot/dts/exynos4412-odroid-common.dtsi index 3d8c623..9994a44 100644 --- a/arch/arm/boot/dts/exynos4412-odroid-common.dtsi +++ b/arch/arm/boot/dts/exynos4412-odroid-common.dtsi @@ -400,3 +400,8 @@ samsung,pin-drv = <0>; }; }; + +&tmu { + status = "okay"; + vtmu-supply = <&ldo10_reg>; +}; diff --git a/arch/arm/boot/dts/exynos4412.dtsi b/arch/arm/boot/dts/exynos4412.dtsi index 0f6ec93..ee58e7f 100644 --- a/arch/arm/boot/dts/exynos4412.dtsi +++ b/arch/arm/boot/dts/exynos4412.dtsi @@ -66,4 +66,14 @@ pmu_system_controller: system-controller@10020000 { compatible = "samsung,exynos4412-pmu", "syscon"; }; + + tmu: tmu@100C0000 { + compatible = "samsung,exynos4412-tmu"; + interrupt-parent = <&combiner>; + reg = <0x100C0000 0x100>; + interrupts = <2 4>; + clocks = <&clock CLK_TMU_APBIF>; + clock-names = "tmu_apbif"; + status = "disabled"; + }; };