Thread (38 messages) 38 messages, 8 authors, 2014-07-16

[PATCH 01/13] clk: tegra: Add binding for the Tegra124 DFLL clocksource

From: Thierry Reding <hidden>
Date: 2014-07-14 09:24:50
Also in: linux-devicetree, linux-pm, linux-tegra, lkml

On Mon, Jul 14, 2014 at 10:12:33AM +0100, Mark Brown wrote:
On Mon, Jul 14, 2014 at 10:38:56AM +0200, Thierry Reding wrote:
quoted
On Fri, Jul 11, 2014 at 08:21:27PM +0300, Tuomas Tynkkynen wrote:
quoted
quoted
I don't think we can assume that each selector maps to a concrete register
value, though I'm not sure. include/linux/regulator/driver.h documents for
@list_voltage "Selectors range from zero to one less
regulator_desc.n_voltages." but maybe the consumer API could take different
values.
quoted
I don't think the regulator API makes any guarantees that the selector
corresponds to a register value. Adding Mark Brown, maybe he can help
figure out the best way to do this.
The selector value is opaque, it's entirely up to the driver to define
it.  If you could tell me what "this" is I might be able to advise on
how to do it.
Tegra124 (and later, also some earlier variants) have this DFLL clock
that can program a PMIC automatically depending on the CPU frequency.
This DT binding did propose putting this into device tree as a table of
<frequency value> pairs where the frequency corresponds to the CPU
frequency and the value is the register value to be programmed into the
PMIC by the DFLL hardware (there are two additional properties to define
the slave address and the register offset).

Andrew proposed that this table could instead be built by using
regulator_list_voltage() instead. However, due to the fact that the DFLL
hardware needs to know the immediate value to write into a register, the
requirement would be for a 1:1 mapping between selector and register
value. Given that the API needs to cover the general case I don't see
how it could practically ensure this.

Thierry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140714/b65d67c0/attachment.sig>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help