From patchwork Wed Jul 17 15:17:26 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Eduardo Valentin X-Patchwork-Id: 2828783 Return-Path: X-Original-To: patchwork-linux-arm@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 0FAEA9F9F9 for ; Wed, 17 Jul 2013 15:22:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4FADA20342 for ; Wed, 17 Jul 2013 15:22:52 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 26DBF20324 for ; Wed, 17 Jul 2013 15:22:50 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UzTWN-0000y3-Id; Wed, 17 Jul 2013 15:20:05 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UzTVi-0006pL-Ti; Wed, 17 Jul 2013 15:19:22 +0000 Received: from arroyo.ext.ti.com ([192.94.94.40]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UzTVN-0006kf-Lb for linux-arm-kernel@lists.infradead.org; Wed, 17 Jul 2013 15:19:02 +0000 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id r6HFIaZw021121; Wed, 17 Jul 2013 10:18:36 -0500 Received: from DLEE71.ent.ti.com (dlee71.ent.ti.com [157.170.170.114]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id r6HFIad3010630; Wed, 17 Jul 2013 10:18:36 -0500 Received: from dlelxv23.itg.ti.com (172.17.1.198) by DLEE71.ent.ti.com (157.170.170.114) with Microsoft SMTP Server id 14.2.342.3; Wed, 17 Jul 2013 10:18:36 -0500 Received: from legion.dal.design.ti.com (legion.dal.design.ti.com [128.247.22.53]) by dlelxv23.itg.ti.com (8.13.8/8.13.8) with ESMTP id r6HFIaLC029006; Wed, 17 Jul 2013 10:18:36 -0500 Received: from localhost (h68-2.vpn.ti.com [172.24.68.2]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id r6HFIUt29684; Wed, 17 Jul 2013 10:18:30 -0500 (CDT) From: Eduardo Valentin To: Subject: [RESEND PATCH V1 7/9] arm: dts: add omap4430 thermal data Date: Wed, 17 Jul 2013 11:17:26 -0400 Message-ID: <1374074248-31690-8-git-send-email-eduardo.valentin@ti.com> X-Mailer: git-send-email 1.8.2.1.342.gfa7285d In-Reply-To: <1374074248-31690-1-git-send-email-eduardo.valentin@ti.com> References: <1374074248-31690-1-git-send-email-eduardo.valentin@ti.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130717_111901_832985_B9820E88 X-CRM114-Status: GOOD ( 10.59 ) X-Spam-Score: -7.3 (-------) Cc: wni@nvidia.com, Russell King , =?UTF-8?q?Beno=C3=AEt=20Cousson?= , linux-pm@vger.kernel.org, Tony Lindgren , linux-kernel@vger.kernel.org, lm-sensors@lm-sensors.org, Eduardo Valentin , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, l.stach@pengutronix.de X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 This patch changes the dtsi entry on omap4430 to contain the thermal data. This data will enable the passive cooling with CPUfreq cooling device at 100C and the system will do a thermal shutdown at 125C. Cc: "BenoƮt Cousson" Cc: Tony Lindgren Cc: Russell King Cc: linux-omap@vger.kernel.org Cc: devicetree-discuss@lists.ozlabs.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- arch/arm/boot/dts/omap443x.dtsi | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/omap443x.dtsi b/arch/arm/boot/dts/omap443x.dtsi index 4a4dcc3..27f0e0f 100644 --- a/arch/arm/boot/dts/omap443x.dtsi +++ b/arch/arm/boot/dts/omap443x.dtsi @@ -8,6 +8,7 @@ * kind, whether express or implied. */ +#include #include "omap4.dtsi" / { @@ -27,8 +28,34 @@ }; bandgap { - reg = <0x4a002260 0x4 - 0x4a00232C 0x4>; + reg = <0x4a002260 0x4 0x4a00232C 0x4>; compatible = "ti,omap4430-bandgap"; + thermal_zone { + type = "CPU"; + mask = <0x03>; /* trips writability */ + passive_delay = <250>; /* milliseconds */ + polling_delay = <1000>; /* milliseconds */ + governor = "step_wise"; + trips { + alert@100000{ + temperature = <100000>; /* milliCelsius */ + hysteresis = <2000>; /* milliCelsius */ + type = ; + }; + crit@125000{ + temperature = <125000>; /* milliCelsius */ + hysteresis = <2000>; /* milliCelsius */ + type = ; + }; + }; + bind_params { + action@0{ + cooling_device = "thermal-cpufreq"; + weight = <100>; /* percentage */ + mask = <0x01>; + /* no limits, using defaults */ + }; + }; + }; }; };