From patchwork Tue Mar 25 10:49:25 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alex Shi X-Patchwork-Id: 27030 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f70.google.com (mail-pa0-f70.google.com [209.85.220.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6780C20539 for ; Tue, 25 Mar 2014 10:51:42 +0000 (UTC) Received: by mail-pa0-f70.google.com with SMTP id lj1sf659761pab.5 for ; Tue, 25 Mar 2014 03:51:41 -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=0MdMFEeXrlkibyi13CdfzBEsAUwLK2jW6sEbWGsECO0=; b=brE7iPiFkiNY2ibkpLrXngygKz1iXbeHw8Wwqdkp0C0llG88Z6HPLCwhP4uOxzFBrZ cwDMAL4j3L5+LsNZrgWRqYlDUwXI28EnlhJOyHyIeGiZ85X/9PCqVFoA3apVkbFXI0Ra m5kAd5801SDeFYmEhMofUwWZRrXF4kjDOvUDLUz5P6M4tJfQbqOfu8H9hyWizKs1+CO6 TISx474c6OSoeIKYxd1STSSrOIz4bxFrmFhhxVXZMyU1Anp6gw1l31dH8iMjI/V0xNtd 7LyXEmuhDQpwg2HI4tdWnSXte+spEok/H8niwe+NYz9aCKkbr+px65799J2o4f9ELafW BVEg== X-Gm-Message-State: ALoCoQnd6+lCoQGZNRKBdXL7//bVoYwsrNFs/ikFPqgcG+GI2aViCP/5uyMIRALdjFExiiMuWSBl X-Received: by 10.66.66.196 with SMTP id h4mr27062561pat.22.1395744701508; Tue, 25 Mar 2014 03:51:41 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.34.233 with SMTP id l96ls159519qgl.90.gmail; Tue, 25 Mar 2014 03:51:41 -0700 (PDT) X-Received: by 10.58.1.97 with SMTP id 1mr6144833vel.23.1395744701400; Tue, 25 Mar 2014 03:51:41 -0700 (PDT) Received: from mail-ve0-f178.google.com (mail-ve0-f178.google.com [209.85.128.178]) by mx.google.com with ESMTPS id fv9si3593541vcb.128.2014.03.25.03.51.41 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 25 Mar 2014 03:51:41 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.178 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.178; Received: by mail-ve0-f178.google.com with SMTP id jw12so292210veb.37 for ; Tue, 25 Mar 2014 03:51:41 -0700 (PDT) X-Received: by 10.221.4.66 with SMTP id ob2mr202614vcb.28.1395744701290; Tue, 25 Mar 2014 03:51:41 -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 i9csp293841vck; Tue, 25 Mar 2014 03:51:40 -0700 (PDT) X-Received: by 10.68.250.3 with SMTP id yy3mr77678513pbc.56.1395744700293; Tue, 25 Mar 2014 03:51:40 -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.39; Tue, 25 Mar 2014 03:51:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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 S1753960AbaCYKvQ (ORCPT + 26 others); Tue, 25 Mar 2014 06:51:16 -0400 Received: from mail-pb0-f54.google.com ([209.85.160.54]:41327 "EHLO mail-pb0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752348AbaCYKvL (ORCPT ); Tue, 25 Mar 2014 06:51:11 -0400 Received: by mail-pb0-f54.google.com with SMTP id ma3so281330pbc.27 for ; Tue, 25 Mar 2014 03:51:10 -0700 (PDT) X-Received: by 10.68.201.97 with SMTP id jz1mr77301124pbc.26.1395744670319; Tue, 25 Mar 2014 03:51:10 -0700 (PDT) Received: from localhost.localdomain ([162.243.130.63]) by mx.google.com with ESMTPSA id db3sm42987987pbb.10.2014.03.25.03.51.02 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 25 Mar 2014 03:51:09 -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 12/19] arm: dts: add omap5 GPU thermal data Date: Tue, 25 Mar 2014 18:49:25 +0800 Message-Id: <1395744572-20014-13-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-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@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.128.178 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 GPU 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 28c90169f1d5eabf503e356c76bf49a67aef4cc0) Signed-off-by: Alex Shi --- arch/arm/boot/dts/omap5-gpu-thermal.dtsi | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 arch/arm/boot/dts/omap5-gpu-thermal.dtsi diff --git a/arch/arm/boot/dts/omap5-gpu-thermal.dtsi b/arch/arm/boot/dts/omap5-gpu-thermal.dtsi new file mode 100644 index 0000000..1b87aca --- /dev/null +++ b/arch/arm/boot/dts/omap5-gpu-thermal.dtsi @@ -0,0 +1,28 @@ +/* + * Device Tree Source for OMAP543x SoC GPU 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 + +gpu_thermal: gpu_thermal { + polling-delay-passive = <250>; /* milliseconds */ + polling-delay = <1000>; /* milliseconds */ + + /* sensor ID */ + thermal-sensors = <&bandgap 1>; + + trips { + gpu_crit: gpu_crit { + temperature = <125000>; /* milliCelsius */ + hysteresis = <2000>; /* milliCelsius */ + type = "critical"; + }; + }; +};