<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-toradex.git/drivers/clk/pistachio, branch v4.1.21</title>
<subtitle>Linux kernel for Apalis and Colibri modules</subtitle>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/'/>
<entry>
<title>clk: pistachio: correct critical clock list</title>
<updated>2015-09-21T17:05:31+00:00</updated>
<author>
<name>Damien.Horsley</name>
<email>Damien.Horsley@imgtec.com</email>
</author>
<published>2015-08-26T16:11:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=30840a6068fca6d56208b48dd83f448e509753ef'/>
<id>30840a6068fca6d56208b48dd83f448e509753ef</id>
<content type='text'>
commit d31ff5f7f3b142b8d1ebb3da89187c54cdf2bc71 upstream.

Current critical clock list for pistachio enables
only mips and sys clocks by default but there are
also other clocks that are not claimed by anyone and
needs to be enabled by default.

This patch updates the critical clocks that need
to be enabled by default.

Add a separate struct to distinguish the critical clocks
as listed:
1.) core clocks:
	a.) mips clock
2.) peripheral system clocks:
	a.) sys clock
	b.) sys_bus clock
	c.) DDR clock
	d.) ROM clock

Fixes: b35d7c33419c("CLK: Pistachio: Register core clocks")
Reviewed-by: Andrew Bresticker &lt;abrestic@chromium.org&gt;
Signed-off-by: Ezequiel Garcia &lt;ezequiel.garcia@imgtec.com&gt;
Signed-off-by: Damien.Horsley &lt;Damien.Horsley@imgtec.com&gt;
Signed-off-by: Govindraj Raja &lt;govindraj.raja@imgtec.com&gt;
Signed-off-by: Stephen Boyd &lt;sboyd@codeaurora.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit d31ff5f7f3b142b8d1ebb3da89187c54cdf2bc71 upstream.

Current critical clock list for pistachio enables
only mips and sys clocks by default but there are
also other clocks that are not claimed by anyone and
needs to be enabled by default.

This patch updates the critical clocks that need
to be enabled by default.

Add a separate struct to distinguish the critical clocks
as listed:
1.) core clocks:
	a.) mips clock
2.) peripheral system clocks:
	a.) sys clock
	b.) sys_bus clock
	c.) DDR clock
	d.) ROM clock

Fixes: b35d7c33419c("CLK: Pistachio: Register core clocks")
Reviewed-by: Andrew Bresticker &lt;abrestic@chromium.org&gt;
Signed-off-by: Ezequiel Garcia &lt;ezequiel.garcia@imgtec.com&gt;
Signed-off-by: Damien.Horsley &lt;Damien.Horsley@imgtec.com&gt;
Signed-off-by: Govindraj Raja &lt;govindraj.raja@imgtec.com&gt;
Signed-off-by: Stephen Boyd &lt;sboyd@codeaurora.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>clk: pistachio: Fix override of clk-pll settings from boot loader</title>
<updated>2015-09-21T17:05:31+00:00</updated>
<author>
<name>Zdenko Pulitika</name>
<email>zdenko.pulitika@imgtec.com</email>
</author>
<published>2015-08-26T16:11:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=d865d79dba304627da19806d454838ee80b6eae4'/>
<id>d865d79dba304627da19806d454838ee80b6eae4</id>
<content type='text'>
commit e53f21c761d141bbcbce06e9ddab3b4e0a828f2c upstream.

PLL enable callbacks are overriding PLL mode (int/frac) and
Noise reduction (on/off) settings set by the boot loader which
results in the incorrect clock rate.

PLL mode and noise reduction are defined by the DSMPD and DACPD bits
of the PLL control register. PLL .enable() callbacks enable PLL
by deasserting all power-down bits of the PLL control register,
including DSMPD and DACPD bits, which is not necessary since
these bits don't actually enable/disable PLL.

This commit fixes the problem by removing DSMPD and DACPD bits
from the "PLL enable" mask.

Fixes: 43049b0c83f17("CLK: Pistachio: Add PLL driver")
Reviewed-by: Andrew Bresitcker &lt;abrestic@chromium.org&gt;
Signed-off-by: Zdenko Pulitika &lt;zdenko.pulitika@imgtec.com&gt;
Signed-off-by: Govindraj Raja &lt;govindraj.raja@imgtec.com&gt;
Signed-off-by: Stephen Boyd &lt;sboyd@codeaurora.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit e53f21c761d141bbcbce06e9ddab3b4e0a828f2c upstream.

PLL enable callbacks are overriding PLL mode (int/frac) and
Noise reduction (on/off) settings set by the boot loader which
results in the incorrect clock rate.

PLL mode and noise reduction are defined by the DSMPD and DACPD bits
of the PLL control register. PLL .enable() callbacks enable PLL
by deasserting all power-down bits of the PLL control register,
including DSMPD and DACPD bits, which is not necessary since
these bits don't actually enable/disable PLL.

This commit fixes the problem by removing DSMPD and DACPD bits
from the "PLL enable" mask.

Fixes: 43049b0c83f17("CLK: Pistachio: Add PLL driver")
Reviewed-by: Andrew Bresitcker &lt;abrestic@chromium.org&gt;
Signed-off-by: Zdenko Pulitika &lt;zdenko.pulitika@imgtec.com&gt;
Signed-off-by: Govindraj Raja &lt;govindraj.raja@imgtec.com&gt;
Signed-off-by: Stephen Boyd &lt;sboyd@codeaurora.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>CLK: Pistachio: Register external clock gates</title>
<updated>2015-03-31T09:59:31+00:00</updated>
<author>
<name>Andrew Bresticker</name>
<email>abrestic@chromium.org</email>
</author>
<published>2015-02-25T03:56:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=a47eb351d2bd17cdf01de070f13cb12f6be4a0c5'/>
<id>a47eb351d2bd17cdf01de070f13cb12f6be4a0c5</id>
<content type='text'>
Register the clock gates for the external audio and ethernet
reference clocks provided by the top-level general control block.

Signed-off-by: Damien Horsley &lt;Damien.Horsley@imgtec.com&gt;
Signed-off-by: Andrew Bresticker &lt;abrestic@chromium.org&gt;
Cc: Mike Turquette &lt;mturquette@linaro.org&gt;
Cc: Stephen Boyd &lt;sboyd@codeaurora.org&gt;
Cc: devicetree@vger.kernel.org
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Cc: Ezequiel Garcia &lt;ezequiel.garcia@imgtec.com&gt;
Cc: James Hartley &lt;james.hartley@imgtec.com&gt;
Cc: James Hogan &lt;james.hogan@imgtec.com&gt;
Acked-by: Stephen Boyd &lt;sboyd@codeaurora.org&gt;
Patchwork: https://patchwork.linux-mips.org/patch/9321/
Signed-off-by: Ralf Baechle &lt;ralf@linux-mips.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Register the clock gates for the external audio and ethernet
reference clocks provided by the top-level general control block.

Signed-off-by: Damien Horsley &lt;Damien.Horsley@imgtec.com&gt;
Signed-off-by: Andrew Bresticker &lt;abrestic@chromium.org&gt;
Cc: Mike Turquette &lt;mturquette@linaro.org&gt;
Cc: Stephen Boyd &lt;sboyd@codeaurora.org&gt;
Cc: devicetree@vger.kernel.org
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Cc: Ezequiel Garcia &lt;ezequiel.garcia@imgtec.com&gt;
Cc: James Hartley &lt;james.hartley@imgtec.com&gt;
Cc: James Hogan &lt;james.hogan@imgtec.com&gt;
Acked-by: Stephen Boyd &lt;sboyd@codeaurora.org&gt;
Patchwork: https://patchwork.linux-mips.org/patch/9321/
Signed-off-by: Ralf Baechle &lt;ralf@linux-mips.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>CLK: Pistachio: Register system interface gate clocks</title>
<updated>2015-03-31T09:59:24+00:00</updated>
<author>
<name>Andrew Bresticker</name>
<email>abrestic@chromium.org</email>
</author>
<published>2015-02-25T03:56:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=8cb94af684ecfea38e8c9ff8d8519ff751a66968'/>
<id>8cb94af684ecfea38e8c9ff8d8519ff751a66968</id>
<content type='text'>
Register the system interface gate clocks provided by the peripheral
general control block.  These clocks gate register access for various
peripherals.

Signed-off-by: Damien Horsley &lt;Damien.Horsley@imgtec.com&gt;
Signed-off-by: Andrew Bresticker &lt;abrestic@chromium.org&gt;
Cc: Mike Turquette &lt;mturquette@linaro.org&gt;
Cc: Stephen Boyd &lt;sboyd@codeaurora.org&gt;
Cc: devicetree@vger.kernel.org
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Cc: Ezequiel Garcia &lt;ezequiel.garcia@imgtec.com&gt;
Cc: James Hartley &lt;james.hartley@imgtec.com&gt;
Cc: James Hogan &lt;james.hogan@imgtec.com&gt;
Acked-by: Stephen Boyd &lt;sboyd@codeaurora.org&gt;
Patchwork: https://patchwork.linux-mips.org/patch/9322/
Signed-off-by: Ralf Baechle &lt;ralf@linux-mips.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Register the system interface gate clocks provided by the peripheral
general control block.  These clocks gate register access for various
peripherals.

Signed-off-by: Damien Horsley &lt;Damien.Horsley@imgtec.com&gt;
Signed-off-by: Andrew Bresticker &lt;abrestic@chromium.org&gt;
Cc: Mike Turquette &lt;mturquette@linaro.org&gt;
Cc: Stephen Boyd &lt;sboyd@codeaurora.org&gt;
Cc: devicetree@vger.kernel.org
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Cc: Ezequiel Garcia &lt;ezequiel.garcia@imgtec.com&gt;
Cc: James Hartley &lt;james.hartley@imgtec.com&gt;
Cc: James Hogan &lt;james.hogan@imgtec.com&gt;
Acked-by: Stephen Boyd &lt;sboyd@codeaurora.org&gt;
Patchwork: https://patchwork.linux-mips.org/patch/9322/
Signed-off-by: Ralf Baechle &lt;ralf@linux-mips.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>CLK: Pistachio: Register peripheral clocks</title>
<updated>2015-03-31T09:59:17+00:00</updated>
<author>
<name>Andrew Bresticker</name>
<email>abrestic@chromium.org</email>
</author>
<published>2015-02-25T03:56:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=44960ab862a6db088f46fbf582d16a25fb999a83'/>
<id>44960ab862a6db088f46fbf582d16a25fb999a83</id>
<content type='text'>
Register the clocks generated by the peripheral clock controller.
This includes the clocks for several peripherals, including I2C,
PWM, watchdog, and timer.

Signed-off-by: Damien Horsley &lt;Damien.Horsley@imgtec.com&gt;
Signed-off-by: Andrew Bresticker &lt;abrestic@chromium.org&gt;
Cc: Mike Turquette &lt;mturquette@linaro.org&gt;
Cc: Stephen Boyd &lt;sboyd@codeaurora.org&gt;
Cc: devicetree@vger.kernel.org
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Cc: Ezequiel Garcia &lt;ezequiel.garcia@imgtec.com&gt;
Cc: James Hartley &lt;james.hartley@imgtec.com&gt;
Cc: James Hogan &lt;james.hogan@imgtec.com&gt;
Acked-by: Stephen Boyd &lt;sboyd@codeaurora.org&gt;
Patchwork: https://patchwork.linux-mips.org/patch/9320/
Signed-off-by: Ralf Baechle &lt;ralf@linux-mips.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Register the clocks generated by the peripheral clock controller.
This includes the clocks for several peripherals, including I2C,
PWM, watchdog, and timer.

Signed-off-by: Damien Horsley &lt;Damien.Horsley@imgtec.com&gt;
Signed-off-by: Andrew Bresticker &lt;abrestic@chromium.org&gt;
Cc: Mike Turquette &lt;mturquette@linaro.org&gt;
Cc: Stephen Boyd &lt;sboyd@codeaurora.org&gt;
Cc: devicetree@vger.kernel.org
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Cc: Ezequiel Garcia &lt;ezequiel.garcia@imgtec.com&gt;
Cc: James Hartley &lt;james.hartley@imgtec.com&gt;
Cc: James Hogan &lt;james.hogan@imgtec.com&gt;
Acked-by: Stephen Boyd &lt;sboyd@codeaurora.org&gt;
Patchwork: https://patchwork.linux-mips.org/patch/9320/
Signed-off-by: Ralf Baechle &lt;ralf@linux-mips.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>CLK: Pistachio: Register core clocks</title>
<updated>2015-03-31T09:59:10+00:00</updated>
<author>
<name>Andrew Bresticker</name>
<email>abrestic@chromium.org</email>
</author>
<published>2015-02-25T03:56:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=b35d7c33419cb0d000d23d3a5ab524ab8d3d8bf9'/>
<id>b35d7c33419cb0d000d23d3a5ab524ab8d3d8bf9</id>
<content type='text'>
Register the clocks generated by the core clock controller.
This includes the 7 PLLs and clocks for the CPU, RPU co-processor,
audio, WiFi, bluetooth, and several other peripherals.

The MIPS and PERIPH_SYS clocks must remain enabled at all times.

Signed-off-by: Damien Horsley &lt;Damien.Horsley@imgtec.com&gt;
Signed-off-by: Andrew Bresticker &lt;abrestic@chromium.org&gt;
Cc: Mike Turquette &lt;mturquette@linaro.org&gt;
Cc: Stephen Boyd &lt;sboyd@codeaurora.org&gt;
Cc: devicetree@vger.kernel.org
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Cc: Ezequiel Garcia &lt;ezequiel.garcia@imgtec.com&gt;
Cc: James Hartley &lt;james.hartley@imgtec.com&gt;
Cc: James Hogan &lt;james.hogan@imgtec.com&gt;
Acked-by: Stephen Boyd &lt;sboyd@codeaurora.org&gt;
Patchwork: https://patchwork.linux-mips.org/patch/9317/
Signed-off-by: Ralf Baechle &lt;ralf@linux-mips.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Register the clocks generated by the core clock controller.
This includes the 7 PLLs and clocks for the CPU, RPU co-processor,
audio, WiFi, bluetooth, and several other peripherals.

The MIPS and PERIPH_SYS clocks must remain enabled at all times.

Signed-off-by: Damien Horsley &lt;Damien.Horsley@imgtec.com&gt;
Signed-off-by: Andrew Bresticker &lt;abrestic@chromium.org&gt;
Cc: Mike Turquette &lt;mturquette@linaro.org&gt;
Cc: Stephen Boyd &lt;sboyd@codeaurora.org&gt;
Cc: devicetree@vger.kernel.org
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Cc: Ezequiel Garcia &lt;ezequiel.garcia@imgtec.com&gt;
Cc: James Hartley &lt;james.hartley@imgtec.com&gt;
Cc: James Hogan &lt;james.hogan@imgtec.com&gt;
Acked-by: Stephen Boyd &lt;sboyd@codeaurora.org&gt;
Patchwork: https://patchwork.linux-mips.org/patch/9317/
Signed-off-by: Ralf Baechle &lt;ralf@linux-mips.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>CLK: Pistachio: Add PLL driver</title>
<updated>2015-03-31T09:59:04+00:00</updated>
<author>
<name>Andrew Bresticker</name>
<email>abrestic@chromium.org</email>
</author>
<published>2015-02-25T03:56:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=43049b0c83f177083a56d69e64e47c82bcc04185'/>
<id>43049b0c83f177083a56d69e64e47c82bcc04185</id>
<content type='text'>
Add a driver for the integer (GF40LP_LAINT) and fractional (GF40LP_FRAC)
PLLs present on Pistachio.

Signed-off-by: Andrew Bresticker &lt;abrestic@chromium.org&gt;
Cc: Mike Turquette &lt;mturquette@linaro.org&gt;
Cc: Stephen Boyd &lt;sboyd@codeaurora.org&gt;
Cc: devicetree@vger.kernel.org
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Cc: Ezequiel Garcia &lt;ezequiel.garcia@imgtec.com&gt;
Cc: James Hartley &lt;james.hartley@imgtec.com&gt;
Cc: James Hogan &lt;james.hogan@imgtec.com&gt;
Acked-by: Stephen Boyd &lt;sboyd@codeaurora.org&gt;
Patchwork: https://patchwork.linux-mips.org/patch/9316/
Signed-off-by: Ralf Baechle &lt;ralf@linux-mips.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add a driver for the integer (GF40LP_LAINT) and fractional (GF40LP_FRAC)
PLLs present on Pistachio.

Signed-off-by: Andrew Bresticker &lt;abrestic@chromium.org&gt;
Cc: Mike Turquette &lt;mturquette@linaro.org&gt;
Cc: Stephen Boyd &lt;sboyd@codeaurora.org&gt;
Cc: devicetree@vger.kernel.org
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Cc: Ezequiel Garcia &lt;ezequiel.garcia@imgtec.com&gt;
Cc: James Hartley &lt;james.hartley@imgtec.com&gt;
Cc: James Hogan &lt;james.hogan@imgtec.com&gt;
Acked-by: Stephen Boyd &lt;sboyd@codeaurora.org&gt;
Patchwork: https://patchwork.linux-mips.org/patch/9316/
Signed-off-by: Ralf Baechle &lt;ralf@linux-mips.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>CLK: Add basic infrastructure for Pistachio clocks</title>
<updated>2015-03-31T09:58:56+00:00</updated>
<author>
<name>Andrew Bresticker</name>
<email>abrestic@chromium.org</email>
</author>
<published>2015-02-25T03:56:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=8e4b7721f61e70396ad8ec2d866c91300f2afbd1'/>
<id>8e4b7721f61e70396ad8ec2d866c91300f2afbd1</id>
<content type='text'>
Add helpers for registering clocks and clock providers on Pistachio.

Signed-off-by: Andrew Bresticker &lt;abrestic@chromium.org&gt;
Cc: Mike Turquette &lt;mturquette@linaro.org&gt;
Cc: Stephen Boyd &lt;sboyd@codeaurora.org&gt;
Cc: devicetree@vger.kernel.org
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Cc: Ezequiel Garcia &lt;ezequiel.garcia@imgtec.com&gt;
Cc: James Hartley &lt;james.hartley@imgtec.com&gt;
Cc: James Hogan &lt;james.hogan@imgtec.com&gt;
Acked-by: Stephen Boyd &lt;sboyd@codeaurora.org&gt;
Patchwork: https://patchwork.linux-mips.org/patch/9318/
Signed-off-by: Ralf Baechle &lt;ralf@linux-mips.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add helpers for registering clocks and clock providers on Pistachio.

Signed-off-by: Andrew Bresticker &lt;abrestic@chromium.org&gt;
Cc: Mike Turquette &lt;mturquette@linaro.org&gt;
Cc: Stephen Boyd &lt;sboyd@codeaurora.org&gt;
Cc: devicetree@vger.kernel.org
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Cc: Ezequiel Garcia &lt;ezequiel.garcia@imgtec.com&gt;
Cc: James Hartley &lt;james.hartley@imgtec.com&gt;
Cc: James Hogan &lt;james.hogan@imgtec.com&gt;
Acked-by: Stephen Boyd &lt;sboyd@codeaurora.org&gt;
Patchwork: https://patchwork.linux-mips.org/patch/9318/
Signed-off-by: Ralf Baechle &lt;ralf@linux-mips.org&gt;
</pre>
</div>
</content>
</entry>
</feed>
