All of lore.kernel.org
 help / color / mirror / Atom feed
* Question: about wm8904's regulator consumer nodes
@ 2014-01-21  7:10 Yang, Wenyou
  2014-01-21 18:10 ` Mark Brown
  0 siblings, 1 reply; 3+ messages in thread
From: Yang, Wenyou @ 2014-01-21  7:10 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Mark,

Sorry to bother you.

There a board with a act8865 PMIC and wm8904 codec chip. But wm8904's powers is not supplied by any regulators, it is supplied directly.

1./ If enabling the CONFIG_REGULATOR, the wm8904 fails to probe with following message.

	wm8904 0-001a: Failed to get supply 'DCVDD': -19

2./ If adding the consumer nodes as below, the wm8904 works OK.

                         i2c1: i2c at f0018000 {
                                 wm8904: wm8904 at 1a {
                                         compatible = "wm8904";
                                         reg = <0x1a>;
 
                                         DCVDD-supply = <&vcc_1v8_reg>;
                                         DBVDD-supply = <&vddana_reg>;
                                         AVDD-supply = <&vcc_1v8_reg>;
                                         CPVDD-supply = <&vcc_1v8_reg>;
                                         MICVDD-supply = <&vddana_reg>;
                                 };
                          };

	But the power of DCVDD, DBVDD, AVDD, CPVDD and MICVDD is not supplied by any regulators, not the above regulator nodes.

	How do I deal with this case? Could you give me some advice?


Thank you in advance.

Best Regards,
Wenyou Yang

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Question: about wm8904's regulator consumer nodes
  2014-01-21  7:10 Question: about wm8904's regulator consumer nodes Yang, Wenyou
@ 2014-01-21 18:10 ` Mark Brown
  2014-01-22 10:32   ` Yang, Wenyou
  0 siblings, 1 reply; 3+ messages in thread
From: Mark Brown @ 2014-01-21 18:10 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, Jan 21, 2014 at 07:10:24AM +0000, Yang, Wenyou wrote:

>                                          DCVDD-supply = <&vcc_1v8_reg>;
>                                          DBVDD-supply = <&vddana_reg>;
>                                          AVDD-supply = <&vcc_1v8_reg>;
>                                          CPVDD-supply = <&vcc_1v8_reg>;
>                                          MICVDD-supply = <&vddana_reg>;

> 	But the power of DCVDD, DBVDD, AVDD, CPVDD and MICVDD is not supplied by any regulators, not the above regulator nodes.

> 	How do I deal with this case? Could you give me some advice?

You should set up the supplies to point to whatever regulator is
supplying the power.  If there are supplies on the board which are
generated using fixed voltage regulators then you should register those
using the fixed regulator driver.  Recent kernels are more tolerant of
missing supplies but it's still better to be explicit if you can be.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140121/c4ed9767/attachment.sig>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Question: about wm8904's regulator consumer nodes
  2014-01-21 18:10 ` Mark Brown
@ 2014-01-22 10:32   ` Yang, Wenyou
  0 siblings, 0 replies; 3+ messages in thread
From: Yang, Wenyou @ 2014-01-22 10:32 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Mark,

> -----Original Message-----
> From: linux-arm-kernel [mailto:linux-arm-kernel-
> bounces at lists.infradead.org] On Behalf Of Mark Brown
> Sent: Wednesday, January 22, 2014 2:11 AM
> To: Yang, Wenyou
> Cc: linux-arm-kernel at lists.infradead.org
> Subject: Re: Question: about wm8904's regulator consumer nodes
> 
> On Tue, Jan 21, 2014 at 07:10:24AM +0000, Yang, Wenyou wrote:
> 
> >                                          DCVDD-supply = <&vcc_1v8_reg>;
> >                                          DBVDD-supply = <&vddana_reg>;
> >                                          AVDD-supply = <&vcc_1v8_reg>;
> >                                          CPVDD-supply = <&vcc_1v8_reg>;
> >                                          MICVDD-supply =
> > <&vddana_reg>;
> 
> > 	But the power of DCVDD, DBVDD, AVDD, CPVDD and MICVDD is not
> supplied by any regulators, not the above regulator nodes.
> 
> > 	How do I deal with this case? Could you give me some advice?
> 
> You should set up the supplies to point to whatever regulator is
> supplying the power.  If there are supplies on the board which are
> generated using fixed voltage regulators then you should register those
> using the fixed regulator driver.  Recent kernels are more tolerant of
> missing supplies but it's still better to be explicit if you can be.
Thank a lot for your answer.

Best Regards,
Wenyou Yang

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-01-22 10:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-21  7:10 Question: about wm8904's regulator consumer nodes Yang, Wenyou
2014-01-21 18:10 ` Mark Brown
2014-01-22 10:32   ` Yang, Wenyou

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.