From patchwork Thu Dec 31 12:23:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 355576 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp12091227jai; Thu, 31 Dec 2020 04:26:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJw5KlsTCyAi21pRg6VfPb7JlWbGMHTgxlq3LEpFOJlcjzuoEBLel8z5Qd3YEpOTdTiJYPso X-Received: by 2002:a17:906:e94c:: with SMTP id jw12mr54439355ejb.56.1609417562961; Thu, 31 Dec 2020 04:26:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609417562; cv=none; d=google.com; s=arc-20160816; b=IWd91bTyemiV3UIbs3MonNof4iy2DW53OqD6d/D9LK3/f2rACQZUTcJlntm5/4N6q9 YftdCXlzBrGknO5j75EgCMKYXziiBCNw9BnLiNluVS3dlk1yeJ3TMr0kG2WFcPAX1Q9T xcWj8bKaDyoehYfDD4yFIkrdytxFhTc05NKbQDd0aZAOwZlLNInJfIqRAALqvPJUJaTn /YIAAlXY+a6UO6REcfctW/hY6hM4Q/urhTV+akYe7rbGHehWI9xqKRpkrZgmFEc77Mkk iQSOTyJP9vYgAbk+QcJpQNe7KMBgpe/0942e7sfWDfMJ1cH4LoDZGXP3nYMWpEXwUE2K uqPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=fGf2ahi2sgrHaBtMmkREQruq4NpxKNnRfvbqorI/OxE=; b=zzIGG1nP8LN9pTCHSiu9e8A6evGO+bTzWHHJXdkNwv2T18N9q9EBGZc6PAkhpZi2xN +EMUrz2KQcBCRDm6i0hLR/IepKMLpbrPFzOsZ7wSYZqPGIMyi3zxlif8zWCc/9dI5AIe LHRPfgXx/C3K1ZCDfQIXS2f2zvYKeNWAf6SkoAiN9Ep/M2FvRY2sHwgW0iLqZ1O3OQT5 w46xzlLLNocWyHckEhvXhtRv+L2Y6dYsqnF4A4it4zAHN01/IK3jc3gWZkDoIStUDuey ziyKkj/9tfzXJgz+hiVoY1AqUluXpT7T+ZTlpSvOETTeyTiqJ2YWpPjb0uqBqqYa46Pn pPuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=u8fZxiez; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 r24si24924477edq.449.2020.12.31.04.26.02; Thu, 31 Dec 2020 04:26:02 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-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=u8fZxiez; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S1726596AbgLaMZQ (ORCPT + 7 others); Thu, 31 Dec 2020 07:25:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726652AbgLaMZP (ORCPT ); Thu, 31 Dec 2020 07:25:15 -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 CC71FC06179F for ; Thu, 31 Dec 2020 04:24:05 -0800 (PST) Received: by mail-lf1-x131.google.com with SMTP id 23so43697974lfg.10 for ; Thu, 31 Dec 2020 04:24:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=fGf2ahi2sgrHaBtMmkREQruq4NpxKNnRfvbqorI/OxE=; b=u8fZxiezK/0h6//xx5V1NScR5SXb6Q4bzm0JHG4z63gvm32xLSskGmtkHyW+LFgkqi tonjpyMtVkSv1WMMejuuhcIMPTnkywaAfvVdrey+YtGD+jwrH6e8A9Q2Y2jRWaDO2tUP Zsxm6QcvYDwJ4B27HwZWkzaHKTWnimLsF7SBU/VTUHSjJnaMnAn0B2uZl5iJesIN5yfc 52S0eu4Xz9X6TK8Pab/nCwUMbZ1Yc4Igi3EZr7jxWWQYQ5K6K7d3niEAR8wOAisKBF8l re+XODoLj97FanVOFiRlewTCnr3UqYRIazF8oibmLAqD+JYFGHOKpM3b8ARmbQzjQIuA NVww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=fGf2ahi2sgrHaBtMmkREQruq4NpxKNnRfvbqorI/OxE=; b=RMJeKKZViCCzXD6j4t8+negfxx/nTYZZK+OUwnnYU3XxD5k9ePN7fUwXl9Gu7dTu/F wgJd6zkd113WOh3UUMsnCJHVZZWZdzhS2cLFUCR7FNrwUa39KUgKP77YfqZ20puU45Ir E3W2ltLiB5AFQ/LT2Y3UuLNE0ks9hCTvu95G5MsfiGR7xOTesbHLHpFMc+Q44fhTebtX THKqCyrPZfzyFJCm3tiDctkE7vKb1PtbK39ReCNw/W4sM0yZEG9A8WUbI0Om0SfzaoMx /HNNyY4IhGk7cII2N3tqUxJxALkUvgz8Xv7F8UC+NnLkIMyqVwK9wKGsU7XmbERuvDrI nhlA== X-Gm-Message-State: AOAM5339AaWeYaUx1bM1ZVDYwRpp2RYbTO5kfYeaSj7dJ1Kwz/9qDaYe 9/tAXsGiawZb1tytV74F6wDOvA== X-Received: by 2002:a2e:7806:: with SMTP id t6mr30456348ljc.298.1609417444335; Thu, 31 Dec 2020 04:24:04 -0800 (PST) Received: from eriador.lumag.spb.ru ([94.25.228.115]) by smtp.gmail.com with ESMTPSA id n10sm428569lji.99.2020.12.31.04.24.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 31 Dec 2020 04:24:03 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Liam Girdwood , Mark Brown Cc: Vinod Koul , linux-arm-msm@vger.kernel.org, Manivannan Sadhasivam , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/4] regulator: qcom-rpmh-regulator: correct hfsmps515 definition Date: Thu, 31 Dec 2020 15:23:46 +0300 Message-Id: <20201231122348.637917-3-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201231122348.637917-1-dmitry.baryshkov@linaro.org> References: <20201231122348.637917-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org According to the datasheet pm8009's HFS515 regulators have 16mV resolution rather than declared 1.6 mV. Correct the resolution. Signed-off-by: Dmitry Baryshkov Fixes: 06369bcc15a1 ("regulator: qcom-rpmh: Add support for SM8150") --- drivers/regulator/qcom-rpmh-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.29.2 diff --git a/drivers/regulator/qcom-rpmh-regulator.c b/drivers/regulator/qcom-rpmh-regulator.c index fe030ec4b7db..c395a8dda6f7 100644 --- a/drivers/regulator/qcom-rpmh-regulator.c +++ b/drivers/regulator/qcom-rpmh-regulator.c @@ -726,7 +726,7 @@ 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, 1600), + .voltage_range = REGULATOR_LINEAR_RANGE(2800000, 0, 4, 16000), .n_voltages = 5, .pmic_mode_map = pmic_mode_map_pmic5_smps, .of_map_mode = rpmh_regulator_pmic4_smps_of_map_mode,