From patchwork Thu Dec 3 07:12:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 336928 Delivered-To: patch@linaro.org Received: by 2002:a92:5e16:0:0:0:0:0 with SMTP id s22csp74218ilb; Wed, 2 Dec 2020 23:14:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJxxwjI7ZCWoguAM1SsX2WxBlqs4cWfngZwO2eSfFbG4RvssFcqtbfd1mXnMgArTxfbgQ7Bu X-Received: by 2002:a17:906:2683:: with SMTP id t3mr1345375ejc.414.1606979651717; Wed, 02 Dec 2020 23:14:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606979651; cv=none; d=google.com; s=arc-20160816; b=a7BIaIfNajZp0Z+X0FwX0VkskFIG8wGeLXFRwoOeZ3+mgJhCabC4bd60K9sBCqDkT2 AKCFHZI9nU5rrQ9dP7V9i4jLrpc6KZtJS789/mtIwygpFnOT2A9bxClOu2Wb72X6R4h4 lkmmkBc8hdTx6jtEMMiHuAGSSv+vbxq3Kq47zIyYXJiDvszEt9+j43+2WfsK64E1xO99 rN2Vf5xAYSrAVdsq2qq8T/Vj8djUAO7kCgdY5+/o96YJke4nuaRmvKHSVNvmDCyghNOn uessgiVnRNvLrcAEjkTU7vfCqN2+bIAWsRHjzG0Rcli385jFaTtzqUiLe3vMElSLM2NS ZcTw== 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; bh=ZCrE0UNjZ+aH91cKg/wLl9CkmUaH24KrDo2fa2g+t7s=; b=Au2p7sb5TrQgOwPVLH80uctBWtZtaIO+eDh5y+mZLd6bqytnieZl73pveQtrxr6vfn jOuZFYikDWE7VNtuyagFrDXpv8UpGMJyFd4qlgi3xYduoQoAzhqsH07RYCs8boe94yMJ jqQZzsilhNm/HiD53bEUif7lGfQxpsXHCE8d6dantQxxtybqzWxOU0Zfjc7D5tkbYpwi H84RhZdP8HCZw5PSTHBbowx0ufJXbZcYdn7DuBNPUBBMGIcS5v25QtvOhTnCfgn+f8BN 7mMP8GBIWUF2rJeRSm83wKZhlFlIYKFrLyjD21wSaY5o4R8lzwbXEkd04utCzAl55ba/ z/bg== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y24si613012ejc.613.2020.12.02.23.14.11; Wed, 02 Dec 2020 23:14:11 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727394AbgLCHOH (ORCPT + 15 others); Thu, 3 Dec 2020 02:14:07 -0500 Received: from mail.kernel.org ([198.145.29.99]:59324 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725912AbgLCHOG (ORCPT ); Thu, 3 Dec 2020 02:14:06 -0500 From: Vinod Koul Authentication-Results: mail.kernel.org; dkim=permerror (bad message/signature format) To: Mark Brown Cc: linux-arm-msm@vger.kernel.org, Bjorn Andersson , Vinod Koul , Andy Gross , Liam Girdwood , Rob Herring , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 1/2] regulator: dt-bindings: Add PM8350x compatibles Date: Thu, 3 Dec 2020 12:42:43 +0530 Message-Id: <20201203071244.2652297-1-vkoul@kernel.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add PM8350 and PM8350C compatibles for these PMICs found in some Qualcomm platforms. Signed-off-by: Vinod Koul --- .../devicetree/bindings/regulator/qcom,rpmh-regulator.txt | 4 ++++ 1 file changed, 4 insertions(+) -- 2.26.2 Reviewed-by: Bjorn Andersson diff --git a/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.txt b/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.txt index 97c3e0b7611c..0f5f4029d9a2 100644 --- a/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.txt +++ b/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.txt @@ -26,6 +26,8 @@ Supported regulator node names: PM8009: smps1 - smps2, ldo1 - ldo7 PM8150: smps1 - smps10, ldo1 - ldo18 PM8150L: smps1 - smps8, ldo1 - ldo11, bob, flash, rgb + PM8350: smps1 - smps12, ldo1 - ldo10, + PM8350C: smps1 - smps10, ldo1 - ldo13, bob PM8998: smps1 - smps13, ldo1 - ldo28, lvs1 - lvs2 PMI8998: bob PM6150: smps1 - smps5, ldo1 - ldo19 @@ -43,6 +45,8 @@ First Level Nodes - PMIC "qcom,pm8009-rpmh-regulators" "qcom,pm8150-rpmh-regulators" "qcom,pm8150l-rpmh-regulators" + "qcom,pm8350-rpmh-regulators" + "qcom,pm8350c-rpmh-regulators" "qcom,pm8998-rpmh-regulators" "qcom,pmi8998-rpmh-regulators" "qcom,pm6150-rpmh-regulators" From patchwork Thu Dec 3 07:12:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 336929 Delivered-To: patch@linaro.org Received: by 2002:a92:5e16:0:0:0:0:0 with SMTP id s22csp74237ilb; Wed, 2 Dec 2020 23:14:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJwuGbCzHr5j9HAz4Cmzdz/knBp/DcVC5p89hbiEVoQQhPJthVecw8A3vQj8CMIgkpR9Kr+2 X-Received: by 2002:a17:906:8617:: with SMTP id o23mr1343136ejx.274.1606979654063; Wed, 02 Dec 2020 23:14:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606979654; cv=none; d=google.com; s=arc-20160816; b=SLlglxf6OEGcO9G3Hby8qbDaaN1xemIic7InC4rpBaHynpYqpnXVhr04xpN5iBF3gs gAGKUsgEMeSToDAkVZU0AaynFhBis26kmrVPZvWnjD3qOldhSoQUPIOgUixJa/hnF9gS HcHILO9VmpX37XZV2OUojyvGuFnUkRqRcpxfl3CIPqty7NXPRSdLkgBaxdyb2IQ2Gkbm Xpd0RPksPALuOckbCIBtfv4EyanDHYtllTI1E0v3cpmZ36dMXll81SEyw80WIFg0whb3 gDR5cza7yaoiiXtEfaVAy1pAejnq1molIYcK7pM/nsmMrSrwDSOxyrm/oZnyoO/v7R/O pbng== 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; bh=noloVbG1A8ZsrnMduy/mr/VMQxHN8sRu/5pR+GM/oBU=; b=b6pMjZwuMHX3QcW6yP5wSbbt0UGCRTmFTspZy8yWTIZ+fXSc0qrSTeq3FvYWSa2IIf fVFEQjlzlhNv7dUDpuuFevjKgKuc4VbguY9NtmqF2vSRsKQ5RFIZEy9PM5m6jlxiNhcf zTXfITSJwGkqZfW1WvosOfsfa8AoHsGPoNAAffjBRmuQEyL8NeaErzwFGttVxxJ0qxdF J/sIPlIRgwxFQ8KKEbjBap3zIK8Dm+dQDcfFUf/Ll8VGvzuzURPbLwaqyDgN3UFcNa9/ 87Llq9tW7g2B2gGY9AovwJv1B4UPvpKz3vFbF3lfyIHOndWzNaevRtrzFNr6U8nM43Rb FysQ== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y24si613012ejc.613.2020.12.02.23.14.13; Wed, 02 Dec 2020 23:14:14 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388086AbgLCHOL (ORCPT + 15 others); Thu, 3 Dec 2020 02:14:11 -0500 Received: from mail.kernel.org ([198.145.29.99]:59432 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388075AbgLCHOL (ORCPT ); Thu, 3 Dec 2020 02:14:11 -0500 From: Vinod Koul Authentication-Results: mail.kernel.org; dkim=permerror (bad message/signature format) To: Mark Brown Cc: linux-arm-msm@vger.kernel.org, Bjorn Andersson , Vinod Koul , Andy Gross , Liam Girdwood , Rob Herring , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 2/2] regulator: qcom-rpmh: Add support for PM8350/PM8350c Date: Thu, 3 Dec 2020 12:42:44 +0530 Message-Id: <20201203071244.2652297-2-vkoul@kernel.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201203071244.2652297-1-vkoul@kernel.org> References: <20201203071244.2652297-1-vkoul@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add support from RPMH regulators found in PM8350 and PM8350c PMICs Signed-off-by: Vinod Koul --- drivers/regulator/qcom-rpmh-regulator.c | 62 +++++++++++++++++++++++++ 1 file changed, 62 insertions(+) -- 2.26.2 Reviewed-by: Bjorn Andersson diff --git a/drivers/regulator/qcom-rpmh-regulator.c b/drivers/regulator/qcom-rpmh-regulator.c index d488325499a9..800072b90efd 100644 --- a/drivers/regulator/qcom-rpmh-regulator.c +++ b/drivers/regulator/qcom-rpmh-regulator.c @@ -865,6 +865,60 @@ static const struct rpmh_vreg_init_data pm8150l_vreg_data[] = { {}, }; +static const struct rpmh_vreg_init_data pm8350_vreg_data[] = { + RPMH_VREG("smps1", "smp%s1", &pmic5_ftsmps510, "vdd-s1"), + RPMH_VREG("smps2", "smp%s2", &pmic5_ftsmps510, "vdd-s2"), + RPMH_VREG("smps3", "smp%s3", &pmic5_ftsmps510, "vdd-s3"), + RPMH_VREG("smps4", "smp%s4", &pmic5_ftsmps510, "vdd-s4"), + RPMH_VREG("smps5", "smp%s5", &pmic5_ftsmps510, "vdd-s5"), + RPMH_VREG("smps6", "smp%s6", &pmic5_ftsmps510, "vdd-s6"), + RPMH_VREG("smps7", "smp%s7", &pmic5_ftsmps510, "vdd-s7"), + RPMH_VREG("smps8", "smp%s8", &pmic5_ftsmps510, "vdd-s8"), + RPMH_VREG("smps9", "smp%s9", &pmic5_ftsmps510, "vdd-s9"), + RPMH_VREG("smps10", "smp%s10", &pmic5_hfsmps510, "vdd-s10"), + RPMH_VREG("smps11", "smp%s11", &pmic5_hfsmps510, "vdd-s11"), + RPMH_VREG("smps12", "smp%s12", &pmic5_hfsmps510, "vdd-s12"), + RPMH_VREG("ldo1", "ldo%s1", &pmic5_nldo, "vdd-l1-l4"), + RPMH_VREG("ldo2", "ldo%s2", &pmic5_pldo, "vdd-l2-l7"), + RPMH_VREG("ldo3", "ldo%s3", &pmic5_nldo, "vdd-l3-l5"), + RPMH_VREG("ldo4", "ldo%s4", &pmic5_nldo, "vdd-l1-l4"), + RPMH_VREG("ldo5", "ldo%s5", &pmic5_nldo, "vdd-l3-l5"), + RPMH_VREG("ldo6", "ldo%s6", &pmic5_nldo, "vdd-l6-l9-l10"), + RPMH_VREG("ldo7", "ldo%s7", &pmic5_pldo, "vdd-l2-l7"), + RPMH_VREG("ldo8", "ldo%s8", &pmic5_nldo, "vdd-l8"), + RPMH_VREG("ldo9", "ldo%s9", &pmic5_nldo, "vdd-l6-l9-l10"), + RPMH_VREG("ldo10", "ldo%s10", &pmic5_nldo, "vdd-l6-l9-l10"), + {}, +}; + +static const struct rpmh_vreg_init_data pm8350c_vreg_data[] = { + RPMH_VREG("smps1", "smp%s1", &pmic5_hfsmps510, "vdd-s1"), + RPMH_VREG("smps2", "smp%s2", &pmic5_ftsmps510, "vdd-s2"), + RPMH_VREG("smps3", "smp%s3", &pmic5_ftsmps510, "vdd-s3"), + RPMH_VREG("smps4", "smp%s4", &pmic5_ftsmps510, "vdd-s4"), + RPMH_VREG("smps5", "smp%s5", &pmic5_ftsmps510, "vdd-s5"), + RPMH_VREG("smps6", "smp%s6", &pmic5_ftsmps510, "vdd-s6"), + RPMH_VREG("smps7", "smp%s7", &pmic5_ftsmps510, "vdd-s7"), + RPMH_VREG("smps8", "smp%s8", &pmic5_ftsmps510, "vdd-s8"), + RPMH_VREG("smps9", "smp%s9", &pmic5_ftsmps510, "vdd-s9"), + RPMH_VREG("smps10", "smp%s10", &pmic5_ftsmps510, "vdd-s10"), + RPMH_VREG("ldo1", "ldo%s1", &pmic5_pldo_lv, "vdd-l1-l12"), + RPMH_VREG("ldo2", "ldo%s2", &pmic5_pldo_lv, "vdd-l2-l8"), + RPMH_VREG("ldo3", "ldo%s3", &pmic5_pldo, "vdd-l3-l4-l5-l7-l13"), + RPMH_VREG("ldo4", "ldo%s4", &pmic5_pldo, "vdd-l3-l4-l5-l7-l13"), + RPMH_VREG("ldo5", "ldo%s5", &pmic5_pldo, "vdd-l3-l4-l5-l7-l13"), + RPMH_VREG("ldo6", "ldo%s6", &pmic5_pldo, "vdd-l6-l9-l11"), + RPMH_VREG("ldo7", "ldo%s7", &pmic5_pldo, "vdd-l3-l4-l5-l7-l13"), + RPMH_VREG("ldo8", "ldo%s8", &pmic5_pldo_lv, "vdd-l2-l8"), + RPMH_VREG("ldo9", "ldo%s9", &pmic5_pldo, "vdd-l6-l9-l11"), + RPMH_VREG("ldo10", "ldo%s10", &pmic5_nldo, "vdd-l10"), + RPMH_VREG("ldo11", "ldo%s11", &pmic5_pldo, "vdd-l6-l9-l11"), + RPMH_VREG("ldo12", "ldo%s12", &pmic5_pldo_lv, "vdd-l1-l12"), + RPMH_VREG("ldo13", "ldo%s13", &pmic5_pldo, "vdd-l3-l4-l5-l7-l13"), + RPMH_VREG("bob", "bob%s1", &pmic5_bob, "vdd-bob"), + {}, +}; + static const struct rpmh_vreg_init_data pm8009_vreg_data[] = { RPMH_VREG("smps1", "smp%s1", &pmic5_hfsmps510, "vdd-s1"), RPMH_VREG("smps2", "smp%s2", &pmic5_hfsmps515, "vdd-s2"), @@ -984,6 +1038,14 @@ static const struct of_device_id __maybe_unused rpmh_regulator_match_table[] = { .compatible = "qcom,pm8150l-rpmh-regulators", .data = pm8150l_vreg_data, }, + { + .compatible = "qcom,pm8350-rpmh-regulators", + .data = pm8350_vreg_data, + }, + { + .compatible = "qcom,pm8350c-rpmh-regulators", + .data = pm8350c_vreg_data, + }, { .compatible = "qcom,pm8998-rpmh-regulators", .data = pm8998_vreg_data,