From: Axel Lin <axel.lin@ingics.com>
To: Henry Chen <henryc.chen@mediatek.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: regulator: Question about the buck_volt_range and MT6311_MAX_UV setting
Date: Thu, 30 Jul 2015 21:10:41 +0800 [thread overview]
Message-ID: <1438261841.9954.6.camel@ingics.com> (raw)
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
next reply other threads:[~2015-07-30 13:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-30 13:10 Axel Lin [this message]
2015-07-31 1:12 ` Henry Chen
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=1438261841.9954.6.camel@ingics.com \
--to=axel.lin@ingics.com \
--cc=broonie@kernel.org \
--cc=henryc.chen@mediatek.com \
--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
Powered by JetHome