linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: skakit@codeaurora.org
To: Matthias Kaehlcke <mka@chromium.org>
Cc: Andy Gross <agross@kernel.org>,
	Bjorn Andersson <bjorn.andersson@linaro.org>,
	Liam Girdwood <lgirdwood@gmail.com>,
	Mark Brown <broonie@kernel.org>, Rob Herring <robh+dt@kernel.org>,
	rnayak@codeaurora.org, linux-arm-msm@vger.kernel.org,
	linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
	kgunda@codeaurora.org, David Collins <collinsd@codeaurora.org>
Subject: Re: [PATCH V2 2/5] regulator: qcom-rpmh: Add PM7325/PMR735A regulator support
Date: Fri, 19 Mar 2021 13:27:32 +0530	[thread overview]
Message-ID: <bdd081f3ec5df5f6ecb2a4c4d826778b@codeaurora.org> (raw)
In-Reply-To: <YFEMezCRjK2W6THZ@google.com>

Hi Matthias,

Thanks for reviewing the patches!

On 2021-03-17 01:22, Matthias Kaehlcke wrote:
> On Mon, Mar 15, 2021 at 07:24:11PM +0530, satya priya wrote:
>> Add support for PM7325/PMR735A regulators. This ensures
>> that consumers are able to modify the physical state of PMIC
>> regulators.
>> 
>> Signed-off-by: satya priya <skakit@codeaurora.org>
>> ---
>> Changes in V2:
>>  - No change.
>> 
>>  drivers/regulator/qcom-rpmh-regulator.c | 53 
>> ++++++++++++++++++++++++++++++++-
>>  1 file changed, 52 insertions(+), 1 deletion(-)
>> 
>> diff --git a/drivers/regulator/qcom-rpmh-regulator.c 
>> b/drivers/regulator/qcom-rpmh-regulator.c
>> index 9471890..3509523 100644
>> --- a/drivers/regulator/qcom-rpmh-regulator.c
>> +++ b/drivers/regulator/qcom-rpmh-regulator.c
>> @@ -1,5 +1,5 @@
>>  // SPDX-License-Identifier: GPL-2.0
>> -// Copyright (c) 2018-2019, The Linux Foundation. All rights 
>> reserved.
>> +// Copyright (c) 2018-2021, The Linux Foundation. All rights 
>> reserved.
>> 
>>  #define pr_fmt(fmt) "%s: " fmt, __func__
>> 
>> @@ -1042,6 +1042,49 @@ static const struct rpmh_vreg_init_data 
>> pmx55_vreg_data[] = {
>>  	{},
>>  };
>> 
>> +static const struct rpmh_vreg_init_data pm7325_vreg_data[] = {
>> +	RPMH_VREG("smps1",  "smp%s1",  &pmic5_hfsmps510, "vdd-s1"),
>> +	RPMH_VREG("smps2",  "smp%s2",  &pmic5_ftsmps520, "vdd-s2"),
>> +	RPMH_VREG("smps3",  "smp%s3",  &pmic5_ftsmps520, "vdd-s3"),
>> +	RPMH_VREG("smps4",  "smp%s4",  &pmic5_ftsmps520, "vdd-s4"),
>> +	RPMH_VREG("smps5",  "smp%s5",  &pmic5_ftsmps520, "vdd-s5"),
>> +	RPMH_VREG("smps6",  "smp%s6",  &pmic5_ftsmps520, "vdd-s6"),
>> +	RPMH_VREG("smps7",  "smp%s7",  &pmic5_ftsmps520, "vdd-s7"),
>> +	RPMH_VREG("smps8",  "smp%s8",  &pmic5_hfsmps510, "vdd-s8"),
>> +	RPMH_VREG("ldo1",   "ldo%s1",  &pmic5_nldo,      
>> "vdd-l1-l4-l12-l15"),
>> +	RPMH_VREG("ldo2",   "ldo%s2",  &pmic5_pldo,      "vdd-l2-l7"),
>> +	RPMH_VREG("ldo3",   "ldo%s3",  &pmic5_nldo,      "vdd-l3"),
>> +	RPMH_VREG("ldo4",   "ldo%s4",  &pmic5_nldo,      
>> "vdd-l1-l4-l12-l15"),
>> +	RPMH_VREG("ldo5",   "ldo%s5",  &pmic5_nldo,      "vdd-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"),
>> +	RPMH_VREG("ldo11",  "ldo%s11", &pmic5_pldo_lv,   
>> "vdd-l11-l17-l18-l19"),
>> +	RPMH_VREG("ldo12",  "ldo%s12", &pmic5_nldo,      
>> "vdd-l1-l4-l12-l15"),
>> +	RPMH_VREG("ldo13",  "ldo%s13", &pmic5_nldo,      "vdd-l13"),
>> +	RPMH_VREG("ldo14",  "ldo%s14", &pmic5_nldo,      "vdd-l14-l16"),
>> +	RPMH_VREG("ldo15",  "ldo%s15", &pmic5_nldo,      
>> "vdd-l1-l4-l12-l15"),
>> +	RPMH_VREG("ldo16",  "ldo%s16", &pmic5_nldo,      "vdd-l14-l16"),
>> +	RPMH_VREG("ldo17",  "ldo%s17", &pmic5_pldo_lv,   
>> "vdd-l11-l17-l18-l19"),
>> +	RPMH_VREG("ldo18",  "ldo%s18", &pmic5_pldo_lv,   
>> "vdd-l11-l17-l18-l19"),
>> +	RPMH_VREG("ldo19",  "ldo%s19", &pmic5_pldo_lv,   
>> "vdd-l11-l17-l18-l19"),
>> +};
> 
> Could you help me understand these funky supply names? I see other RPMh
> regulators also have them, so they are probably totally fine, but it
> isn't clear to me what exactly the names represent. Apparently the LDO
> itself is in the supply name, but many LDOs also list others.

These supply names are taken from powergrid. They are basically the 
parent supply names.
For example ldo2 and ldo7 have the parent supply vdd-l2-l7. Hence we 
gave supply name vdd-l2-l7 for these 2 regulators.

Thanks,
Satya Priya

  reply	other threads:[~2021-03-19  7:58 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-15 13:54 [PATCH V2 0/5] Add PM7325/PM8350C/PMR735A regulator support satya priya
2021-03-15 13:54 ` [PATCH V2 1/5] regulator: qcom-rpmh: Add pmic5_ftsmps520 buck satya priya
2021-03-16 19:22   ` Matthias Kaehlcke
2021-03-15 13:54 ` [PATCH V2 2/5] regulator: qcom-rpmh: Add PM7325/PMR735A regulator support satya priya
2021-03-16 19:52   ` Matthias Kaehlcke
2021-03-19  7:57     ` skakit [this message]
2021-03-15 13:54 ` [PATCH V2 3/5] arm64: dts: qcom: sc7280: Add RPMh regulators for sc7280-idp satya priya
2021-03-16 23:26   ` Matthias Kaehlcke
2021-03-19  8:00     ` skakit
2021-03-15 13:54 ` [PATCH V2 4/5] dt-bindings: regulator: Convert regulator bindings to YAML format satya priya
2021-03-16 17:54   ` Rob Herring
2021-03-16 18:47   ` Matthias Kaehlcke
2021-03-19  7:58     ` skakit
2021-03-15 13:54 ` [PATCH V2 5/5] dt-bindings: regulator: Add compatibles for PM7325/PMR735A satya priya
2021-03-16 23:32   ` Matthias Kaehlcke
2021-03-15 15:20 ` [PATCH V2 0/5] Add PM7325/PM8350C/PMR735A regulator support Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bdd081f3ec5df5f6ecb2a4c4d826778b@codeaurora.org \
    --to=skakit@codeaurora.org \
    --cc=agross@kernel.org \
    --cc=bjorn.andersson@linaro.org \
    --cc=broonie@kernel.org \
    --cc=collinsd@codeaurora.org \
    --cc=devicetree@vger.kernel.org \
    --cc=kgunda@codeaurora.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mka@chromium.org \
    --cc=rnayak@codeaurora.org \
    --cc=robh+dt@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).