From patchwork Thu Nov 26 09:27:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 332939 Delivered-To: patch@linaro.org Received: by 2002:a92:5e16:0:0:0:0:0 with SMTP id s22csp1158052ilb; Thu, 26 Nov 2020 01:27:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJywVcs4+5z685g0puwipuJbs57UxKSljN8FexnBVtVHP3Yv3oWoMZ6tSw8uU/IGzGK271jC X-Received: by 2002:a17:906:7b8d:: with SMTP id s13mr1743584ejo.169.1606382878881; Thu, 26 Nov 2020 01:27:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606382878; cv=none; d=google.com; s=arc-20160816; b=ffOGqWkrn1uPsm0babfV5TevNdmVbx39FsZfSxSRBRVhXKy+qxCK0BRivZ5GxqGXre 3C/ew51jIxdH36vUB3jaknjzypDkbGNMRRr2LWqho2rnokEkZNL4CRudIjvFXkEhW3ra YndWLazrqW2K4pB1LpJpwMe9zvNXQF9KNPw0Xsfwty6uR+xM38BxEfP+cHl8XhFKMIUs kcPgZ4K6mKj5M8AedMw7oxkt7IxzcNzIKvZwilMbyCxJmLPK7dODZdx4IBGawbSybRpi geuJXG1NbJAMN9SwZZkv3X2D3Ohs/xGnuX6im8q7RBzy/n+jhPOnhwVuO3YP5mbpcIL3 lD0w== 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=ko5YC19jNSU9ANdpDeGn8/XTsOZ8FHcVcPAZUcRsxgQ=; b=EFyiHKGU8PhsDvmKANRjNuGNkqJo0O02RQrLUIynMBqmXL1ErNUINgkQkri5uVkNfc 0Pq27PdpXSEdldWTd397whsX+ko5cs671xgZiRO/7QGcDCad3yoZmgGQdLzQuIAz8/zY id899QnnSIRUq9dFXd5/X1eloUxGL9nXnXtiydZfU/yA8UYI51bk1UpJcgUtbfozCbOt VEjqIQozL64mqtSEuewR0J+FAtNWgh5B+EvAfwejBNhnwUUnleAGe+6FZ4eGcjrR8car Pve92DkxRlyeBOKIR6A2sDxQyloUHSUOatmDUF+a+BN8WaDpGgXDFIW4kMV87n+QNgQZ M/1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=QBxc00rS; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bi26si3009745edb.553.2020.11.26.01.27.58; Thu, 26 Nov 2020 01:27:58 -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=@kernel.org header.s=default header.b=QBxc00rS; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389463AbgKZJ10 (ORCPT + 6 others); Thu, 26 Nov 2020 04:27:26 -0500 Received: from mail.kernel.org ([198.145.29.99]:39392 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389459AbgKZJ1Y (ORCPT ); Thu, 26 Nov 2020 04:27:24 -0500 Received: from localhost.localdomain (unknown [122.179.79.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 86DB021741; Thu, 26 Nov 2020 09:27:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1606382843; bh=LD75lgaqb59sJzCpirku30QIpwZaYJz+X4dPKlsIfbU=; h=From:To:Cc:Subject:Date:From; b=QBxc00rSogAbcqw1+G6XbsBMwEwi5gvxRmftH1EPGpf8gZytWmhXJW5pOqZTAuqMl 34NGdeii4yi7EHe0/VFTLOeEwr/GxR2ATuMKep0LSGgQUM3rhD441o+IZmnzmTJf7U RvjCQT1CisK0hROPMnk3/p+ECOm+LcafQtyosHnY= From: Vinod Koul To: Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org, Vinod Koul , Andy Gross , Rob Herring , Rajendra Nayak , Manivannan Sadhasivam , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] dt-bindings: power: Add rpm power domain bindings for sdx55 Date: Thu, 26 Nov 2020 14:57:10 +0530 Message-Id: <20201126092711.1084518-1-vkoul@kernel.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add RPM power domain bindings for the SDX55 SoC Signed-off-by: Vinod Koul --- Documentation/devicetree/bindings/power/qcom,rpmpd.yaml | 1 + include/dt-bindings/power/qcom-rpmpd.h | 5 +++++ 2 files changed, 6 insertions(+) -- 2.26.2 Acked-by: Manivannan Sadhasivam diff --git a/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml b/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml index 8058955fb3b9..fe20a73f47ca 100644 --- a/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml +++ b/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml @@ -22,6 +22,7 @@ properties: - qcom,qcs404-rpmpd - qcom,sc7180-rpmhpd - qcom,sdm845-rpmhpd + - qcom,sdx55-rpmhpd - qcom,sm8150-rpmhpd - qcom,sm8250-rpmhpd diff --git a/include/dt-bindings/power/qcom-rpmpd.h b/include/dt-bindings/power/qcom-rpmpd.h index 5e61eaf73bdd..9fa2d66fca4a 100644 --- a/include/dt-bindings/power/qcom-rpmpd.h +++ b/include/dt-bindings/power/qcom-rpmpd.h @@ -15,6 +15,11 @@ #define SDM845_GFX 7 #define SDM845_MSS 8 +/* SDX55 Power Domain Indexes */ +#define SDX55_MSS 0 +#define SDX55_MX 1 +#define SDX55_CX 2 + /* SM8150 Power Domain Indexes */ #define SM8150_MSS 0 #define SM8150_EBI 1 From patchwork Thu Nov 26 09:30:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 333217 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=-19.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham 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 8FA7BC63777 for ; Thu, 26 Nov 2020 09:30:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 31DAC22202 for ; Thu, 26 Nov 2020 09:30:51 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="am75Q/j0" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729908AbgKZJah (ORCPT ); Thu, 26 Nov 2020 04:30:37 -0500 Received: from mail.kernel.org ([198.145.29.99]:41404 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726721AbgKZJah (ORCPT ); Thu, 26 Nov 2020 04:30:37 -0500 Received: from localhost.localdomain (unknown [122.179.79.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2585021D91; Thu, 26 Nov 2020 09:30:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1606383036; bh=peoe6om42rZkZB7Dd7Y61MeWRKgrzoucjoFoKjpcn6s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=am75Q/j0U7W2Q0z6GlSu3vTxnpq0UNAeKpIeTpeCzgD7ZHX6HNyLgb5yNriuo6/7s 1KhvHfLoERbZn8PKlu9vnaBBXKic+CsH1WaZPUlyAoBGiTadqlE1jUmu4A2+ZV+bCb BfwVxl922/5mApbxufwsPzIH+YCw6bjj9IOo4ZM8= From: Vinod Koul To: Mark Brown Cc: linux-arm-msm@vger.kernel.org, Bjorn Andersson , Vinod Koul , Andy Gross , Liam Girdwood , Rob Herring , Manivannan Sadhasivam , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 2/2] regulator: qcom-rpmh: Add support for SDX55 Date: Thu, 26 Nov 2020 15:00:18 +0530 Message-Id: <20201126093018.1085594-2-vkoul@kernel.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201126093018.1085594-1-vkoul@kernel.org> References: <20201126093018.1085594-1-vkoul@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add support from RPMH regulators found in SDX55 platform Signed-off-by: Vinod Koul --- drivers/regulator/qcom-rpmh-regulator.c | 31 +++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/drivers/regulator/qcom-rpmh-regulator.c b/drivers/regulator/qcom-rpmh-regulator.c index d488325499a9..e673d48b31a1 100644 --- a/drivers/regulator/qcom-rpmh-regulator.c +++ b/drivers/regulator/qcom-rpmh-regulator.c @@ -930,6 +930,33 @@ static const struct rpmh_vreg_init_data pm6150l_vreg_data[] = { {}, }; +static const struct rpmh_vreg_init_data pmx55_vreg_data[] = { + RPMH_VREG("smps1", "smp%s1", &pmic5_ftsmps510, "vdd-s1"), + RPMH_VREG("smps2", "smp%s2", &pmic5_hfsmps510, "vdd-s2"), + RPMH_VREG("smps3", "smp%s3", &pmic5_hfsmps510, "vdd-s3"), + RPMH_VREG("smps4", "smp%s4", &pmic5_hfsmps510, "vdd-s4"), + RPMH_VREG("smps5", "smp%s5", &pmic5_hfsmps510, "vdd-s5"), + RPMH_VREG("smps6", "smp%s6", &pmic5_ftsmps510, "vdd-s6"), + RPMH_VREG("smps7", "smp%s7", &pmic5_hfsmps510, "vdd-s7"), + RPMH_VREG("ldo1", "ldo%s1", &pmic5_nldo, "vdd-l1-l2"), + RPMH_VREG("ldo2", "ldo%s2", &pmic5_nldo, "vdd-l1-l2"), + RPMH_VREG("ldo3", "ldo%s3", &pmic5_nldo, "vdd-l3-l9"), + RPMH_VREG("ldo4", "ldo%s4", &pmic5_nldo, "vdd-l4-l12"), + RPMH_VREG("ldo5", "ldo%s5", &pmic5_pldo, "vdd-l5-l6"), + RPMH_VREG("ldo6", "ldo%s6", &pmic5_pldo, "vdd-l5-l6"), + RPMH_VREG("ldo7", "ldo%s7", &pmic5_nldo, "vdd-l7-l8"), + RPMH_VREG("ldo8", "ldo%s8", &pmic5_nldo, "vdd-l7-l8"), + RPMH_VREG("ldo9", "ldo%s9", &pmic5_nldo, "vdd-l3-l9"), + RPMH_VREG("ldo10", "ldo%s10", &pmic5_pldo, "vdd-l10-l11-l13"), + RPMH_VREG("ldo11", "ldo%s11", &pmic5_pldo, "vdd-l10-l11-l13"), + RPMH_VREG("ldo12", "ldo%s12", &pmic5_nldo, "vdd-l4-l12"), + RPMH_VREG("ldo13", "ldo%s13", &pmic5_pldo, "vdd-l10-l11-l13"), + RPMH_VREG("ldo14", "ldo%s14", &pmic5_nldo, "vdd-l14"), + RPMH_VREG("ldo15", "ldo%s15", &pmic5_nldo, "vdd-l15"), + RPMH_VREG("ldo16", "ldo%s16", &pmic5_pldo, "vdd-l16"), + {}, +}; + static int rpmh_regulator_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; @@ -1000,6 +1027,10 @@ static const struct of_device_id __maybe_unused rpmh_regulator_match_table[] = { .compatible = "qcom,pm6150l-rpmh-regulators", .data = pm6150l_vreg_data, }, + { + .compatible = "qcom,pmx55-rpmh-regulators", + .data = pmx55_vreg_data, + }, {} }; MODULE_DEVICE_TABLE(of, rpmh_regulator_match_table);