From patchwork Tue Mar 25 10:49:22 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alex Shi X-Patchwork-Id: 27027 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f198.google.com (mail-ob0-f198.google.com [209.85.214.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E361C20539 for ; Tue, 25 Mar 2014 10:51:14 +0000 (UTC) Received: by mail-ob0-f198.google.com with SMTP id wn1sf1076246obc.1 for ; Tue, 25 Mar 2014 03:51:14 -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=tLCYoKnD7cKVz6RZ6TkGe8hCiXUbDNi3CRtH/G80BeU=; b=EwXvJKiv6fP6/uT+KwlILdw5ruXdIAAEz1QTtZ1LaaTD4iFMxsqZUABt8dKOZt662S L1dvWWQRyWvwc724qKVWMy/HKNMD9gx6ha0W9TW+DVRgGp+UKmbd7GTaPGQatpG6+1RA fV38L1vfBBKJoLvNUxtqXgeHjU5kVhBwoOESCLORlVmvJVJZ3rOguV++IwqabtS5tU0Y lZUM1uJGj+HDZJBZleRmZSB7fn6VdvTiuxCBAGndDc2otL7lVbDJpKfYZBkWnw5txR94 hOtxTvkELF8HD7U6rFhUwYsZvEiey5lN3qBIhMDeplq8IxZLdTJYYzuA1aX4WOBQqUQD 7vsA== X-Gm-Message-State: ALoCoQkGmWDLaaubtaoav1kVSuOI4iFfVDFVfUIIBXcRYT7ur1VPRh8JTLAOaUOyMsfZPgeXYaNZ X-Received: by 10.43.4.4 with SMTP id oa4mr24430304icb.2.1395744674413; Tue, 25 Mar 2014 03:51:14 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.100.137 with SMTP id s9ls200244qge.57.gmail; Tue, 25 Mar 2014 03:51:14 -0700 (PDT) X-Received: by 10.221.39.138 with SMTP id tm10mr55257335vcb.7.1395744674318; Tue, 25 Mar 2014 03:51:14 -0700 (PDT) Received: from mail-vc0-f174.google.com (mail-vc0-f174.google.com [209.85.220.174]) by mx.google.com with ESMTPS id ww7si3626343vec.210.2014.03.25.03.51.14 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 25 Mar 2014 03:51:14 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.174 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.174; Received: by mail-vc0-f174.google.com with SMTP id ld13so299516vcb.5 for ; Tue, 25 Mar 2014 03:51:14 -0700 (PDT) X-Received: by 10.52.242.167 with SMTP id wr7mr402640vdc.32.1395744674230; Tue, 25 Mar 2014 03:51:14 -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 i9csp293808vck; Tue, 25 Mar 2014 03:51:13 -0700 (PDT) X-Received: by 10.66.139.169 with SMTP id qz9mr78320319pab.16.1395744673208; Tue, 25 Mar 2014 03:51:13 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id zw7si7530983pac.275.2014.03.25.03.51.12; Tue, 25 Mar 2014 03:51:12 -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 S1753830AbaCYKuw (ORCPT + 26 others); Tue, 25 Mar 2014 06:50:52 -0400 Received: from mail-pb0-f47.google.com ([209.85.160.47]:46249 "EHLO mail-pb0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753796AbaCYKur (ORCPT ); Tue, 25 Mar 2014 06:50:47 -0400 Received: by mail-pb0-f47.google.com with SMTP id up15so279203pbc.6 for ; Tue, 25 Mar 2014 03:50:46 -0700 (PDT) X-Received: by 10.66.142.233 with SMTP id rz9mr78212129pab.71.1395744646740; Tue, 25 Mar 2014 03:50:46 -0700 (PDT) Received: from localhost.localdomain ([162.243.130.63]) by mx.google.com with ESMTPSA id db3sm42987987pbb.10.2014.03.25.03.50.38 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 25 Mar 2014 03:50:46 -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 09/19] arm: dts: add omap4 CPU thermal data Date: Tue, 25 Mar 2014 18:49:22 +0800 Message-Id: <1395744572-20014-10-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.220.174 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 MPU domain on OMAP4 and later SoCs. This data will enable the passive cooling with CPUfreq cooling device at 100C and the system will do 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 0bbf6c54d100836db40ba020b7c9793ea3e6be0b) Signed-off-by: Alex Shi --- arch/arm/boot/dts/omap4-cpu-thermal.dtsi | 41 ++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 arch/arm/boot/dts/omap4-cpu-thermal.dtsi diff --git a/arch/arm/boot/dts/omap4-cpu-thermal.dtsi b/arch/arm/boot/dts/omap4-cpu-thermal.dtsi new file mode 100644 index 0000000..cb9458f --- /dev/null +++ b/arch/arm/boot/dts/omap4-cpu-thermal.dtsi @@ -0,0 +1,41 @@ +/* + * Device Tree Source for OMAP4/5 SoC CPU 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 + +cpu_thermal: cpu_thermal { + polling-delay-passive = <250>; /* milliseconds */ + polling-delay = <1000>; /* milliseconds */ + + /* sensor ID */ + thermal-sensors = <&bandgap 0>; + + trips { + cpu_alert0: cpu_alert { + temperature = <100000>; /* millicelsius */ + hysteresis = <2000>; /* millicelsius */ + type = "passive"; + }; + cpu_crit: cpu_crit { + temperature = <125000>; /* millicelsius */ + hysteresis = <2000>; /* millicelsius */ + type = "critical"; + }; + }; + + cooling-maps { + map0 { + trip = <&cpu_alert0>; + cooling-device = + <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; +};