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: 4999041 Return-Path: X-Original-To: patchwork-linux-samsung-soc@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 700929F2BA for ; Mon, 29 Sep 2014 21:42:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 944FF201FB for ; Mon, 29 Sep 2014 21:42:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8EF48201BC for ; Mon, 29 Sep 2014 21:42:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751612AbaI2VmX (ORCPT ); Mon, 29 Sep 2014 17:42:23 -0400 Received: from mail-yk0-f169.google.com ([209.85.160.169]:38504 "EHLO mail-yk0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751335AbaI2VmX (ORCPT ); Mon, 29 Sep 2014 17:42:23 -0400 Received: by mail-yk0-f169.google.com with SMTP id 10so5629909ykt.0 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=bYKdW6oAe/GtyE8VFl6PYLpVFZNlzv7qDyoyqkTj91lHvHd1l1n2M8uk7Yrpua5em0 T+4ocOIgf3iLbE7cddkru1aoxifdwL9FizmH5ZANjfsZLCgBoQogbUqtPkfaCAYSr820 fGAG/mVxv7U7FYsYgmTS3L6lFWV3cxTEU185bCXIaQD1zsiRrbx0RTbruE1EWCEBJSz4 np/pREke9hf3Zt+4aInKp+P9VIgxi5tk9QR2fctrnIw6pBjOxPfWa/4hpr5d9heiPdfP c7HuYkxgyeqd0IwglAv/aA6EtTJeCXm4mx1bo0sjn6eMjpaUkpFRFaKW4ofoQ6mQvxAN yRQQ== X-Gm-Message-State: ALoCoQlwDVioz2iTlC/Vo6E5W+hE7pz/zhVeo747CbxZznpmOQLMmC6oW8k3rYCliZ9yBAI+c7IL 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 Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org 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 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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"; + }; };