Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1528354

Re: [PATCH V3 2/2] pinctrl: tegra: Add driver to configure voltage and power of io pads

From Laxman Dewangan <ldewangan@nvidia.com>
Newsgroups linux.kernel
Subject Re: [PATCH V3 2/2] pinctrl: tegra: Add driver to configure voltage and power of io pads
Date 2016-11-23 13:10 +0100
Message-ID <sGExc-4IH-19@gated-at.bofh.it> (permalink)
References <sGgEy-5YE-29@gated-at.bofh.it> <sGgEy-5YE-35@gated-at.bofh.it> <sGiQ1-7g9-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tuesday 22 November 2016 06:28 PM, Linus Walleij wrote:
> On Tue, Nov 22, 2016 at 11:20 AM, Laxman Dewangan <ldewangan@nvidia.com> wrote:
>
>> +               rinfo->regulator = devm_regulator_get_optional(dev,
>> +                                               soc_data->cfg[i].vsupply);
> Please just use devm_regulator_get().
>
> As has been discussed at lenth elsewhere "optional" in regulator_get_optional
> does *not* mean "software optional", it means "hardware optional".
>
> Such as a terminal that may have a voltage connected or not be
> connected to anything at all.
>
> If the system does not define a regulator you will anyway get a
> dummy regulator.
>
The issue with dummy regulator is that the other regulator APIs with 
dummy regulator fails.
Once we get the dummy regulator, there is no way to know whether the 
returned regulator is actual or dummy and when calling the 
regulator_get_voltage() it failed.

[    2.917176] pinctrl-t210-io-pad.0 supply vddio-audio-hv not found, 
using dummy regulator
[    2.925510] pinctrl-tegra-io-pad pinctrl-t210-io-pad.0: Failed to get 
voltage for rail vddio-aud2


Here, we need the regulator handle which can support the other regulator 
APIs.

In some of platforms, we do not use some of the io-pins and on this 
case, we do not connect the IO rail supply for these pins. So this is 
like a hardware optional.

If the IO pins are used then it need to have the proper regulator handle.
Missing regulator handle on DT will be like that IO pads are not used.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH V3 0/2] pinctrl: tegra: Add support for IO pad control Laxman Dewangan <ldewangan@nvidia.com> - 2016-11-22 11:40 +0100
  [PATCH V3 2/2] pinctrl: tegra: Add driver to configure voltage and power of io pads Laxman Dewangan <ldewangan@nvidia.com> - 2016-11-22 11:40 +0100
    Re: [PATCH V3 2/2] pinctrl: tegra: Add driver to configure voltage  and power of io pads Linus Walleij <linus.walleij@linaro.org> - 2016-11-22 14:00 +0100
      Re: [PATCH V3 2/2] pinctrl: tegra: Add driver to configure voltage  and power of io pads Laxman Dewangan <ldewangan@nvidia.com> - 2016-11-23 13:10 +0100
        Re: [PATCH V3 2/2] pinctrl: tegra: Add driver to configure voltage  and power of io pads Linus Walleij <linus.walleij@linaro.org> - 2016-11-24 15:20 +0100
          Re: [PATCH V3 2/2] pinctrl: tegra: Add driver to configure voltage  and power of io pads Laxman Dewangan <ldewangan@nvidia.com> - 2016-11-24 15:40 +0100
  [PATCH V3 1/2] pinctrl: tegra: Add DT binding for io pads control Laxman Dewangan <ldewangan@nvidia.com> - 2016-11-22 11:40 +0100

csiph-web