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

From: Laxman Dewangan
Date: Thu Nov 24 2016 - 09:36:51 EST



On Thursday 24 November 2016 07:41 PM, Linus Walleij wrote:
On Wed, Nov 23, 2016 at 12:42 PM, Laxman Dewangan <ldewangan@xxxxxxxxxx> wrote:

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.
OK I buy that argument, unless Mark (Brown) has comments.


BTW, I resolved this in different way in V4 which I sent today, if regulator_get() succeed for dummy then regulator_get_voltage() failed and if it failed then assume that it is dummy and just ignore the further handling based on regulator.

So when we really need the configuration based on voltage, we must supply the regulator handle.