Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752989AbbHTW31 (ORCPT ); Thu, 20 Aug 2015 18:29:27 -0400 Received: from mail-pa0-f47.google.com ([209.85.220.47]:36138 "EHLO mail-pa0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752915AbbHTW3Z (ORCPT ); Thu, 20 Aug 2015 18:29:25 -0400 Message-ID: <55D654C3.4040808@linaro.org> Date: Fri, 21 Aug 2015 00:29:23 +0200 From: Daniel Lezcano User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 MIME-Version: 1.0 To: Eduardo Valentin , Sascha Hauer CC: linux-pm@vger.kernel.org, Zhang Rui , linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Daniel Kurtz , kernel@pengutronix.de, Matthias Brugger Subject: Re: [PATCH 2/3] thermal: Add Mediatek thermal controller support References: <1440057962-13373-1-git-send-email-s.hauer@pengutronix.de> <1440057962-13373-3-git-send-email-s.hauer@pengutronix.de> <20150820222039.GA6708@localhost.localdomain> In-Reply-To: <20150820222039.GA6708@localhost.localdomain> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1410 Lines: 39 On 08/21/2015 12:20 AM, Eduardo Valentin wrote: > On Thu, Aug 20, 2015 at 10:06:01AM +0200, Sascha Hauer wrote: >> This adds support for the Mediatek thermal controller found on MT8173 >> and likely other SoCs. >> The controller is a bit special. It does not have its own ADC, instead >> it controls the on-SoC AUXADC via AHB bus accesses. For this reason >> we need the physical address of the AUXADC. Also it controls a mux >> using AHB bus accesses, so we need the APMIXEDSYS physical address aswell. >> >> Signed-off-by: Sascha Hauer >> --- [ ... ] >> + /* >> + * These calibration values should finally be provided by the >> + * firmware or fuses. For now use default values. >> + */ >> + mt->calib_slope = -123; >> + mt->calib_offset = 465124; > > Would it make sense to use the coefficients device tree property to > describe the sensor slope and offset? Trim the mail when possible please. -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/