<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/arch/mips/ath79/clock.c, branch linux-4.10.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.10.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.10.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2016-09-13T12:13:26Z</updated>
<entry>
<title>MIPS: ath79: Fix test for error return of clk_register_fixed_factor().</title>
<updated>2016-09-13T12:13:26Z</updated>
<author>
<name>Amitoj Kaur Chawla</name>
</author>
<published>2016-08-12T03:06:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e3b23148fd8af277fd55068183ed3ce4c8f51aa5'/>
<id>urn:sha1:e3b23148fd8af277fd55068183ed3ce4c8f51aa5</id>
<content type='text'>
clk_register_fixed_factor returns an ERR_PTR in case of an error and
should have an IS_ERR check instead of a null check.

The Coccinelle semantic patch used to find this issue is as follows:
@@
expression e;
statement S;
@@

*e = clk_register_fixed_factor(...);
if (!e) S

Signed-off-by: Amitoj Kaur Chawla &lt;amitoj1606@gmail.com&gt;
Cc: julia.lawall@lip6.fr
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/13894/
Signed-off-by: Ralf Baechle &lt;ralf@linux-mips.org&gt;
</content>
</entry>
<entry>
<title>MIPS: ath79: Remove CLK_IS_ROOT</title>
<updated>2016-05-13T13:30:25Z</updated>
<author>
<name>Stephen Boyd</name>
</author>
<published>2016-04-20T01:33:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9c938a0df074d4100de38ff967b97451f9b9ae7e'/>
<id>urn:sha1:9c938a0df074d4100de38ff967b97451f9b9ae7e</id>
<content type='text'>
This flag is a no-op now (see commit 47b0eeb3dc8a "clk: Deprecate
CLK_IS_ROOT", 2016-02-02) so remove it.

Signed-off-by: Stephen Boyd &lt;sboyd@codeaurora.org&gt;
Cc: Antony Pavlov &lt;antonynpavlov@gmail.com&gt;
Cc: linux-kernel@vger.kernel.org
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/13133/
Signed-off-by: Ralf Baechle &lt;ralf@linux-mips.org&gt;
</content>
</entry>
<entry>
<title>MIPS: ath79: update devicetree clock support for AR9331</title>
<updated>2016-05-13T12:01:46Z</updated>
<author>
<name>Antony Pavlov</name>
</author>
<published>2016-03-17T03:34:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5ae5c452e3361612cd8182eb8bdfecf0ebf42288'/>
<id>urn:sha1:5ae5c452e3361612cd8182eb8bdfecf0ebf42288</id>
<content type='text'>
Signed-off-by: Antony Pavlov &lt;antonynpavlov@gmail.com&gt;
Cc: Gabor Juhos &lt;juhosg@openwrt.org&gt;
Cc: Alban Bedel &lt;albeu@free.fr&gt;
Cc: Michael Turquette &lt;mturquette@baylibre.com&gt;
Cc: Stephen Boyd &lt;sboyd@codeaurora.org&gt;
Cc: Rob Herring &lt;robh+dt@kernel.org&gt;
Cc: linux-clk@vger.kernel.org
Cc: linux-mips@linux-mips.org
Cc: devicetree@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/12879/
Signed-off-by: Ralf Baechle &lt;ralf@linux-mips.org&gt;
</content>
</entry>
<entry>
<title>MIPS: ath79: update devicetree clock support for AR9132</title>
<updated>2016-05-13T12:01:45Z</updated>
<author>
<name>Antony Pavlov</name>
</author>
<published>2016-03-17T03:34:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3bdf1071ba7de08c55a5cce54964ded7c0c8540d'/>
<id>urn:sha1:3bdf1071ba7de08c55a5cce54964ded7c0c8540d</id>
<content type='text'>
Current ath79 clock.c code does not read reference clock and
pll setup from devicetree. E.g. you can set any clock rate value
in board DTS but it will have no effect on the real clk calculation.

This patch fixes some AR9132 devicetree clock support defects:

  * clk initialization function ath79_clocks_init_dt_ng()
    is introduced; it actually gets pll block base register
    address and reference clock from devicetree;
  * pll register parsing code is moved to the separate
    ar724x_clk_init() function; this function
    can be called from platform code or from devicetree code.

Also mips_hpt_frequency value is set from dt, so the appropriate
clock parameter is added to the cpu@0 devicetree node.

The same approach can be used for adding AR9331 devicetree support.

Signed-off-by: Antony Pavlov &lt;antonynpavlov@gmail.com&gt;
Cc: Gabor Juhos &lt;juhosg@openwrt.org&gt;
Cc: Alban Bedel &lt;albeu@free.fr&gt;
Cc: Michael Turquette &lt;mturquette@baylibre.com&gt;
Cc: Stephen Boyd &lt;sboyd@codeaurora.org&gt;
Cc: Rob Herring &lt;robh+dt@kernel.org&gt;
Cc: linux-clk@vger.kernel.org
Cc: linux-mips@linux-mips.org
Cc: devicetree@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/12876/
Signed-off-by: Ralf Baechle &lt;ralf@linux-mips.org&gt;
</content>
</entry>
<entry>
<title>MIPS: ath79: Introduce &lt;dt-bindings/clock/ath79-clk.h&gt;</title>
<updated>2016-05-13T12:01:45Z</updated>
<author>
<name>Antony Pavlov</name>
</author>
<published>2016-03-17T03:34:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=af5ad0de22480a452049e0e942b10af77ef60530'/>
<id>urn:sha1:af5ad0de22480a452049e0e942b10af77ef60530</id>
<content type='text'>
The include/dt-bindings/clock/ath79-clk.h header file
is introduced so we can use symbolic identifiers for SoC clocks.

Signed-off-by: Antony Pavlov &lt;antonynpavlov@gmail.com&gt;
Cc: Gabor Juhos &lt;juhosg@openwrt.org&gt;
Cc: Alban Bedel &lt;albeu@free.fr&gt;
Cc: Michael Turquette &lt;mturquette@baylibre.com&gt;
Cc: Stephen Boyd &lt;sboyd@codeaurora.org&gt;
Cc: Rob Herring &lt;robh+dt@kernel.org&gt;
Cc: linux-mips@linux-mips.org
Cc: linux-clk@vger.kernel.org
Cc: devicetree@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/12875/
Signed-off-by: Ralf Baechle &lt;ralf@linux-mips.org&gt;
</content>
</entry>
<entry>
<title>MIPS: ath79: Fix the ar913x reference clock rate</title>
<updated>2016-04-03T10:32:10Z</updated>
<author>
<name>Alban Bedel</name>
</author>
<published>2016-03-17T03:34:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f4c87b7a944adcc34f67a925d50889088fd87992'/>
<id>urn:sha1:f4c87b7a944adcc34f67a925d50889088fd87992</id>
<content type='text'>
The reference clock on ar913x is at 40MHz and not 5MHz. The current
implementation use the wrong reference rate because it doesn't take
the PLL divider in account. But if we fix the code to use the divider
it becomes identical with the implementation for ar724x, so just drop
the broken ar913x implementation.

Signed-off-by: Alban Bedel &lt;albeu@free.fr&gt;
Tested-by: Antony Pavlov &lt;antonynpavlov@gmail.com&gt;
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/12871/
Signed-off-by: Ralf Baechle &lt;ralf@linux-mips.org&gt;
</content>
</entry>
<entry>
<title>MIPS: ath79: Fix the ar724x clock calculation</title>
<updated>2016-04-03T10:32:09Z</updated>
<author>
<name>Weijie Gao</name>
</author>
<published>2016-03-17T03:34:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c338d59d12dc93c3287160acd7e726b56dc94f43'/>
<id>urn:sha1:c338d59d12dc93c3287160acd7e726b56dc94f43</id>
<content type='text'>
According to the AR7242 datasheet section 2.8, AR724X CPUs use a 40MHz
input clock as the REF_CLK instead of 5MHz.

The correct CPU PLL calculation procedure is as follows:
CPU_PLL = (FB * REF_CLK) / REF_DIV / 2.

This patch is compatible with the current calculation procedure with
default FB and REF_DIV values.

Tested on AR7240, AR7241 and AR7242.

Signed-off-by: Weijie Gao &lt;hackpascal@gmail.com&gt;
Signed-off-by: Alban Bedel &lt;albeu@free.fr&gt; (Fixed the commit log message)
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/12870/
Signed-off-by: Ralf Baechle &lt;ralf@linux-mips.org&gt;
</content>
</entry>
<entry>
<title>MIPS: ath79: Add OF support to the clocks</title>
<updated>2015-06-21T19:54:06Z</updated>
<author>
<name>Alban Bedel</name>
</author>
<published>2015-05-31T00:18:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6451af0220a538334155261b562776f266fe5f8f'/>
<id>urn:sha1:6451af0220a538334155261b562776f266fe5f8f</id>
<content type='text'>
Allow using the SoC clocks in the device tree.

Signed-off-by: Alban Bedel &lt;albeu@free.fr&gt;
Cc: linux-mips@linux-mips.org
Signed-off-by: Ralf Baechle &lt;ralf@linux-mips.org&gt;
</content>
</entry>
<entry>
<title>MIPS: ath79: Use the common clk API</title>
<updated>2015-06-21T19:53:51Z</updated>
<author>
<name>Alban Bedel</name>
</author>
<published>2015-04-19T12:30:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=411520af8ec9456886359b42628e583ac58e7e44'/>
<id>urn:sha1:411520af8ec9456886359b42628e583ac58e7e44</id>
<content type='text'>
Make the code simpler and open the way for device tree clocks.

[ralf@linux-mips.org: Resolved conflict with 2a552da6 (MIPS/IRQCHIP: Move
irq_chip from arch/mips to drivers/irqchip.)]

Signed-off-by: Alban Bedel &lt;albeu@free.fr&gt;
Cc: linux-mips@linux-mips.org
Cc: Andrew Bresticker &lt;abrestic@chromium.org&gt;
Cc: Qais Yousef &lt;qais.yousef@imgtec.com&gt;
Cc: Wolfram Sang &lt;wsa@the-dreams.de&gt;
Cc: Sergey Ryazanov &lt;ryazanov.s.a@gmail.com&gt;
Cc: Gabor Juhos &lt;juhosg@openwrt.org&gt;
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/9774/
Signed-off-by: Ralf Baechle &lt;ralf@linux-mips.org&gt;
</content>
</entry>
<entry>
<title>MIPS: ath79: Correctly name the defines for the PLL_FB register</title>
<updated>2015-06-21T19:53:49Z</updated>
<author>
<name>Alban Bedel</name>
</author>
<published>2015-04-19T12:30:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=626a0695a6d98338063c528d113d9ee4ba00cd78'/>
<id>urn:sha1:626a0695a6d98338063c528d113d9ee4ba00cd78</id>
<content type='text'>
This register is named PLL_FB and is not a divider but a multiplier.
To make things less confusing rename the ARxxxx_PLL_DIV_SHIFT and
ARxxxx_PLL_DIV_MASK macros to ARxxxx_PLL_FB_SHIFT and
ARxxxx_PLL_FB_MASK.

Signed-off-by: Alban Bedel &lt;albeu@free.fr&gt;
Cc: linux-mips@linux-mips.org
Cc: Andrew Bresticker &lt;abrestic@chromium.org&gt;
Cc: Qais Yousef &lt;qais.yousef@imgtec.com&gt;
Cc: Wolfram Sang &lt;wsa@the-dreams.de&gt;
Cc: Sergey Ryazanov &lt;ryazanov.s.a@gmail.com&gt;
Cc: Gabor Juhos &lt;juhosg@openwrt.org&gt;
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/9772/
Signed-off-by: Ralf Baechle &lt;ralf@linux-mips.org&gt;
</content>
</entry>
</feed>
