Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759091Ab2J0PGi (ORCPT ); Sat, 27 Oct 2012 11:06:38 -0400 Received: from mail-ea0-f174.google.com ([209.85.215.174]:43641 "EHLO mail-ea0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756083Ab2J0PGc (ORCPT ); Sat, 27 Oct 2012 11:06:32 -0400 Message-ID: <508BF8F4.1060006@gmail.com> Date: Sat, 27 Oct 2012 17:08:36 +0200 From: Francesco Lavra User-Agent: Mozilla/5.0 (X11; Linux i686; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 MIME-Version: 1.0 To: "Rajanikanth H.V" CC: lee.jones@linaro.org, arnd@arndb.de, anton.vorontsov@linaro.org, linus.walleij@stericsson.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linaro-dev@lists.linaro.org, patches@linaro.org, STEricsson_nomadik_linux@list.st.com Subject: Re: [PATCH 2/4] mfd: ab8500: add devicetree support for btemp References: <1351146654-9110-1-git-send-email-rajanikanth.hv@stericsson.com> <1351146654-9110-3-git-send-email-rajanikanth.hv@stericsson.com> In-Reply-To: <1351146654-9110-3-git-send-email-rajanikanth.hv@stericsson.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2393 Lines: 43 On 10/25/2012 08:30 AM, Rajanikanth H.V wrote: > From: "Rajanikanth H.V" > > This patch adds device tree support for > battery-temperature-monitor driver > > Signed-off-by: Rajanikanth H.V > --- > Documentation/devicetree/bindings/mfd/ab8500.txt | 6 ++ > .../bindings/power_supply/ab8500/btemp.txt | 16 +++++ > arch/arm/boot/dts/dbx5x0.dtsi | 5 ++ > drivers/mfd/ab8500-core.c | 5 ++ > drivers/power/Kconfig | 6 -- > drivers/power/ab8500_bmdata.c | 4 +- > drivers/power/ab8500_btemp.c | 66 ++++++++++++-------- > 7 files changed, 73 insertions(+), 35 deletions(-) > create mode 100644 Documentation/devicetree/bindings/power_supply/ab8500/btemp.txt > > diff --git a/Documentation/devicetree/bindings/mfd/ab8500.txt b/Documentation/devicetree/bindings/mfd/ab8500.txt > index 6ca8d81..179c802 100644 > --- a/Documentation/devicetree/bindings/mfd/ab8500.txt > +++ b/Documentation/devicetree/bindings/mfd/ab8500.txt > @@ -30,6 +30,12 @@ ab8500-fg : : vddadc : Fuel Gauge > : LOW_BAT_F : : LOW threshold battery voltage > : CC_INT_CALIB : : Coulomb Counter Internal Calibration > : CCEOC : : Coulomb Counter End of Conversion > +ab8500-btemp : : vtvout : Battery Temperature > + : BAT_CTRL_INDB : : Battery Removal Indicator > + : BTEMP_LOW : : Btemp < BtempLow, if battery temperature is lower than -10°C > + : BTEMP_HIGH : : BtempLow < Btemp < BtempMedium,if battery temperature is between -10 and 0°C > + : BTEMP_LOW_MEDIUM : : BtempMedium < Btemp < BtempHigh,if battery temperature is between 0°C and“MaxTemp > + : BTEMP_MEDIUM_HIGH : : Btemp > BtempHigh, if battery temperature is higher than “MaxTemp” BTEMP_HIGH, BTEMP_LOW_MEDIUM and BTEMP_MEDIUM_HIGH are in the wrong order and don't correspond to their description. -- Francesco -- 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/