All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Brown <broonie@kernel.org>
To: Milo Kim <milo.kim@ti.com>
Cc: Lee Jones <lee.jones@linaro.org>,
	Jingoo Han <jg1.han@samsung.com>, Bryan Wu <cooloney@gmail.com>,
	linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
	Samuel Ortiz <sameo@linux.intel.com>
Subject: Re: [PATCH 09/10] regulator: Add LM3631 driver
Date: Fri, 14 Feb 2014 20:55:32 +0000	[thread overview]
Message-ID: <20140214205532.GU4451@sirena.org.uk> (raw)
In-Reply-To: <1392359551-7170-1-git-send-email-milo.kim@ti.com>

[-- Attachment #1: Type: text/plain, Size: 1416 bytes --]

On Fri, Feb 14, 2014 at 03:32:31PM +0900, Milo Kim wrote:
> LM3631 regulator driver has 5 regulators.
> One boost output and four LDOs are used for the display module.
> Boost voltage is configurable but always on.
> Supported operations for LDOs are enabled/disabled and voltage change.

This looks basically good, a couple of minor nits below but nothing
substantial.

> +static const int lm3631_boost_vtbl[] = {
> +	4500000, 4550000, 4600000, 4650000, 4700000, 4750000, 4800000, 4850000,
> +	4900000, 4950000, 5000000, 5050000, 5100000, 5150000, 5200000, 5250000,
> +	5300000, 5350000, 5400000, 5450000, 5500000, 5550000, 5600000, 5650000,
> +	5700000, 5750000, 5800000, 5850000, 5900000, 5950000, 6000000, 6050000,
> +	6100000, 6150000, 6200000, 6250000, 6300000, 6350000,
> +};

This looks like a linear range so could use the linear range helpers
(4.5-6.35V in steps of 0.05V)?  Similarly for the LDO.

> +static struct of_regulator_match lm3631_regulator_matches[] = {
> +	{ .name = "vboost", .driver_data = (void *)LM3631_BOOST, },
> +	{ .name = "vcont",  .driver_data = (void *)LM3631_LDO_CONT, },
> +	{ .name = "voref",  .driver_data = (void *)LM3631_LDO_OREF, },
> +	{ .name = "vpos",   .driver_data = (void *)LM3631_LDO_POS,  },
> +	{ .name = "vneg",   .driver_data = (void *)LM3631_LDO_NEG,  },
> +};

These names don't correspond to what was in the binding document and
there's a couple of extra LDOs.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

      reply	other threads:[~2014-02-15 10:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-14  6:32 [PATCH 09/10] regulator: Add LM3631 driver Milo Kim
2014-02-14  6:32 ` Milo Kim
2014-02-14 20:55 ` Mark Brown [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140214205532.GU4451@sirena.org.uk \
    --to=broonie@kernel.org \
    --cc=cooloney@gmail.com \
    --cc=devicetree@vger.kernel.org \
    --cc=jg1.han@samsung.com \
    --cc=lee.jones@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=milo.kim@ti.com \
    --cc=sameo@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.