From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752479AbbJCM55 (ORCPT ); Sat, 3 Oct 2015 08:57:57 -0400 Received: from mail-wi0-f174.google.com ([209.85.212.174]:32876 "EHLO mail-wi0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752331AbbJCM5t (ORCPT ); Sat, 3 Oct 2015 08:57:49 -0400 Message-ID: <1443877066.4186.38.camel@gmail.com> Subject: Re: [PATCH v4 20/26] ARM: pxa: magician: Add support for MAX1587A Vcore regulator From: Philipp Zabel To: Petr Cvek , robert.jarzmik@free.fr, daniel@zonque.org, haojian.zhuang@gmail.com, linux@arm.linux.org.uk Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Date: Sat, 03 Oct 2015 14:57:46 +0200 In-Reply-To: <5609B377.3020404@tul.cz> References: <5609B377.3020404@tul.cz> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.16.5-1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Montag, den 28.09.2015, 23:39 +0200 schrieb Petr Cvek: > HTC Magician contains a MAX1587A voltage regulator for a Vcore > supply. > The Vcore regulation is required for a CPU speed switching. This > patch adds > declaration for the max1586 driver. > > Notice: > > - MAX1587A version does not support the V6 (USIM) output. > - A boost resistor was directly measured for a board_id 0x3a. > > Signed-off-by: Petr Cvek > --- > arch/arm/mach-pxa/magician.c | 52 > ++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 52 insertions(+) > > diff --git a/arch/arm/mach-pxa/magician.c b/arch/arm/mach > -pxa/magician.c > index d844b9c..490d79f 100644 > --- a/arch/arm/mach-pxa/magician.c > +++ b/arch/arm/mach-pxa/magician.c > @@ -52,6 +52,8 @@ > #include > #include > > +#include > + > #include "devices.h" > #include "generic.h" > > @@ -787,6 +789,52 @@ static struct platform_device vads7846_device = > { > }; > > /* > + * Vcore regulator MAX1587A > + */ > + > +static struct regulator_consumer_supply > magician_max1587a_consumers[] = { > + REGULATOR_SUPPLY("vcc_core", NULL), > +}; > + > +static struct regulator_init_data magician_max1587a_v3_info = { > + .constraints = { > + .name = "vcc_core range", > + .min_uV = 700000, > + .max_uV = 1500000, Wouldn't that be 1475000 for MAX1587A without the R24 resistor? regards Philipp