From: Henry Chen <HenryC.Chen@mediatek.com>
To: Axel Lin <axel.lin@ingics.com>
Cc: Mark Brown <broonie@kernel.org>,
Javier Martinez Canillas <javier@osg.samsung.com>,
Liam Girdwood <lgirdwood@gmail.com>,
<linux-kernel@vger.kernel.org>
Subject: Re: regulator: Question about the buck_volt_range and MT6311_MAX_UV setting
Date: Fri, 31 Jul 2015 09:12:30 +0800 [thread overview]
Message-ID: <1438305150.32674.12.camel@mtksdaap41> (raw)
In-Reply-To: <1438261841.9954.6.camel@ingics.com>
On Thu, 2015-07-30 at 21:10 +0800, Axel Lin wrote:
Hi Axel,
Oh..it was 1.4V on data sheet, but I think you're right, MT6311_MAX_UV
should be 1393750 was more precisely, I will change that.
Thanks.
> Hi Henry,
> Seems something wrong in either buck_volt_range or MT6311_MAX_UV setting.
>
> .n_voltages = (MT6311_MAX_UV - MT6311_MIN_UV) / MT6311_STEP_UV + 1
> (1400000 - 600000) / 6250 + 1 = 129
> So .n_voltages = 129.
>
> From the buck_volt_range:
> The linear range has min_sel: 0, max_sel: 0x7f
> (0 ~ 127, so 128 selector in this range)
> And the max voltage is
> 600000 + 0x7f * 6250 = 1393750
>
> I don't have the datasheet, so can you double check this?
> Thank,
> Axel
>
>
prev parent reply other threads:[~2015-07-31 1:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-30 13:10 Axel Lin
2015-07-31 1:12 ` Henry Chen [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=1438305150.32674.12.camel@mtksdaap41 \
--to=henryc.chen@mediatek.com \
--cc=axel.lin@ingics.com \
--cc=broonie@kernel.org \
--cc=javier@osg.samsung.com \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®