<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/clk/meson, branch linux-4.15.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.15.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.15.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2018-04-12T10:31:01Z</updated>
<entry>
<title>clk: meson: mpll: use 64-bit maths in params_from_rate</title>
<updated>2018-04-12T10:31:01Z</updated>
<author>
<name>Martin Blumenstingl</name>
</author>
<published>2017-12-23T21:38:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9f8a75a2299e3e2f97ea002e5a4f0b4e7c78c22c'/>
<id>urn:sha1:9f8a75a2299e3e2f97ea002e5a4f0b4e7c78c22c</id>
<content type='text'>
[ Upstream commit 86aacdca66774051cbc0958110a48074b57a060b ]

"rem * SDM_DEN" can easily overflow on the 32-bit Meson8 and Meson8b
SoCs if the "remainder" (after the division operation) is greater than
262143Hz. This is likely to happen since the input clock for the MPLLs
on Meson8 and Meson8b is "fixed_pll", which is running at a rate of
2550MHz.

One example where this was observed to be problematic was the Ethernet
clock calculation (which takes MPLL2 as input). When requesting a rate
of 125MHz there is a remainder of 2500000Hz.
The resulting MPLL2 rate before this patch was 127488329Hz.
The resulting MPLL2 rate after this patch is 124999103Hz.

Commit b609338b26f5 ("clk: meson: mpll: use 64bit math in
rate_from_params") already fixed a similar issue in rate_from_params.

Fixes: 007e6e5c5f01d3 ("clk: meson: mpll: add rw operation")
Signed-off-by: Martin Blumenstingl &lt;martin.blumenstingl@googlemail.com&gt;
Signed-off-by: Jerome Brunet &lt;jbrunet@baylibre.com&gt;
Signed-off-by: Sasha Levin &lt;alexander.levin@microsoft.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>clk: meson: gxbb: fix wrong clock for SARADC/SANA</title>
<updated>2018-03-19T08:09:50Z</updated>
<author>
<name>Yixun Lan</name>
</author>
<published>2017-11-07T14:12:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=941a8e4061b562e2e410af90c4e793ed38cff7f6'/>
<id>urn:sha1:941a8e4061b562e2e410af90c4e793ed38cff7f6</id>
<content type='text'>
[ Upstream commit 75eccf5ed83250c0aeaeeb76f7288254ac0a87b4 ]

According to the datasheet, in Meson-GXBB/GXL series,
The clock gate bit for SARADC is HHI_GCLK_MPEG2 bit[22],
while clock gate bit for SANA is HHI_GCLK_MPEG0 bit[10].

Test passed at gxl-s905x-p212 board.

The following published datasheets are wrong and should be updated
[1] GXBB v1.1.4
[2] GXL v0.3_20170314

Fixes: 738f66d3211d ("clk: gxbb: add AmLogic GXBB clk controller driver")
Tested-by: Xingyu Chen &lt;xingyu.chen@amlogic.com&gt;
Signed-off-by: Yixun Lan &lt;yixun.lan@amlogic.com&gt;
Signed-off-by: Jerome Brunet &lt;jbrunet@baylibre.com&gt;
Signed-off-by: Sasha Levin &lt;alexander.levin@microsoft.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>clk: meson: gxbb: Add VPU and VAPB clocks data</title>
<updated>2017-10-20T08:34:49Z</updated>
<author>
<name>Neil Armstrong</name>
</author>
<published>2017-10-16T15:34:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=762a1f2098b2fd4f84ccdb62d5747fff1ad7f816'/>
<id>urn:sha1:762a1f2098b2fd4f84ccdb62d5747fff1ad7f816</id>
<content type='text'>
The Amlogic Meson GX SoCs needs these two clocks to power up the
VPU power domain.

These two clocks are similar to the MALI clocks by having a glitch-free
mux and two similar clocks with gate, divider and muxes.

Acked-by: Jerome Brunet &lt;jbrunet@baylibre.com&gt;
[narmstrong: removed the CLK_IGNORE_UNUSED on muxes and dividers]
Signed-off-by: Neil Armstrong &lt;narmstrong@baylibre.com&gt;
</content>
</entry>
<entry>
<title>clk: meson: gxbb: Add VPU and VAPB clockids</title>
<updated>2017-10-20T08:24:30Z</updated>
<author>
<name>Neil Armstrong</name>
</author>
<published>2017-10-16T15:34:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4cf8f811c64ab570d40cb2f4bfc723750aec122f'/>
<id>urn:sha1:4cf8f811c64ab570d40cb2f4bfc723750aec122f</id>
<content type='text'>
Add the clkids for the clocks feeding the Video Processing Unit.

Acked-by: Jerome Brunet &lt;jbrunet@baylibre.com&gt;
Signed-off-by: Neil Armstrong &lt;narmstrong@baylibre.com&gt;
</content>
</entry>
<entry>
<title>Merge tag 'meson-clk-for-4.14' of git://github.com/baylibre/clk-meson into clk-next</title>
<updated>2017-08-23T22:28:52Z</updated>
<author>
<name>Stephen Boyd</name>
</author>
<published>2017-08-23T22:28:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3477a72b41f3515913f7da704965884ca51b4352'/>
<id>urn:sha1:3477a72b41f3515913f7da704965884ca51b4352</id>
<content type='text'>
Pull Amlogic clock driver updates from Neil Armstrong:

 * meson8b: add the reset controller to the clkc
 * meson: expose all clk ids
 * gxbb-aoclk: Add CEC 32k clock
 * gxbb: add mmc input 0 clocks
 * meson: fix protection against undefined clks
 * gxbb: fix audio divider flags

* tag 'meson-clk-for-4.14' of git://github.com/baylibre/clk-meson:
  clk: meson: gxbb-aoclk: Add CEC 32k clock
  clk: meson: gxbb-aoclk: Switch to regmap for register access
  dt-bindings: clock: amlogic, gxbb-aoclkc: Update bindings
  clk: meson: gxbb: Add sd_emmc clk0 clocks
  clk: meson: gxbb: fix clk_mclk_i958 divider flags
  clk: meson: gxbb: fix meson cts_amclk divider flags
  clk: meson: meson8b: register the built-in reset controller
  dt-bindings: clock: gxbb-aoclk: Add CEC 32k clock
  clk: meson: gxbb: Add sd_emmc clk0 clkids
  clk: meson-gxbb: expose almost every clock in the bindings
  clk: meson8b: expose every clock in the bindings
  clk: meson: gxbb: fix protection against undefined clks
  clk: meson: meson8b: fix protection against undefined clks
  dt-bindings: clock: meson8b: describe the embedded reset controller
</content>
</entry>
<entry>
<title>clk: meson: gxbb-aoclk: Add CEC 32k clock</title>
<updated>2017-08-04T16:02:02Z</updated>
<author>
<name>Neil Armstrong</name>
</author>
<published>2017-08-01T11:56:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=62ec0b9754aced0b4c02694886cbe9bfd3d00f2f'/>
<id>urn:sha1:62ec0b9754aced0b4c02694886cbe9bfd3d00f2f</id>
<content type='text'>
The CEC 32K AO Clock is a dual divider with dual counter to provide a more
precise 32768Hz clock for the CEC subsystem from the external xtal.

Signed-off-by: Neil Armstrong &lt;narmstrong@baylibre.com&gt;
</content>
</entry>
<entry>
<title>clk: meson: gxbb-aoclk: Switch to regmap for register access</title>
<updated>2017-08-04T16:02:01Z</updated>
<author>
<name>Neil Armstrong</name>
</author>
<published>2017-08-01T11:56:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ffb13e3b84f4619ec6a4ca61a6cedf2d50858949'/>
<id>urn:sha1:ffb13e3b84f4619ec6a4ca61a6cedf2d50858949</id>
<content type='text'>
Switch the aoclk driver to use the new bindings and switch all the
registers access to regmap only.

Signed-off-by: Neil Armstrong &lt;narmstrong@baylibre.com&gt;
</content>
</entry>
<entry>
<title>clk: meson: gxbb: Add sd_emmc clk0 clocks</title>
<updated>2017-08-04T16:02:00Z</updated>
<author>
<name>Jerome Brunet</name>
</author>
<published>2017-07-31T11:56:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=914e6e80b3a5950bc6baedbe8d60377ceb99c9c7'/>
<id>urn:sha1:914e6e80b3a5950bc6baedbe8d60377ceb99c9c7</id>
<content type='text'>
Input source 0 of the mmc controllers is not directly xtal, as currently
described in DT. Each controller is fed by a composite clock (the usual
mux, divider and gate). The muxes inputs are the xtal (default) and the
fclk_div clocks. These parents, along with the divider, should be able to
provide the necessary rates for mmc and nand operation.

The input muxes should also be able to take mpll2, mpll3 and gp0_pll but
these are precious clocks, needed for other usage. It is better if the
mmc does not use these them. For this reason, mpll2, mpll3 and gp0_pll is
not listed among the possible parents.

Signed-off-by: Jerome Brunet &lt;jbrunet@baylibre.com&gt;
Signed-off-by: Neil Armstrong &lt;narmstrong@baylibre.com&gt;
</content>
</entry>
<entry>
<title>clk: meson: gxbb: fix clk_mclk_i958 divider flags</title>
<updated>2017-08-04T16:01:59Z</updated>
<author>
<name>Jerome Brunet</name>
</author>
<published>2017-07-27T13:09:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7605aa5b4198ad819dde7c39b3c968f57ccb568e'/>
<id>urn:sha1:7605aa5b4198ad819dde7c39b3c968f57ccb568e</id>
<content type='text'>
CLK_DIVIDER_ROUND_CLOSEST was incorrectly put in the hw.init flags
while it should have been in the divider flags

Fixes: 3c277c247eab ("clk: meson: gxbb: add cts_mclk_i958")
Signed-off-by: Jerome Brunet &lt;jbrunet@baylibre.com&gt;
Signed-off-by: Neil Armstrong &lt;narmstrong@baylibre.com&gt;
</content>
</entry>
<entry>
<title>clk: meson: gxbb: fix meson cts_amclk divider flags</title>
<updated>2017-08-04T16:01:59Z</updated>
<author>
<name>Jerome Brunet</name>
</author>
<published>2017-07-27T13:09:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=004f6f462d4127350fce1a2822d00990baedf3a0'/>
<id>urn:sha1:004f6f462d4127350fce1a2822d00990baedf3a0</id>
<content type='text'>
CLK_DIVIDER_ROUND_CLOSEST was incorrectly put in the hw.init flags
while it should have been in the divider flags

Fixes: 4087bd4b2170 ("clk: meson: gxbb: add cts_amclk")
Signed-off-by: Jerome Brunet &lt;jbrunet@baylibre.com&gt;
Signed-off-by: Neil Armstrong &lt;narmstrong@baylibre.com&gt;
</content>
</entry>
</feed>
