From patchwork Mon Jan 19 11:20:52 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Majewski X-Patchwork-Id: 5657941 X-Patchwork-Delegate: eduardo.valentin@ti.com Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id C12C3C058D for ; Mon, 19 Jan 2015 11:26:41 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0A11D201FA for ; Mon, 19 Jan 2015 11:26:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6481620364 for ; Mon, 19 Jan 2015 11:26:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751651AbbASLYF (ORCPT ); Mon, 19 Jan 2015 06:24:05 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:40608 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751495AbbASLW4 (ORCPT ); Mon, 19 Jan 2015 06:22:56 -0500 Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NIF0023L8Y7GO50@mailout3.samsung.com>; Mon, 19 Jan 2015 20:22:55 +0900 (KST) X-AuditID: cbfee61b-f79d76d0000024d6-6e-54bce90ff368 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id C0.15.09430.F09ECB45; Mon, 19 Jan 2015 20:22:55 +0900 (KST) Received: from mcdsrvbld02.digital.local ([106.116.37.23]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NIF00DOL8V62U10@mmp2.samsung.com>; Mon, 19 Jan 2015 20:22:55 +0900 (KST) From: Lukasz Majewski To: Eduardo Valentin , Zhang Rui , Kukjin Kim , Kukjin Kim Cc: Linux PM list , "linux-samsung-soc@vger.kernel.org" , Bartlomiej Zolnierkiewicz , Lukasz Majewski , Amit Daniel Kachhap , Abhilash Kesavan , Abhilash Kesavan , Kyungmin Park , Chanwoo Choi , Lukasz Majewski Subject: [PATCH v5 08/18] thermal: exynos: dts: Add default definition of the TMU sensor parameter Date: Mon, 19 Jan 2015 12:20:52 +0100 Message-id: <1421666462-7606-9-git-send-email-l.majewski@samsung.com> X-Mailer: git-send-email 1.7.10.4 In-reply-to: <1421666462-7606-1-git-send-email-l.majewski@samsung.com> References: <1412872737-624-1-git-send-email-l.majewski@samsung.com> <1421666462-7606-1-git-send-email-l.majewski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrFLMWRmVeSWpSXmKPExsVy+t9jQV3+l3tCDHp6JCwer1nMZNFwNcRi 44z1rBbXvzxntZh/5RqrxZq/Sha9C66yWfQ/fs1scbbpDbvFm0fcFm8ebma0+Nx7hNFixvl9 TBZPHvaxOfB57Jx1l91j8Z6XTB6bVnWyeayb9pbZo2/LKkaPz5vkAtiiuGxSUnMyy1KL9O0S uDL+fC0uWM5bcezhZbYGxkXcXYycHBICJhJ9t6+zQthiEhfurWfrYuTiEBKYzijxbl0fO4TT xSSx5kwrC0gVm4CexOe7T5lAbBGBCYwS/1dFgxQxCzxjltjzdTszSEJYIEXi54GpYEUsAqoS N2ZuA7N5BVwluu9PYINYpyjR/QzC5hRwk3jT0cwIsa2BUeJz8wP2CYy8CxgZVjGKphYkFxQn peca6RUn5haX5qXrJefnbmIEh+gz6R2MqxosDjEKcDAq8fBu8N0TIsSaWFZcmXuIUYKDWUmE l/ECUIg3JbGyKrUoP76oNCe1+BCjNAeLkjivkn1biJBAemJJanZqakFqEUyWiYNTqoFxyf3A 3HP8qx9Z9ITtf/NefGMXj9ts8+pKxfi7l5O1brSL8z5+1rOt91sHo417+dYlix2vbruRK9hX XsJ6f7PZzTJT2WhJ//3+05XN/+8Qf/lHLfJjgPCV30+i067dPcyv8WHK6+ZXB4//FWn45+zW V6et9aV9/ZpwWea5674cmtW4S1Zj1o0wJZbijERDLeai4kQA6f3JW00CAAA= Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_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 Exynos 4 and 5 family of SoCs uses almost identical TMU sensor to measure the on chip temperature. For this reason it is possible to group TMU configuration parameters in one dts file. Signed-off-by: Lukasz Majewski --- Changes for v2: - None Changes for v3: - "samsung,tmu_" prefix for TMU specific properties has been added Changes for v4: - None Changes for v5: - None --- arch/arm/boot/dts/exynos4412-tmu-sensor-conf.dtsi | 24 +++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 arch/arm/boot/dts/exynos4412-tmu-sensor-conf.dtsi diff --git a/arch/arm/boot/dts/exynos4412-tmu-sensor-conf.dtsi b/arch/arm/boot/dts/exynos4412-tmu-sensor-conf.dtsi new file mode 100644 index 0000000..e3f7934 --- /dev/null +++ b/arch/arm/boot/dts/exynos4412-tmu-sensor-conf.dtsi @@ -0,0 +1,24 @@ +/* + * Device tree sources for Exynos4412 TMU sensor configuration + * + * Copyright (c) 2014 Lukasz Majewski + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + */ + +#include + +#thermal-sensor-cells = <0>; +samsung,tmu_gain = <8>; +samsung,tmu_reference_voltage = <16>; +samsung,tmu_noise_cancel_mode = <4>; +samsung,tmu_efuse_value = <55>; +samsung,tmu_min_efuse_value = <40>; +samsung,tmu_max_efuse_value = <100>; +samsung,tmu_first_point_trim = <25>; +samsung,tmu_second_point_trim = <85>; +samsung,tmu_default_temp_offset = <50>; +samsung,tmu_cal_type = ;