From: Matti Vaittinen <mazziesaccount@gmail.com>
To: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Cc: Lee Jones <lee@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 13/14] regulator: bd96801: Support ROHM BD96806 PMIC
Date: Wed, 2 Apr 2025 12:32:15 +0300 [thread overview]
Message-ID: <9a74816b-4a0b-4862-85e5-a10aa2eca586@gmail.com> (raw)
In-Reply-To: <734397c8bdb86419fbced3432c7074badaad6657.1742802856.git.mazziesaccount@gmail.com>
On 24/03/2025 10:57, Matti Vaittinen wrote:
> The ROHM BD96806 is from the software perspective almost identical to
> the ROHM BD96802. The main difference is different voltage tuning
> ranges.
>
> Add support differentiating these PMICs and provide correct voltages
> for both models.
>
> Signed-off-by: Matti Vaittinen <mazziesaccount@gmail.com>
>
> ---
> Revision history:
> v1 => :
> - No changes
> ---
> drivers/regulator/bd96801-regulator.c | 65 +++++++++++++++++++++++++++
> 1 file changed, 65 insertions(+)
>
> diff --git a/drivers/regulator/bd96801-regulator.c b/drivers/regulator/bd96801-regulator.c
> index d829289942f9..fb9e7c3314a3 100644
> --- a/drivers/regulator/bd96801-regulator.c
> +++ b/drivers/regulator/bd96801-regulator.c
> @@ -962,6 +962,70 @@ static const struct bd96801_pmic_data bd96805_data = {
> .num_regulators = 7,
> };
>
> +static const struct bd96801_pmic_data bd96806_data = {
> + .regulator_data = {
> + {
> + .desc = {
> + .name = "buck1",
> + .of_match = of_match_ptr("buck1"),
> + .regulators_node = of_match_ptr("regulators"),
> + .id = BD96801_BUCK1,
> + .ops = &bd96801_buck_ops,
> + .type = REGULATOR_VOLTAGE,
> + .linear_ranges = bd96805_tune_volts,
> + .n_linear_ranges = ARRAY_SIZE(bd96805_tune_volts),
> + .n_voltages = BD96805_BUCK_VOLTS,
> + .enable_reg = BD96801_REG_ENABLE,
> + .enable_mask = BD96801_BUCK1_EN_MASK,
> + .enable_is_inverted = true,
> + .vsel_reg = BD96801_BUCK1_VSEL_REG,
> + .vsel_mask = BD96805_BUCK_VSEL_MASK,
> + .ramp_reg = BD96801_BUCK1_VSEL_REG,
> + .ramp_mask = BD96801_MASK_RAMP_DELAY,
> + .ramp_delay_table = &buck_ramp_table[0],
> + .n_ramp_values = ARRAY_SIZE(buck_ramp_table),
> + .owner = THIS_MODULE,
> + },
> + .init_ranges = bd96801_buck_init_volts,
> + .num_ranges = ARRAY_SIZE(bd96801_buck_init_volts),
This is wrong. The BD96806 has similar voltage ranges as the BD96805, so
we should use the
.init_ranges = bd96805_buck_init_volts,
.num_ranges = ARRAY_SIZE(bd96805_buck_init_volts),
Also for buck2.
I'll fix this in v3 but wait for a couple of days to see if the rest of
the regulator patches gain comments :)
Yours,
-- Matti
next prev parent reply other threads:[~2025-04-02 9:32 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-24 8:54 [PATCH v2 00/14] Support ROHM Scalable PMIC family Matti Vaittinen
2025-03-24 8:54 ` [PATCH v2 01/14] dt-bindings: regulator: Add ROHM BD96802 PMIC Matti Vaittinen
2025-03-25 17:23 ` Conor Dooley
2025-03-26 6:15 ` Matti Vaittinen
2025-03-26 18:09 ` Conor Dooley
2025-03-24 8:54 ` [PATCH v2 02/14] dt-bindings: mfd: " Matti Vaittinen
2025-03-24 8:55 ` [PATCH v2 03/14] dt-bindings: mfd: bd96801: Add ROHM BD96805 Matti Vaittinen
2025-03-25 17:15 ` Conor Dooley
2025-03-24 8:55 ` [PATCH v2 04/14] dt-bindings: mfd: bd96802: Add ROHM BD96806 Matti Vaittinen
2025-03-25 17:14 ` Conor Dooley
2025-03-26 6:18 ` Matti Vaittinen
2025-03-24 8:55 ` [PATCH v2 05/14] mfd: rohm-bd96801: Add chip info Matti Vaittinen
2025-03-24 8:55 ` [PATCH v2 06/14] mfd: bd96801: Drop IC name from the regulator IRQ resources Matti Vaittinen
2025-03-24 8:55 ` [PATCH v2 07/14] regulator: bd96801: Drop IC name from the " Matti Vaittinen
2025-03-24 8:56 ` [PATCH v2 08/14] mfd: rohm-bd96801: Support ROHM BD96802 Matti Vaittinen
2025-03-24 8:56 ` [PATCH v2 09/14] regulator: bd96801: " Matti Vaittinen
2025-03-24 8:56 ` [PATCH v2 10/14] mfd: bd96801: Support ROHM BD96805 Matti Vaittinen
2025-03-24 8:56 ` [PATCH v2 11/14] regulator: bd96801: Support ROHM BD96805 PMIC Matti Vaittinen
2025-03-26 13:11 ` Mark Brown
2025-03-24 8:57 ` [PATCH v2 12/14] mfd: bd96801: Support ROHM BD96806 Matti Vaittinen
2025-03-24 8:57 ` [PATCH v2 13/14] regulator: bd96801: Support ROHM BD96806 PMIC Matti Vaittinen
2025-03-26 13:12 ` Mark Brown
2025-04-02 9:32 ` Matti Vaittinen [this message]
2025-03-24 8:57 ` [PATCH v2 14/14] MAINTAINERS: Add BD96802 specific header Matti Vaittinen
2025-04-04 15:43 ` [PATCH v2 00/14] Support ROHM Scalable PMIC family Lee Jones
2025-04-07 5:09 ` Matti Vaittinen
2025-04-08 8:05 ` Matti Vaittinen
2025-04-10 8:02 ` Lee Jones
2025-04-10 8:15 ` Matti Vaittinen
2025-04-09 4:38 ` Matti Vaittinen
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=9a74816b-4a0b-4862-85e5-a10aa2eca586@gmail.com \
--to=mazziesaccount@gmail.com \
--cc=broonie@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=lee@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=matti.vaittinen@fi.rohmeurope.com \
--cc=robh@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
all inboxes | Powered by JetHome®