All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ying-Chun Liu (PaulLiu) <paul.liu@linaro.org>
To: u-boot@lists.denx.de
Subject: [PATCH v2 1/2] power: regulator: add driver for ANATOP regulator
Date: Wed, 24 Mar 2021 10:01:28 +0800	[thread overview]
Message-ID: <058eec11-4d4f-e6b9-a1a4-05106979a59b@linaro.org> (raw)
In-Reply-To: <872fc093-626d-8324-fa2c-38d12714329f@seco.com>

Hi Sean,

Thanks for the review. I fix almost of the issues. Will upload the v3 soon.

Still have some questions.


Sean Anderson ? 2021/3/23 ??11:06 ??:
>
>
>
> ????if (anatop_reg->supply) {
> ??????? ret = regulator_set_value(anatop_reg->supply, uV + 150000);
> ??????? if (ret)
> ??????????? return ret;
> ????}
>

What is 150000? Is it the min_dropout_uV?

Should I set it to 125000 instead?



>
>
> ????
> ????ret = regulator_set_enable(sreg->supply, true);
> ????if (ret)
> ??????? return ret;
>

Since vin-supply is optional, I change it to

??????? ret = device_get_supply_regulator(dev, "vin-supply",
????????????????????????????????????????? &anatop_reg->supply);
??????? if (!ret) {
??????????????? ret = regulator_set_enable(anatop_reg->supply, true);
??????????????? if (ret)
??????????????????????? return ret;
??????? }

Is this ok?

> > +
> > +??? ret = ofnode_read_u32(dev_ofnode(dev),
>
> > +U_BOOT_DRIVER(anatop_regulator) = {
> > +??? .name = "anatop_regulator",
> > +??? .id = UCLASS_REGULATOR,
> > +??? .ops = &anatop_regulator_ops,
> > +??? .of_match = of_anatop_regulator_match_tbl,
> > +??? .plat_auto = sizeof(struct anatop_regulator),
> > +??? .probe = anatop_regulator_probe,
> > +};
> >


Yours,
Paul

  reply	other threads:[~2021-03-24  2:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-23 13:48 [PATCH v2 0/2] power: regulator: add driver for ANATOP regulator Ying-Chun Liu
2021-03-23 13:48 ` [PATCH v2 1/2] " Ying-Chun Liu
2021-03-23 15:06   ` Sean Anderson
2021-03-24  2:01     ` Ying-Chun Liu [this message]
2021-03-25 14:20       ` Sean Anderson
2021-03-23 13:48 ` [PATCH v2 2/2] doc: device-tree-bindings: regulator: anatop regulator Ying-Chun Liu

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=058eec11-4d4f-e6b9-a1a4-05106979a59b@linaro.org \
    --to=paul.liu@linaro.org \
    --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.