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: 355594 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1381FC433E6 for ; Thu, 31 Dec 2020 12:25:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CF31722473 for ; Thu, 31 Dec 2020 12:25:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726652AbgLaMZQ (ORCPT ); Thu, 31 Dec 2020 07:25:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726655AbgLaMZP (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 CF2F3C0617A0 for ; Thu, 31 Dec 2020 04:24:05 -0800 (PST) Received: by mail-lf1-x131.google.com with SMTP id a12so43764798lfl.6 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=nfC6Iafp5mPZWVVnTtpINFWO+2nSkeezANs3wmZVSjLo5A7NTKOhW81w5Mt5K4fmUG rKUd1YG3kU5NhL53gRr5Uym5cpxXSbFd2IQ1MTNtt5E9uzj3bXAY1aCVioQi21QKyeN2 PKBLppUvkIP0hb8+ZCtbsh8auzn/5iPtJSHqH/iCc69m/NEGnyzFPyBxrWZlDb/2OZje 0p11tQIlxyFOnOlpCjPebS1dmnmkV8K+gFFgtmQiPQhqFTiBum5xRSqV4/sjYxSQriF0 e1RwOLJRQzzcOUMKjgZB3Gr/OIXNtEZnV3Vtq1aADtJoJo5VaLH+0FyugNap4TF5crU3 qGRA== X-Gm-Message-State: AOAM532G9spcTSQWs46sQuKOHcmlEUn3XpV5ckJCp0r0k9jAXHvaNklW R/CWg+t/lVFxM6Qs3EWj54SxSg== X-Google-Smtp-Source: ABdhPJy3ycIrM+bzS+G2caXxlkst0VjlSTFqGJXzVJI624FQ3xvaODeqlrpYyhcrsV7SV6Hj2urd3g== 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: linux-arm-msm@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(-) 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, From patchwork Thu Dec 31 12:23:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 355578 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp12091252jai; Thu, 31 Dec 2020 04:26:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJwNsk4orJjm9MwEnJtPSqP0iIrrTOy+XACKdnR32m9IEbKO7tNP5X7DF1ed6bYiQBTJuBUA X-Received: by 2002:a17:907:1009:: with SMTP id ox9mr53223155ejb.37.1609417565177; Thu, 31 Dec 2020 04:26:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609417565; cv=none; d=google.com; s=arc-20160816; b=tEh8HEMObBzizvAh8l+lIprQOWbH0qtr2M5i7bQ22rlKOHhM4g/x4L2zkW3PiyKDp0 8BHn3h6VDST9oqeebk+WY1n0zTX6I05fjixYVbeUEDfPi7msMlYTMFPShHqjAOK1J5N/ XsGv7evocQlcpRPX+7Vm1EAsBA1MqXUsF1szCW7wESHY2PTfXSOERmiWd7gyfdDYH0PM 6J8fd2e7kND9cGYeE40UiTrEzzw4BdiTD7PYswbPwPFIeA09NptxUW7c0VjFkoQRioSz rPBgzVujXVlHQ5CYBowdQRPOmF6LrG3/1JszD4MCPymahrKJglU2MO/oDyH+1/gU6vpC eOJg== 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=ae+eotDOGUM6TKajZH+vbsOlioJYe6VPg6q5P3xKHJA=; b=zegWbvLs2ql+NHxOpbCUmBUBsrYXcJ1eJG3T20RMjm2K7LxDI8mQSMb4sLuJEiwyw5 kc1+Zu9u/MdDNIvr1D3o0fUGoFKfgNJNG7D/EjwI9l+/xmXedLMxpZIBAlOgQNdtUv7F KhuluVgXsIfUa0jJf8Lkmg6DpoXQf7uEPvUwglVcwtpdRHDdc1zRf3QdujyCf+1XR6eW sDz2AzBgrHQMayAr5qqW5rqApYd8bUq/6wxpZ2HfsOukiAYTujX8/yvqf6Dzaygjy6Rm YR9zbSbaf4LxIJ1fIl2v1gYgPCBxel9V5sviEnqTjA6pKOIlpGwK+oJzFbldm5BhtCba TQnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Bz1s8pRN; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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.05; Thu, 31 Dec 2020 04:26:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-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=Bz1s8pRN; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1726687AbgLaMZ0 (ORCPT + 15 others); Thu, 31 Dec 2020 07:25:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726681AbgLaMZZ (ORCPT ); Thu, 31 Dec 2020 07:25:25 -0500 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C54DC0617A6 for ; Thu, 31 Dec 2020 04:24:09 -0800 (PST) Received: by mail-lf1-x136.google.com with SMTP id h205so43736512lfd.5 for ; Thu, 31 Dec 2020 04:24:09 -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=ae+eotDOGUM6TKajZH+vbsOlioJYe6VPg6q5P3xKHJA=; b=Bz1s8pRNAqjTEcnosb6WR0Qt4kZFkzotm+XUWaNNxpkZUMUaEZSUqFWK8Pglm1vlrn IO2cZLdPzluiUIibr/2+wudvQdGDplf+AzNbN6syubqQlgQO0DFjKYs1CgOO4TMBBDhi fPBfD7nXYcyYX/nuu6SiqZihSNSfxnpRq/jJJcLNasmEC8UFtdn2jCD7yty7UkJnShsV DVOPo2k1j8EG2maP19Z1ODZAu4Bgjnz9D4D4l5XJm1C8nzFTIf5oXlKxsdUhsTT+Kqev 8u7MnExvxcJlidB01dRTbA6x+VBWGrfVTqclRRbnOsWSdSOst6wRWTJbPO1Z5dGS8FuC EZuw== 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=ae+eotDOGUM6TKajZH+vbsOlioJYe6VPg6q5P3xKHJA=; b=QL1wfxLrjXgnAATeeKYi0HWevZYC3iC+x/Pg9NipkVRiH1J+ZC9cJ26u4Oj9KiG7Ie zAwl4hIQuzBX38sgAtkUj6D62HesRvtzKjOZokqUd2Z4vNs5A/CQMJT9haXVASJf9s3E HWsa+aTZLCtpn2+S2dg5gZWOtLqLPRTEF/LdNyUoFFQmyKm0Hab9P1CZlSy9cBZK8PbG obLMiyY8gH12jgJmnYtF9/uiELPh1oQGkTQ3LlW9yK6yEA2ALJqZkNt8kzvpNqt3+D1L RdtRyLReWe+NIrh7a2v7r7skbh3AJkdwgz6xy784zTz2mVQFk4SDDlUKcWrmrHk73LV+ sayw== X-Gm-Message-State: AOAM533rZbkJRPEjhMQINHPG1C2qVqGKMmt/5K7zxKZ/LT8yi6nMsY6M cImCYVmZYIHFhvNDf1EghHzxnznZgd2o8A== X-Received: by 2002:a2e:a58b:: with SMTP id m11mr27105451ljp.329.1609417447810; Thu, 31 Dec 2020 04:24:07 -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.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 31 Dec 2020 04:24:07 -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 4/4] arm64: dts: qcom: qrb5165-rb5: fix pm8009 regulators Date: Thu, 31 Dec 2020 15:23:48 +0300 Message-Id: <20201231122348.637917-5-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: linux-arm-msm@vger.kernel.org Fix pm8009 compatibility string to reference pm8009 revision specific to sm8250 platform. Also add S2 regulator to be used for qca639x. Signed-off-by: Dmitry Baryshkov Fixes: b1d2674e6121 ("arm64: dts: qcom: Add basic devicetree support for QRB5165 RB5") --- arch/arm64/boot/dts/qcom/qrb5165-rb5.dts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) -- 2.29.2 diff --git a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts index cbced45d7f51..5c1cc836920f 100644 --- a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts +++ b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts @@ -140,7 +140,7 @@ qca639x: qca639x { &apps_rsc { pm8009-rpmh-regulators { - compatible = "qcom,pm8009-rpmh-regulators"; + compatible = "qcom,pm8009-1-rpmh-regulators"; qcom,pmic-id = "f"; vdd-s1-supply = <&vph_pwr>; @@ -149,6 +149,13 @@ pm8009-rpmh-regulators { vdd-l5-l6-supply = <&vreg_bob>; vdd-l7-supply = <&vreg_s4a_1p8>; + vreg_s2f_0p95: smps2 { + regulator-name = "vreg_s2f_0p95"; + regulator-min-microvolt = <900000>; + regulator-max-microvolt = <952000>; + regulator-initial-mode = ; + }; + vreg_l1f_1p1: ldo1 { regulator-name = "vreg_l1f_1p1"; regulator-min-microvolt = <1104000>;