From patchwork Tue Mar 25 10:49:26 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alex Shi X-Patchwork-Id: 27031 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f199.google.com (mail-vc0-f199.google.com [209.85.220.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id BDAFB20539 for ; Tue, 25 Mar 2014 10:51:43 +0000 (UTC) Received: by mail-vc0-f199.google.com with SMTP id lh14sf637286vcb.6 for ; Tue, 25 Mar 2014 03:51:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe:content-type :content-transfer-encoding; bh=vnI/GfMAIsgnuCcIwUR4On0AE+s1tQ8B1lA1rfdQtz0=; b=GTKwNgK1Zfk/YclJfZ1Jz1auaB4k/NW5YStJ4/dUVn2NijEg/7vEH4jik/zXMmlwdw o2BY8LzoGf6wyph+xlJoSE7EfzfN9EL+d5bfNwVfXzaNq8jeJCIEPpKZcKJKHN6xYpee 1JMbf9V5HFjJY5dl1QTHVGfnhKSlDJbabkXO90Y2akVKP9zZ/gD7pnrJDGCWRVVaEhoj 0Kgce8iivYCwTklR1Ds3yB4P/Z6z/ObT7dbnUNZiM2aPRmfXtXJ5RWxDT9Yxy3NA8Z2o LjG1IdBwLd7Sb042nZQnxrm8Uhd7cFlqxOqJXtVHDBJS/PDdwPzaW4zOvqa3gipS5UuL W08g== X-Gm-Message-State: ALoCoQkHtg3teIe3qVsn/eYHMDZlcD0H4SQYKBmwGpdDyBXXDbZoAGuLBc1gKbhmS5Y5AdiGUUgI X-Received: by 10.58.39.202 with SMTP id r10mr19370030vek.12.1395744703216; Tue, 25 Mar 2014 03:51:43 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.95.66 with SMTP id h60ls179712qge.54.gmail; Tue, 25 Mar 2014 03:51:43 -0700 (PDT) X-Received: by 10.52.164.237 with SMTP id yt13mr24450968vdb.18.1395744703079; Tue, 25 Mar 2014 03:51:43 -0700 (PDT) Received: from mail-vc0-f180.google.com (mail-vc0-f180.google.com [209.85.220.180]) by mx.google.com with ESMTPS id y17si3584696vcy.214.2014.03.25.03.51.43 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 25 Mar 2014 03:51:43 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.180 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.180; Received: by mail-vc0-f180.google.com with SMTP id lf12so294627vcb.25 for ; Tue, 25 Mar 2014 03:51:43 -0700 (PDT) X-Received: by 10.221.34.7 with SMTP id sq7mr22756585vcb.5.1395744703002; Tue, 25 Mar 2014 03:51:43 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.78.9 with SMTP id i9csp293842vck; Tue, 25 Mar 2014 03:51:42 -0700 (PDT) X-Received: by 10.68.178.131 with SMTP id cy3mr9994660pbc.146.1395744702021; Tue, 25 Mar 2014 03:51:42 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id il2si11151393pbc.263.2014.03.25.03.51.41; Tue, 25 Mar 2014 03:51:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753989AbaCYKvY (ORCPT + 5 others); Tue, 25 Mar 2014 06:51:24 -0400 Received: from mail-pd0-f170.google.com ([209.85.192.170]:60555 "EHLO mail-pd0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753387AbaCYKvT (ORCPT ); Tue, 25 Mar 2014 06:51:19 -0400 Received: by mail-pd0-f170.google.com with SMTP id v10so276146pde.1 for ; Tue, 25 Mar 2014 03:51:18 -0700 (PDT) X-Received: by 10.66.66.66 with SMTP id d2mr78035073pat.80.1395744678785; Tue, 25 Mar 2014 03:51:18 -0700 (PDT) Received: from localhost.localdomain ([162.243.130.63]) by mx.google.com with ESMTPSA id db3sm42987987pbb.10.2014.03.25.03.51.10 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 25 Mar 2014 03:51:18 -0700 (PDT) From: Alex Shi To: mark.hambleton@broadcom.com, mark.brown@linaro.org, eduardo.valentin@ti.com, mporter@linaro.org, lsk-interest@linaro.org, linaro-kernel@linaro.org Cc: =?UTF-8?q?Beno=C3=AEt=20Cousson?= , Tony Lindgren , Rob Herring , Pawel Moll , Mark Rutland , Stephen Warren , Ian Campbell , Russell King , linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Alex Shi Subject: [PATCH 13/19] arm: dts: add omap5 CORE thermal data Date: Tue, 25 Mar 2014 18:49:26 +0800 Message-Id: <1395744572-20014-14-git-send-email-alex.shi@linaro.org> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1395744572-20014-1-git-send-email-alex.shi@linaro.org> References: <1395744572-20014-1-git-send-email-alex.shi@linaro.org> MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: alex.shi@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.180 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Eduardo Valentin This patch changes a dtsi file to contain the thermal data for CORE domain on OMAP5 and later SoCs. This data will enable a thermal shutdown at 125C. This thermal data can be reused across TI SoC devices. Cc: "BenoƮt Cousson" Cc: Tony Lindgren Cc: Rob Herring Cc: Pawel Moll Cc: Mark Rutland Cc: Stephen Warren Cc: Ian Campbell Cc: Russell King Cc: linux-omap@vger.kernel.org Cc: devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin (cherry picked from commit dcb5004fceeb15f0fdfc4a2b8cd68c6ad515a80b) Signed-off-by: Alex Shi --- arch/arm/boot/dts/omap5-core-thermal.dtsi | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 arch/arm/boot/dts/omap5-core-thermal.dtsi diff --git a/arch/arm/boot/dts/omap5-core-thermal.dtsi b/arch/arm/boot/dts/omap5-core-thermal.dtsi new file mode 100644 index 0000000..19212ac --- /dev/null +++ b/arch/arm/boot/dts/omap5-core-thermal.dtsi @@ -0,0 +1,28 @@ +/* + * Device Tree Source for OMAP543x SoC CORE thermal + * + * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/ + * Contact: Eduardo Valentin + * + * This file is licensed under the terms of the GNU General Public License + * version 2. This program is licensed "as is" without any warranty of any + * kind, whether express or implied. + */ + +#include + +core_thermal: core_thermal { + polling-delay-passive = <250>; /* milliseconds */ + polling-delay = <1000>; /* milliseconds */ + + /* sensor ID */ + thermal-sensors = <&bandgap 2>; + + trips { + core_crit: core_crit { + temperature = <125000>; /* milliCelsius */ + hysteresis = <2000>; /* milliCelsius */ + type = "critical"; + }; + }; +};