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


Groups > linux.kernel > #1680885

Re: Where to update regulator register with initial voltage set by HW

From Mark Brown <broonie@kernel.org>
Newsgroups linux.kernel
Subject Re: Where to update regulator register with initial voltage set by HW
Date 2017-07-04 13:30 +0200
Message-ID <tZubL-7zh-3@gated-at.bofh.it> (permalink)
References (4 earlier) <tY3dE-5r3-3@gated-at.bofh.it> <tZbiP-3ib-49@gated-at.bofh.it> <tZbC9-3oO-3@gated-at.bofh.it> <tZbC9-3oO-1@gated-at.bofh.it> <tZtIJ-7a9-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Tue, Jul 04, 2017 at 12:58:04PM +0200, Waldemar Rymarkiewicz wrote:
> On 3 July 2017 at 17:36, Mark Brown <broonie@kernel.org> wrote:
> > On Mon, Jul 03, 2017 at 05:33:03PM +0200, Waldemar Rymarkiewicz wrote:

> >> I've asked also on TI forum if this is typical to the regulator not to
> >> determine the startup voltage but still waiting for feedback. Anyway,
> >> if this is the case I guess a driver is a good place to update
> >> register before we register to the regulator framework.

> > It's really unusual to have a device that has the voltage changable by
> > register write at runtime where the current state can't be read back.

> or you did not realise that this is initialised by bootloader for example.

No, it's just incredibly unusual to have hardware that does this.

> After investigating this issue a bit more I've found that this is
> rather typical for power regulators not to update a register with
> startup voltage set by a feedback resistor divider as it would cost
> extra circuit.  So, I assume that most likely a bootloader normally
> initializes power regulator in case it's needed eg. if it's supplying
> CPU which is DVS-enabled.

The majority of things that have configuration based on bias resistors
just wouldn't have any register based control at all, or wouldn't have
any physical readback (for really old devices that were concerned with
the I2C licensing issues).  I'm pretty surprised to see such a
combination in a current system.

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


Thread

Re: Where to update regulator register with initial voltage set by HW Mark Brown <broonie@kernel.org> - 2017-07-03 17:20 +0200
  Re: Where to update regulator register with initial voltage set by HW Mark Brown <broonie@kernel.org> - 2017-07-03 17:40 +0200
    Re: Where to update regulator register with initial voltage set by HW Waldemar Rymarkiewicz <waldemar.rymarkiewicz@gmail.com> - 2017-07-04 13:00 +0200
      Re: Where to update regulator register with initial voltage set by HW Mark Brown <broonie@kernel.org> - 2017-07-04 13:30 +0200
  Re: Where to update regulator register with initial voltage set by HW Waldemar Rymarkiewicz <waldemar.rymarkiewicz@gmail.com> - 2017-07-03 17:40 +0200

csiph-web