From patchwork Thu Mar 9 08:05:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "J, KEERTHY" X-Patchwork-Id: 9612637 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id BCE1F60417 for ; Thu, 9 Mar 2017 08:11:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9F215285B7 for ; Thu, 9 Mar 2017 08:11:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 93AC4285C2; Thu, 9 Mar 2017 08:11:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C17B0285B7 for ; Thu, 9 Mar 2017 08:11:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=qF7RuWb7AoAPb2ZIBbr/b3cC5hVMME4/F9u3X4m83EQ=; b=I4Ngcok3VAvLgK lZ3BKAwwH8it38Fq2zGvInQl5lXR+vHjJO9pl2n6u9nvwB0IK6bnSDmjA0PsPG+itZH7c5uGEEF/0 U8HzV1B7jVxNY9ofbIzxYRYpbl3MK0GD//LKRBf0UfmrmMehdagLBq+qQqX67YDPTFdZHuKAGchT/ yp+kuawOn5KKPvzGxMLA382ns75zzcSPxzqoGKlDwx0o40mxQPGCIsc7k4L8RM1HtLfpfFmcN9SBc 379nruPyT94xrnFL6k30lUolDb9nC9WDNhgG16zOkNP0rKqGx66D1ouPGJkVgqrjaHdkzdu+vKgRL 1FQ3hZIqEsy/g2P8AZIQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cltAH-0003NI-Dt; Thu, 09 Mar 2017 08:11:13 +0000 Received: from lelnx194.ext.ti.com ([198.47.27.80]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1clt6J-0007LG-C2 for linux-arm-kernel@lists.infradead.org; Thu, 09 Mar 2017 08:07:10 +0000 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by lelnx194.ext.ti.com (8.15.1/8.15.1) with ESMTP id v2986g6I003092; Thu, 9 Mar 2017 02:06:42 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1489046802; bh=ryWiEzEDjsjYxV/T42fz3oII6IG/OQVMgEkNXWxrCZg=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=UhkReNl7dmmRj8TnrTLwKJBWtpeIrVr+mIb4sVKAME8ydRLTzOrxCC1BQk1OIyhmx E7WsIp8XjUIUjISYeQIhG5tnMuzrEPCMehPdIMoEzNi9PFMZ12mbsGJhgPZsr3lcDR erEudX+rd7koVOMNCJQDTC+P5QxOrfh5RZTuEQjY= Received: from DLEE70.ent.ti.com (dlemailx.itg.ti.com [157.170.170.113]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id v2986gbx032420; Thu, 9 Mar 2017 02:06:42 -0600 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.3.294.0; Thu, 9 Mar 2017 02:06:41 -0600 Received: from ula0393675.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id v2986Ukb019463; Thu, 9 Mar 2017 02:06:39 -0600 From: Keerthy To: , Subject: [PATCH v2 3/8] ARM: OMAP5: Thermal: Add slope and offset values Date: Thu, 9 Mar 2017 13:35:57 +0530 Message-ID: <1489046762-11288-4-git-send-email-j-keerthy@ti.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1489046762-11288-1-git-send-email-j-keerthy@ti.com> References: <1489046762-11288-1-git-send-email-j-keerthy@ti.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170309_000707_509967_04804BF9 X-CRM114-Status: UNSURE ( 6.35 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-pm@vger.kernel.org, j-keerthy@ti.com, linux-kernel@vger.kernel.org, t-kristo@ti.com, robh+dt@kernel.org, rui.zhang@intel.com, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Currently the slope and offset values for calculating the hot spot temperature of a particular thermal zone is part of driver data. Pass them here instead and obtain the values while of node parsing. Signed-off-by: Keerthy --- arch/arm/boot/dts/omap5.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/omap5.dtsi b/arch/arm/boot/dts/omap5.dtsi index 222155c..eaff2a5 100644 --- a/arch/arm/boot/dts/omap5.dtsi +++ b/arch/arm/boot/dts/omap5.dtsi @@ -1127,6 +1127,15 @@ &cpu_thermal { polling-delay = <500>; /* milliseconds */ + coefficients = <65 (-1791)>; }; /include/ "omap54xx-clocks.dtsi" + +&gpu_thermal { + coefficients = <117 (-2992)>; +}; + +&core_thermal { + coefficients = <0 2000>; +};