Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp327437pxb; Thu, 25 Feb 2021 03:46:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJzS1QJ1BS3aVHdLEsjLIMGEDHy9uwAzwnKtvjGvSQgTfHc7bhLj1raYAGw2KDd5g0Tb+UdT X-Received: by 2002:a17:906:4e91:: with SMTP id v17mr2232783eju.331.1614253595319; Thu, 25 Feb 2021 03:46:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614253595; cv=none; d=google.com; s=arc-20160816; b=zBrhtjIYVohnt9pBghyw/VwJNfxa/bJGpB3iHmDzJqZnvSV9c+OUAOLFaVRDoZySoG FT2h2t4BKhKPvgD+8cq0DzW9bKYmxSJJ1w/q0LY9nSUoWC7DbpGtdhKnpiB3wDDaX4Cy 7EAavKXdBz0rOCzPNbGqp5N5pQxa3B03SDjBJ/JtybDfS9Pohn5kymXCiPSrqvHmcJcq besuRbuJv2oKk23xytVdyn156+CR2HbEq8T72U27lWXVd1U2JlswVzqMBO2zRSN4gyBL xnM5HA2Hc0bVobIzFsjUEOb6Z06h4BInsHJ4gHUErTwqhmYnDCm9ofdZr2+V+lRAqPjj cO/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=KsVwr/SgHimLoekwI/bdVNURN0jFlKqAbUptmf67o5U=; b=FUYi2vTVduFuD2H+zFVwbIOYLC5jzfxpR/6wi72fGgJorontj4bIbnMTE8iowJJ4mj fUKuYfZxh3KBRMJqgZeV0rQxV2kUGEtIHNhz2PrCzmoRXLeoMWS6mwVtyhUzGSajkNUw kp6c25cYQMHoQuGjlAJTQlYQ30nP2ALt0oiQXNG+7lyWbNADqLu4qrntHgwThFjfnNqj Zx+p2YGIkDUm2V1JTNPckq1osi2OmtXEXdCpZnMFyVpQItYWRhgrqjIDSgabG6TgQkmT Q2PHuPkflLj/AfEKqnwlEExyakeljviCF/85ak321RO9yXtggFxvYSYRs0R2mnq9LT2C XGFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=T+qkOHu3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d4si3132253ejb.594.2021.02.25.03.46.12; Thu, 25 Feb 2021 03:46:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=T+qkOHu3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233162AbhBYLLG (ORCPT + 99 others); Thu, 25 Feb 2021 06:11:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230019AbhBYLKl (ORCPT ); Thu, 25 Feb 2021 06:10:41 -0500 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 738DEC06174A for ; Thu, 25 Feb 2021 03:10:01 -0800 (PST) Received: by mail-lf1-x131.google.com with SMTP id d3so7929076lfg.10 for ; Thu, 25 Feb 2021 03:10:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=KsVwr/SgHimLoekwI/bdVNURN0jFlKqAbUptmf67o5U=; b=T+qkOHu3rv0PtEZuU2y0Q0dtYGNt03jhzNks4s/nDqX4r5pusHWu5T0vyQALvDt3lw JOTdpdrh/udLx/V2gKWixcDpH0+g6pZrFvlzxP0kFY+JACin8njulDHIWFOI63Um8aD1 S7D1vZ4SoLhUIsgPvMOpCNJyeO68GMcsS84t7DyIV286ved6lDnFjzf9snYJMD/MfSxb nQ3lKC6yPDYpP/xhJUef3KRlpIGcz9nyV38Xq0qT60tkxhsnIL6tf9Ag6JRgwjrzk6t4 gZpiB62aichJM3EiFmdnKuIWYxSkWxXCYMtHmqa0wW0HuCjLMNI2k+X669Y8UBmBvX5Q P6Fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=KsVwr/SgHimLoekwI/bdVNURN0jFlKqAbUptmf67o5U=; b=g0c/RmR3YRz7rr0fQfBPVO4D/Mpru+MuNtH2qynBSnQLbNnnmNsqXoptHuxW3GzOH2 ZOtUt0SZaxnvm4Bw9H8h8RGoEVKWW8Obf3eB0sfXH3hsTA03SEmqxgUJeigCEdp899mp dVXil1/4sar3w2awhEhrEOxxokSBQVzH2+yD/Zuiqt+yFlWMK1iJik1iNBeMhc5FgfjV EIcuaV9cGr/1dtOmMeo/oZ3TiyeH2MKmGEmPurVEvG6wFPBd644yJte5ib+z1mSXGUZY jX4OdaOWuRnUmQr29yROrelf3/mwdPc8TlCfVJbnbBJ5ogYQCvDrarpWltJXdGd4w/ar nBHg== X-Gm-Message-State: AOAM5332fybOSxBEsQ/0/qi5/FNoamU2tVCLQx2YxPdLygABVVY+jrn6 aATMq4n6QmW9Yac2xzni9Eilng== X-Received: by 2002:a05:6512:2295:: with SMTP id f21mr1799266lfu.187.1614251399794; Thu, 25 Feb 2021 03:09:59 -0800 (PST) Received: from [192.168.1.211] ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id y11sm198588ljc.18.2021.02.25.03.09.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 25 Feb 2021 03:09:59 -0800 (PST) Subject: Re: [PATCH 3/7] regulator: qcom-rpmh: Correct the pmic5_hfsmps515 buck To: satya priya , Andy Gross , Bjorn Andersson Cc: Liam Girdwood , Mark Brown , Rob Herring , rnayak@codeaurora.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, kgunda@codeaurora.org, linux-arm-msm References: <1614155592-14060-1-git-send-email-skakit@codeaurora.org> <1614155592-14060-4-git-send-email-skakit@codeaurora.org> From: Dmitry Baryshkov Message-ID: <50151f4b-298c-f0ee-a88f-7bdd945ad249@linaro.org> Date: Thu, 25 Feb 2021 14:09:58 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: <1614155592-14060-4-git-send-email-skakit@codeaurora.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24/02/2021 11:33, satya priya wrote: > Correct the REGULATOR_LINEAR_RANGE and n_voltges for > pmic5_hfsmps515 buck. > > Signed-off-by: satya priya > --- > drivers/regulator/qcom-rpmh-regulator.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/regulator/qcom-rpmh-regulator.c b/drivers/regulator/qcom-rpmh-regulator.c > index 79a554f..36542c3 100644 > --- a/drivers/regulator/qcom-rpmh-regulator.c > +++ b/drivers/regulator/qcom-rpmh-regulator.c > @@ -726,8 +726,8 @@ static const struct rpmh_vreg_hw_data pmic5_ftsmps510 = { > static const struct rpmh_vreg_hw_data pmic5_hfsmps515 = { > .regulator_type = VRM, > .ops = &rpmh_regulator_vrm_ops, > - .voltage_range = REGULATOR_LINEAR_RANGE(2800000, 0, 4, 16000), > - .n_voltages = 5, > + .voltage_range = REGULATOR_LINEAR_RANGE(320000, 0, 235, 16000), > + .n_voltages = 236, I've checked the docs for pm8009, the chip which also uses hfsmps515 regulators. The pdf clearly states that the 'Output voltage operating range' is from 2.8 V to 2.85 V. So we'd probably need to define different versions of HFS515 regulator data (like I had to create for pm8009-1). > .pmic_mode_map = pmic_mode_map_pmic5_smps, > .of_map_mode = rpmh_regulator_pmic4_smps_of_map_mode, > }; > -- With best wishes Dmitry