From patchwork Wed Jul 17 15:02:46 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Eduardo Valentin X-Patchwork-Id: 2828736 Return-Path: X-Original-To: patchwork-linux-omap@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 CB18C9F967 for ; Wed, 17 Jul 2013 15:07:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8A8F0202D1 for ; Wed, 17 Jul 2013 15:07:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BAE21202B7 for ; Wed, 17 Jul 2013 15:07:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932263Ab3GQPGP (ORCPT ); Wed, 17 Jul 2013 11:06:15 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:50383 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932297Ab3GQPF4 (ORCPT ); Wed, 17 Jul 2013 11:05:56 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id r6HF4VpM020451; Wed, 17 Jul 2013 10:04:31 -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 r6HF4VBn023336; Wed, 17 Jul 2013 10:04:31 -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:04:31 -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 r6HF4Vt9018304; Wed, 17 Jul 2013 10:04:31 -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 r6HF4Mt28144; Wed, 17 Jul 2013 10:04:24 -0500 (CDT) From: Eduardo Valentin To: CC: , , , , , Eduardo Valentin , =?UTF-8?q?Beno=C3=AEt=20Cousson?= , Tony Lindgren , Russell King , , Subject: [PATCH 5/8] arm: dts: add omap4430 thermal data Date: Wed, 17 Jul 2013 11:02:46 -0400 Message-ID: <1374073374-30946-11-git-send-email-eduardo.valentin@ti.com> X-Mailer: git-send-email 1.8.2.1.342.gfa7285d In-Reply-To: <1374073374-30946-1-git-send-email-eduardo.valentin@ti.com> References: <1374073374-30946-1-git-send-email-eduardo.valentin@ti.com> MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 bcf455e..c9a1c89 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" / { @@ -26,8 +27,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 */ + }; + }; + }; }; };