<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/drivers/clk/meson, branch linux-5.1.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.</subtitle>
<id>https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-5.1.y</id>
<link rel='self' href='https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-5.1.y'/>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/'/>
<updated>2019-03-29T08:41:30Z</updated>
<entry>
<title>clk: meson: vid-pll-div: remove warning and return 0 on invalid config</title>
<updated>2019-03-29T08:41:30Z</updated>
<author>
<name>Neil Armstrong</name>
<email>narmstrong@baylibre.com</email>
</author>
<published>2019-03-27T15:13:48Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=6620f45ff8519549a6877663f965c10002918dc2'/>
<id>urn:sha1:6620f45ff8519549a6877663f965c10002918dc2</id>
<content type='text'>
The vid_pll_div is a programmable fractional divider, but vendor gives a
limited of known configuration value and it's corresponding fraction.

Thus when at reset value (0) or unknown value, we cannot determine the
result rate.

The initial behaviour was to print a warning, but the warning triggers
at each boot and when the clock tree is refreshed.

This patch moves the print to debug and returns 0 instead of the
parent rate.

Fixes: 72dbb8c94d0d ("clk: meson: Add vid_pll divider driver")
Signed-off-by: Neil Armstrong &lt;narmstrong@baylibre.com&gt;
Reviewed-by: Jerome Brunet &lt;jbrunet@baylibre.com&gt;
Link: https://lkml.kernel.org/r/20190327151348.27402-1-narmstrong@baylibre.com
</content>
</entry>
<entry>
<title>clk: meson: pll: fix rounding and setting a rate that matches precisely</title>
<updated>2019-03-25T12:18:09Z</updated>
<author>
<name>Martin Blumenstingl</name>
<email>martin.blumenstingl@googlemail.com</email>
</author>
<published>2019-03-24T16:43:27Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=d6f987c8462ab97591fbd6ed6bea6df61d2919e5'/>
<id>urn:sha1:d6f987c8462ab97591fbd6ed6bea6df61d2919e5</id>
<content type='text'>
Make meson_clk_pll_is_better() consider a rate that precisely matches
the requested rate to be better than any previous rate (which was
smaller than the current).

Prior to commit 8eed1db1adec6a ("clk: meson: pll: update driver for the
g12a") meson_clk_get_pll_settings() returned early (before calling
meson_clk_pll_is_better()) if the rate from the current iteration
matches the requested rate precisely. After this commit
meson_clk_pll_is_better() is called unconditionally. This requires
meson_clk_pll_is_better() to work with the case where "now == rate".

This fixes a hang during boot on Meson8b / Odroid-C1 for me.

Fixes: 8eed1db1adec6a ("clk: meson: pll: update driver for the g12a")
Signed-off-by: Martin Blumenstingl &lt;martin.blumenstingl@googlemail.com&gt;
Reviewed-by: Jerome Brunet &lt;jbrunet@baylibre.com&gt;
Signed-off-by: Neil Armstrong &lt;narmstrong@baylibre.com&gt;
Link: https://lkml.kernel.org/r/20190324164327.22590-2-martin.blumenstingl@googlemail.com
</content>
</entry>
<entry>
<title>clk: meson-g12a: fix VPU clock parents</title>
<updated>2019-03-19T16:38:41Z</updated>
<author>
<name>Neil Armstrong</name>
<email>narmstrong@baylibre.com</email>
</author>
<published>2019-03-13T13:55:03Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=9e05e49c29fde3f5e0d82542cb89e26c0bc828d0'/>
<id>urn:sha1:9e05e49c29fde3f5e0d82542cb89e26c0bc828d0</id>
<content type='text'>
First two VPU clock parents are wrong, fix it here.

Fixes: 085a4ea93d54 ("clk: meson: g12a: add peripheral clock controller")
Signed-off-by: Neil Armstrong &lt;narmstrong@baylibre.com&gt;
Acked-by: Jerome Brunet &lt;jbrunet@baylibre.com&gt;
Link: https://lkml.kernel.org/r/20190313135503.3198-1-narmstrong@baylibre.com
</content>
</entry>
<entry>
<title>clk: meson: g12a: fix VPU clock muxes mask</title>
<updated>2019-03-19T16:38:00Z</updated>
<author>
<name>Maxime Jourdan</name>
<email>mjourdan@baylibre.com</email>
</author>
<published>2019-03-19T08:26:11Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=f53b9f146fa1d5c5bb6dc34e27176434b26cd0a7'/>
<id>urn:sha1:f53b9f146fa1d5c5bb6dc34e27176434b26cd0a7</id>
<content type='text'>
There are 8 parents, use 0x7

Fixes: 085a4ea93d54 ("clk: meson: g12a: add peripheral clock controller")
Signed-off-by: Maxime Jourdan &lt;mjourdan@baylibre.com&gt;
Acked-by: Neil Armstrong &lt;narmstrong@baylibre.com&gt;
Signed-off-by: Neil Armstrong &lt;narmstrong@baylibre.com&gt;
Link: https://lkml.kernel.org/r/20190319082611.6215-1-mjourdan@baylibre.com
</content>
</entry>
<entry>
<title>clk: meson-gxbb: round the vdec dividers to closest</title>
<updated>2019-03-19T16:36:37Z</updated>
<author>
<name>Maxime Jourdan</name>
<email>mjourdan@baylibre.com</email>
</author>
<published>2019-03-19T10:25:37Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=9b70c697e87286ade406e6a02091757307dd4b7c'/>
<id>urn:sha1:9b70c697e87286ade406e6a02091757307dd4b7c</id>
<content type='text'>
We want the video decoder clocks to always round to closest. While the
muxes are already using CLK_MUX_ROUND_CLOSEST, the corresponding
CLK_DIVIDER_ROUND_CLOSEST was forgotten for the dividers.

Fix this by adding the flag to the two vdec dividers.

Fixes: a565242eb9fc ("clk: meson: gxbb: add the video decoder clocks")
Signed-off-by: Maxime Jourdan &lt;mjourdan@baylibre.com&gt;
Acked-by: Neil Armstrong &lt;narmstrong@baylibre.com&gt;
Signed-off-by: Neil Armstrong &lt;narmstrong@baylibre.com&gt;
Link: https://lkml.kernel.org/r/20190319102537.2043-1-mjourdan@baylibre.com
</content>
</entry>
<entry>
<title>clk: meson: meson8b: fix the naming of the APB clocks</title>
<updated>2019-02-13T08:51:09Z</updated>
<author>
<name>Martin Blumenstingl</name>
<email>martin.blumenstingl@googlemail.com</email>
</author>
<published>2019-02-10T22:26:03Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=c5f09e6bd8a7537beef8ee53cd161a06b04de271'/>
<id>urn:sha1:c5f09e6bd8a7537beef8ee53cd161a06b04de271</id>
<content type='text'>
Fix a typo in the APB clock names by renaming them from "abp" to "apb".
No functional changes.

Fixes: a7d19b05ce817d ("clk: meson: meson8b: add the CPU clock post divider clocks")
Signed-off-by: Martin Blumenstingl &lt;martin.blumenstingl@googlemail.com&gt;
Signed-off-by: Neil Armstrong &lt;narmstrong@baylibre.com&gt;
Acked-by: Jerome Brunet &lt;jbrunet@baylibre.com&gt;
Link: https://lkml.kernel.org/r/20190210222603.6404-2-martin.blumenstingl@googlemail.com
</content>
</entry>
<entry>
<title>clk: meson: Add G12A AO Clock + Reset Controller</title>
<updated>2019-02-13T08:49:32Z</updated>
<author>
<name>Neil Armstrong</name>
<email>narmstrong@baylibre.com</email>
</author>
<published>2019-02-12T16:28:59Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=042f01bb7f80012e19369b7f8a52fc5b74f4856b'/>
<id>urn:sha1:042f01bb7f80012e19369b7f8a52fc5b74f4856b</id>
<content type='text'>
Add the Amlogic G12A AO Clock and Reset controller driver handling
generation of Always-On clocks :
- AO Clocks and Reset for Always-On modules
- 32K Generation for USB and CEC
- SAR ADC controller clock

Signed-off-by: Neil Armstrong &lt;narmstrong@baylibre.com&gt;
Signed-off-by: Jerome Brunet &lt;jbrunet@baylibre.com&gt;
Acked-by: Jerome Brunet &lt;jbrunet@baylibre.com&gt;
Link: https://lkml.kernel.org/r/20190212162859.20743-3-narmstrong@baylibre.com
</content>
</entry>
<entry>
<title>clk: meson: factorise meson64 peripheral clock controller drivers</title>
<updated>2019-02-04T08:52:11Z</updated>
<author>
<name>Jerome Brunet</name>
<email>jbrunet@baylibre.com</email>
</author>
<published>2019-02-01T14:53:45Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=6682bd4d443fad802e11a0a39332025cdfbf5108'/>
<id>urn:sha1:6682bd4d443fad802e11a0a39332025cdfbf5108</id>
<content type='text'>
The function used to probe the peripheral clock controller of the arm64
amlogic SoCs is mostly the same. We now have 3 of those controllers so
it is time to factorize things a bit.

Signed-off-by: Jerome Brunet &lt;jbrunet@baylibre.com&gt;
Reviewed-by: Neil Armstrong &lt;narmstrong@baylibre.com&gt;
Signed-off-by: Neil Armstrong &lt;narmstrong@baylibre.com&gt;
Link: https://lkml.kernel.org/r/20190201145345.6795-5-jbrunet@baylibre.com
</content>
</entry>
<entry>
<title>clk: meson: g12a: add peripheral clock controller</title>
<updated>2019-02-04T08:52:11Z</updated>
<author>
<name>Jian Hu</name>
<email>jian.hu@amlogic.com</email>
</author>
<published>2019-02-01T14:53:44Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=085a4ea93d5491b9e5274272b528a1fccf9b2546'/>
<id>urn:sha1:085a4ea93d5491b9e5274272b528a1fccf9b2546</id>
<content type='text'>
Add the peripheral clock controller found in the g12a SoC family

Signed-off-by: Jian Hu &lt;jian.hu@amlogic.com&gt;
Signed-off-by: Neil Armstrong &lt;narmstrong@baylibre.com&gt;
Signed-off-by: Jerome Brunet &lt;jbrunet@baylibre.com&gt;
Reviewed-by: Neil Armstrong &lt;narmstrong@baylibre.com&gt;
Link: https://lkml.kernel.org/r/20190201145345.6795-4-jbrunet@baylibre.com
</content>
</entry>
<entry>
<title>clk: meson: pll: update driver for the g12a</title>
<updated>2019-02-04T08:51:37Z</updated>
<author>
<name>Jerome Brunet</name>
<email>jbrunet@baylibre.com</email>
</author>
<published>2019-02-01T14:53:42Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=8eed1db1adec6a26cef4acc7e0b2615049e8bd6d'/>
<id>urn:sha1:8eed1db1adec6a26cef4acc7e0b2615049e8bd6d</id>
<content type='text'>
The g12a use fractional parameter of 17 useful bits. At the moment, this
parameter in encoded using u16 value. Use this opportunity to switch all
the pll to parameter to unsigned int. This should save us some annoying
trouble shooting when and m and n field eventually grow as well.

This patch also introduce pll multiplier range. On the g12a, the hifi and
gp0 plls are able to lock as long as the following condition is met:
55 &lt;= m/n &lt;= 255.

The param table describing this would be huge which is a waste of memory.
Using ranges, we can save memory. Ranges also help find the best pll
parameter significantly faster since we don't have to try all the possible
settings.

Signed-off-by: Jerome Brunet &lt;jbrunet@baylibre.com&gt;
Reviewed-by: Neil Armstrong &lt;narmstrong@baylibre.com&gt;
Signed-off-by: Neil Armstrong &lt;narmstrong@baylibre.com&gt;
[jbrunet: fixed fix pll settings calculation with arm32]
Link: https://lkml.kernel.org/r/20190201145345.6795-2-jbrunet@baylibre.com
</content>
</entry>
</feed>
