Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752252AbbGaBMf (ORCPT ); Thu, 30 Jul 2015 21:12:35 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:41650 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751216AbbGaBMe (ORCPT ); Thu, 30 Jul 2015 21:12:34 -0400 X-Listener-Flag: 11101 Message-ID: <1438305150.32674.12.camel@mtksdaap41> Subject: Re: regulator: Question about the buck_volt_range and MT6311_MAX_UV setting From: Henry Chen To: Axel Lin CC: Mark Brown , Javier Martinez Canillas , Liam Girdwood , Date: Fri, 31 Jul 2015 09:12:30 +0800 In-Reply-To: <1438261841.9954.6.camel@ingics.com> References: <1438261841.9954.6.camel@ingics.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 936 Lines: 34 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 > > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/