From: "Vaittinen, Matti" <Matti.Vaittinen@fi.rohmeurope.com>
To: Marek Vasut <marex@denx.de>, Heiko Thiery <heiko.thiery@gmail.com>
Cc: "u-boot@lists.denx.de" <u-boot@lists.denx.de>,
"sbabic@denx.de" <sbabic@denx.de>,
Fabio Estevam <festevam@denx.de>, Peng Fan <peng.fan@nxp.com>,
Michael Nazzareno Trimarchi <michael@amarulasolutions.com>
Subject: Re: [PATCH v3 2/2] pmic: pca9450: Add regulator driver
Date: Mon, 20 Jun 2022 05:03:03 +0000 [thread overview]
Message-ID: <8e20b2dd-7467-3f4d-b348-a96e370d9f5d@fi.rohmeurope.com> (raw)
In-Reply-To: <546785e9-19d6-70ea-bc1c-895659058799@denx.de>
On 6/20/22 05:47, Marek Vasut wrote:
> On 6/19/22 18:01, Heiko Thiery wrote:
>
> [...]
>
>>>> +static int pca9450_set_value(struct udevice *dev, int uvolt)
>>>> +{
>>>> + struct pca9450_plat *plat = dev_get_plat(dev);
>>>> + unsigned int sel;
>>>> + int i, found = 0;
>>>> +
>>>> + /*
>>>> + * An under/overshooting may occur if voltage is changed for
>>>> other
>>>> + * regulators but buck 1,2,3 or 4 when regulator is enabled.
>>>> Prevent
>>>> + * change to protect the HW
>>>> + */
>>>
>>> To be able to configure the pmic/regulators during startup by the dm
>>> (regulators_enable_boot_on) I think we have to
>>> remove the checks for the permit. Otherwise the automatic
>>> configuration on hand
>>> of the dtb settings won't work.
>>>
>>
>> I tried to find the root of the comment above. Since the driver is
>> probably based
>> on the ROHM BD71837 and this comment can be found there as well, the
>> limitation probably comes from this type.
>>
>> Can this be?
>
> Most likely this comment is bogus copy-paste from the ROHM PMIC driver.
>
> [...]
I've authored this commit in the ROHM BD71837 driver. The ROHM PMIC do
really have this limitation - only BUCKs 1,2,3 and 4 have been designed
for changing the voltage when enabled.
I do not know about pca9450 - but I can assure that if copy-paste has
happened the direction has indeed been ROHM driver => pca9450 :)
Best Regards
-- Matti Vaittinen
--
The Linux Kernel guy at ROHM Semiconductors
Matti Vaittinen, Linux device drivers
ROHM Semiconductors, Finland SWDC
Kiviharjunlenkki 1E
90220 OULU
FINLAND
~~ this year is the year of a signature writers block ~~
next prev parent reply other threads:[~2022-06-20 5:03 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-12 22:39 [PATCH v3 1/2] pmic: pca9450: Add upstream regulators subnode match Marek Vasut
2022-04-12 22:39 ` [PATCH v3 2/2] pmic: pca9450: Add regulator driver Marek Vasut
2022-06-19 15:16 ` Heiko Thiery
2022-06-19 16:01 ` Heiko Thiery
2022-06-20 2:47 ` Marek Vasut
2022-06-20 5:03 ` Vaittinen, Matti [this message]
2022-05-20 3:10 [PATCH v3 1/2] pmic: pca9450: Add upstream regulators subnode match Marek Vasut
2022-05-20 3:10 ` [PATCH v3 2/2] pmic: pca9450: Add regulator driver Marek Vasut
2022-05-20 13:44 ` sbabic
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=8e20b2dd-7467-3f4d-b348-a96e370d9f5d@fi.rohmeurope.com \
--to=matti.vaittinen@fi.rohmeurope.com \
--cc=festevam@denx.de \
--cc=heiko.thiery@gmail.com \
--cc=marex@denx.de \
--cc=michael@amarulasolutions.com \
--cc=peng.fan@nxp.com \
--cc=sbabic@denx.de \
--cc=u-boot@lists.denx.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.