Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753966AbbGWPyo (ORCPT ); Thu, 23 Jul 2015 11:54:44 -0400 Received: from mail-wi0-f182.google.com ([209.85.212.182]:38737 "EHLO mail-wi0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751355AbbGWPyh (ORCPT ); Thu, 23 Jul 2015 11:54:37 -0400 Date: Thu, 23 Jul 2015 16:54:32 +0100 From: Lee Jones To: Vaibhav Hiremath Cc: linux-arm-kernel@lists.infradead.org, robh+dt@kernel.org, devicetree@vger.kernel.org, broonie@kernel.org, k.kozlowski@samsung.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH-v2 2/2] regulator: 88pm800: Add support for configuration of dual phase on BUCK1 Message-ID: <20150723155432.GV3436@x1> References: <1437495782-15767-1-git-send-email-vaibhav.hiremath@linaro.org> <1437495782-15767-3-git-send-email-vaibhav.hiremath@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1437495782-15767-3-git-send-email-vaibhav.hiremath@linaro.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1507 Lines: 47 On Tue, 21 Jul 2015, Vaibhav Hiremath wrote: > 88PM860 device supports dual phase mode on BUCK1 output. > In normal usecase, BUCK1A and BUCK1B operates independently with 3A > capacity. And they both can work as a dual phase providing 6A capacity. > > This patch updates the regulator driver to read the respective > DT property and enable dual-phase mode on BUCK1. > > Note that, this is init time (one time) initialization. > > Signed-off-by: Vaibhav Hiremath > --- > drivers/regulator/88pm800.c | 31 +++++++++++++++++++++++++++++++ > include/linux/mfd/88pm80x.h | 3 +++ > 2 files changed, 34 insertions(+) [...] > diff --git a/include/linux/mfd/88pm80x.h b/include/linux/mfd/88pm80x.h > index a92d173..05d9bad 100644 > --- a/include/linux/mfd/88pm80x.h > +++ b/include/linux/mfd/88pm80x.h > @@ -295,6 +295,9 @@ enum { > #define PM860_BUCK4_MISC2 (0x82) > #define PM860_BUCK4_FULL_DRV BIT(2) > > +#define PM860_BUCK1_MISC (0x8E) Why the over-bracketing? > +#define BUCK1_DUAL_PHASE_SEL BIT(2) > + > struct pm80x_rtc_pdata { > int vrtc; > int rtc_wakeup; -- Lee Jones Linaro STMicroelectronics Landing Team Lead 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/