From patchwork Thu Nov 10 12:12:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 18090 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp107005wru; Thu, 10 Nov 2022 04:15:26 -0800 (PST) X-Google-Smtp-Source: AMsMyM7Qop8JFzudZNm8r1U9pf4Wny779UuLMeq8fUzH84Ry/u4NEE74T9TrD7DEwtoI6MMQCUrK X-Received: by 2002:a17:906:d144:b0:76f:ab3:c641 with SMTP id br4-20020a170906d14400b0076f0ab3c641mr2664510ejb.51.1668082526226; Thu, 10 Nov 2022 04:15:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668082526; cv=none; d=google.com; s=arc-20160816; b=PgT7/z2lJfBWLyg3CgMk2hFckX9xjzaAH/h/UWJ51qrPwDd8Ms0694rIZAIIb5Szhd pwy9yLCMM4XRVHslXeJT+6sAq4WN7qtv3pHXhKqs5QcZjJbVGmL4P5tiMYIpj66e+VP5 Pf+REfOLeRVZxdl2YqxXFYfg8NXYvQqzoe8Zo9MRGNsAUjqNHH5GkaQvEZuJz22Ql1K5 E9HVg2XWJeI3x9AkjLLq7p7BSHCUq2R63ot9ac4aZkNVRSmYw1CSj3ymw9gAYZNCu12v bsGne3Oa8qQpIGABm4f+/USqikLpXB1Yj6Ues8ED8M2khbvc0ov+HmOapKZd3u8aasTV KV5w== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=3m2vparsJ0IvTRoDQtc/C+sx5KcO7jtZEv/Wo5rLyfI=; b=NWsJbeGPofZfu5i4JO5BedGsejRvkWLsnlyiQ88os8WAS9Pa8UWbrHFy6b2MM5dE+0 jm20+Fee3A79pf7a7Zy2+w4Mw5/Hj+5SF+Y2718RHViZPmt5XmKBDqhCwty4ipFCe/FJ on1fNlve43BondiIKirfVV1NluxrDjtvG9k0ZVq/QEdqA4jganDhQC55x8BxdGgOl5iq r5T+J0ZTNRB2l1B/FLW8vR9kpOSDQ/ohKQH7AOa6gJlqbZbUUevUDNhg6U7BXqdRBf++ 8oYhKFw9HpMrAiWsP/q2CB2IsBAAB31j+g1qE0UGDuaPhSYsTq/0cHJErqc6E7GvmZkY dfGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vYlOSEfS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id js1-20020a17090797c100b007ae5ce3c730si17774585ejc.82.2022.11.10.04.15.01; Thu, 10 Nov 2022 04:15:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vYlOSEfS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S230425AbiKJMMh (ORCPT + 99 others); Thu, 10 Nov 2022 07:12:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230233AbiKJMMf (ORCPT ); Thu, 10 Nov 2022 07:12:35 -0500 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B9365598 for ; Thu, 10 Nov 2022 04:12:34 -0800 (PST) Received: by mail-lf1-x12c.google.com with SMTP id g12so2853075lfh.3 for ; Thu, 10 Nov 2022 04:12:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=3m2vparsJ0IvTRoDQtc/C+sx5KcO7jtZEv/Wo5rLyfI=; b=vYlOSEfSdDsa2OulOt0SwI1aMtr0j3/AxT1vf8GpEYJpd5DLlfJblTc0oGSh+aklLG xJyc6JbYzpB/go8XbKOmiNIFCuxKpNh4iG/jicF4jHtoinXvPFEDGQh+4dKVG0UEHkKC iuJmdurSeMa4YLIckEychviG4tbYJq655apEzjt+vBKNw8x8u635r9ILbJ2uLj0YHdDM 5+sqVmnKO+FpO/27A0znGhZ72kBKrUs6Zd507+lEvTEqtXqYzbmYVFDinyNFAXVORedT Yee/EoH6E2Yu1WUumXbOOnQYuOx1QfNPN/uZientm8sA6qti5aAlC5rfemx72xFk83CA Xu7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=3m2vparsJ0IvTRoDQtc/C+sx5KcO7jtZEv/Wo5rLyfI=; b=rqJFFLJdxxh2ja1e/rNr9eDyhrohrcYuqG5x2pBpwg2eHxyKbp+rGjhiDyn0jlHk1w YYqELwlC+TkireeNN9VFLJLFFqt0MgsanmptGIIFsOle3GVNhT/e97Y42Ir1pFjcgJic 7z9lQXy2ujDRXuB4rQUUq0YHT8eYr+cD+3cdiCfs4tVRWuN25pD32pgQyjM+4wQP0WhG w0LTRiQ1KEN55rDZQ6ZEYDXCfANVnAvkrwHzWQrIXwYDvmhFW2BT6iexfrfwFgwD2dPI +t1SBk3p6OKD2zrb4V8vZH37hGDplkR9PDxAN7wliynNwPmbsEzbzuJchBHYQZP3/JUv EBbQ== X-Gm-Message-State: ACrzQf1g2s5pBh6aZdzk+SQa6cDYg2yXuvCVoT1xORCd7SPF95Y8NB4a hZOkDWXPOx6u3njUE6G7yafscg== X-Received: by 2002:ac2:47e1:0:b0:4af:5088:9576 with SMTP id b1-20020ac247e1000000b004af50889576mr21098188lfp.468.1668082352920; Thu, 10 Nov 2022 04:12:32 -0800 (PST) Received: from localhost.localdomain ([194.29.137.22]) by smtp.gmail.com with ESMTPSA id y13-20020a19640d000000b004a91d1b3070sm2733423lfb.308.2022.11.10.04.12.30 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 10 Nov 2022 04:12:32 -0800 (PST) From: Konrad Dybcio To: linux-arm-msm@vger.kernel.org, andersson@kernel.org, agross@kernel.org Cc: patches@linaro.org, Konrad Dybcio , Konrad Dybcio , Liam Girdwood , Mark Brown , linux-kernel@vger.kernel.org Subject: [PATCH] regulator: qcom_smd: Fix PMR735a S3 regulator spec Date: Thu, 10 Nov 2022 13:12:25 +0100 Message-Id: <20221110121225.9216-1-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.32.0 (Apple Git-132) MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749111303154298790?= X-GMAIL-MSGID: =?utf-8?q?1749111303154298790?= PMR735a has a wider range than previously defined. Fix it. Signed-off-by: Konrad Dybcio --- No Fixes tag, as the patch is only in -next, so the hash will change. drivers/regulator/qcom_smd-regulator.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/regulator/qcom_smd-regulator.c b/drivers/regulator/qcom_smd-regulator.c index 9eaae13fd385..9f2b58458841 100644 --- a/drivers/regulator/qcom_smd-regulator.c +++ b/drivers/regulator/qcom_smd-regulator.c @@ -686,6 +686,15 @@ static const struct regulator_desc pmic5_ftsmps520 = { .ops = &rpm_smps_ldo_ops, }; +static const struct regulator_desc pmic5_hfsmps515 = { + .linear_ranges = (struct linear_range[]) { + REGULATOR_LINEAR_RANGE(320000, 0, 235, 16000), + }, + .n_linear_ranges = 1, + .n_voltages = 236, + .ops = &rpm_smps_ldo_ops, +}; + static const struct regulator_desc pms405_hfsmps3 = { .linear_ranges = (struct linear_range[]) { REGULATOR_LINEAR_RANGE(320000, 0, 215, 8000), @@ -1277,7 +1286,7 @@ static const struct rpm_regulator_data rpm_pmi8998_regulators[] = { static const struct rpm_regulator_data rpm_pmr735a_regulators[] = { { "s1", QCOM_SMD_RPM_SMPE, 1, &pmic5_ftsmps520, "vdd_s1"}, { "s2", QCOM_SMD_RPM_SMPE, 2, &pmic5_ftsmps520, "vdd_s2"}, - { "s3", QCOM_SMD_RPM_SMPE, 3, &pms405_hfsmps3, "vdd_s3"}, + { "s3", QCOM_SMD_RPM_SMPE, 3, &pmic5_hfsmps515, "vdd_s3"}, { "l1", QCOM_SMD_RPM_LDOE, 1, &pm660_nldo660, "vdd_l1_l2"}, { "l2", QCOM_SMD_RPM_LDOE, 2, &pm660_nldo660, "vdd_l1_l2"}, { "l3", QCOM_SMD_RPM_LDOE, 3, &pm660_nldo660, "vdd_l3"},