mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* regulator: Question about the buck_volt_range and MT6311_MAX_UV setting
@ 2015-07-30 13:10 Axel Lin
  2015-07-31  1:12 ` Henry Chen
  0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2015-07-30 13:10 UTC (permalink / raw)
  To: Henry Chen
  Cc: Mark Brown, Javier Martinez Canillas, Liam Girdwood, linux-kernel

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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-07-31  1:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-30 13:10 regulator: Question about the buck_volt_range and MT6311_MAX_UV setting Axel Lin
2015-07-31  1:12 ` Henry Chen

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