<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/clk/meson, branch linux-5.9.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.9.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.9.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2020-10-29T09:11:52Z</updated>
<entry>
<title>clk: meson: g12a: mark fclk_div2 as critical</title>
<updated>2020-10-29T09:11:52Z</updated>
<author>
<name>Stefan Agner</name>
</author>
<published>2020-08-28T15:52:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=57411fb851fbdbb794738885f8ededa7ec127aa5'/>
<id>urn:sha1:57411fb851fbdbb794738885f8ededa7ec127aa5</id>
<content type='text'>
[ Upstream commit 2c4e80e06790cb49ad2603855d30c5aac2209c47 ]

On Amlogic Meson G12b platform, similar to fclk_div3, the fclk_div2
seems to be necessary for the system to operate correctly as well.

Typically, the clock also gets chosen by the eMMC peripheral. This
probably masked the problem so far. However, when booting from a SD
card the clock seems to get disabled which leads to a system freeze.

Let's mark this clock as critical, fixing boot from SD card on G12b
platforms.

Fixes: 085a4ea93d54 ("clk: meson: g12a: add peripheral clock controller")
Signed-off-by: Stefan Agner &lt;stefan@agner.ch&gt;
Signed-off-by: Jerome Brunet &lt;jbrunet@baylibre.com&gt;
Tested-by: Anand Moon &lt;linux.amoon@gmail.com&gt;
Cc: Marek Szyprowski &lt;m.szyprowski@samsung.com&gt;
Link: https://lore.kernel.org/r/577e0129e8ee93972d92f13187ff4e4286182f67.1598629915.git.stefan@agner.ch
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>clk: meson: axg-audio: separate axg and g12a regmap tables</title>
<updated>2020-10-29T09:11:52Z</updated>
<author>
<name>Jerome Brunet</name>
</author>
<published>2020-07-29T15:43:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=bdcac9c14ae8352a046ee02827be31d0218cd64c'/>
<id>urn:sha1:bdcac9c14ae8352a046ee02827be31d0218cd64c</id>
<content type='text'>
[ Upstream commit cdabb1ffc7c2349b8930f752df1edcafc1d37cc1 ]

There are more differences than what we initially thought.
Let's keeps things clear and separate the axg and g12a regmap tables of the
audio clock controller.

Signed-off-by: Jerome Brunet &lt;jbrunet@baylibre.com&gt;
Link: https://lore.kernel.org/r/20200729154359.1983085-3-jbrunet@baylibre.com
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>Merge branch 'clk-amlogic' into clk-next</title>
<updated>2020-07-21T08:01:11Z</updated>
<author>
<name>Stephen Boyd</name>
</author>
<published>2020-07-21T08:01:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b396b3d206cdc7942e8c4f008f994066b4cb3c71'/>
<id>urn:sha1:b396b3d206cdc7942e8c4f008f994066b4cb3c71</id>
<content type='text'>
* clk-amlogic:
  clk: meson: meson8b: add the vclk2_en gate clock
  clk: meson: meson8b: add the vclk_en gate clock
  clk: meson: meson8b: Drop CLK_IS_CRITICAL from fclk_div2
  clk: meson: g12a: Add support for NNA CLK source clocks
  dt-bindings: clk: g12a-clkc: Add NNA CLK Source clock IDs
</content>
</entry>
<entry>
<title>Replace HTTP links with HTTPS ones: Common CLK framework</title>
<updated>2020-07-11T00:15:34Z</updated>
<author>
<name>Alexander A. Klimov</name>
</author>
<published>2020-07-03T17:51:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5f1d8970d4cdba6ef3b2f3f11ef15edd62ce551a'/>
<id>urn:sha1:5f1d8970d4cdba6ef3b2f3f11ef15edd62ce551a</id>
<content type='text'>
Rationale:
Reduces attack surface on kernel devs opening the links for MITM
as HTTPS traffic is much harder to manipulate.

Deterministic algorithm:
For each file:
  If not .svg:
    For each line:
      If doesn't contain `\bxmlns\b`:
        For each link, `\bhttp://[^# \t\r\n]*(?:\w|/)`:
          If both the HTTP and HTTPS versions
          return 200 OK and serve the same content:
            Replace HTTP with HTTPS.

Signed-off-by: Alexander A. Klimov &lt;grandmaster@al2klimov.de&gt;
Link: https://lore.kernel.org/r/20200703175114.15027-1-grandmaster@al2klimov.de
Signed-off-by: Stephen Boyd &lt;sboyd@kernel.org&gt;
</content>
</entry>
<entry>
<title>clk: meson: meson8b: add the vclk2_en gate clock</title>
<updated>2020-07-09T09:37:44Z</updated>
<author>
<name>Martin Blumenstingl</name>
</author>
<published>2020-06-29T20:39:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2568528f55356a2f20f80a18244d3e235cbd2cab'/>
<id>urn:sha1:2568528f55356a2f20f80a18244d3e235cbd2cab</id>
<content type='text'>
HHI_VIID_CLK_CNTL[19] is not part of the public S805 datasheet. However,
the GXBB driver defines this bit as a gate called "vclk2" and in the
3.10 kernel GPL code dump the following line can found:
  WRITE_LCD_CBUS_REG_BITS(HHI_VIID_CLK_CNTL, 0, 19, 1); //disable vclk2_en

Add this gate clock to the Meson8/Meson8b/Meson8m2 clock controller to
complete the VCLK2 clock tree.

Signed-off-by: Martin Blumenstingl &lt;martin.blumenstingl@googlemail.com&gt;
Signed-off-by: Jerome Brunet &lt;jbrunet@baylibre.com&gt;
Link: https://lore.kernel.org/r/20200629203904.2989007-3-martin.blumenstingl@googlemail.com
</content>
</entry>
<entry>
<title>clk: meson: meson8b: add the vclk_en gate clock</title>
<updated>2020-07-09T09:37:43Z</updated>
<author>
<name>Martin Blumenstingl</name>
</author>
<published>2020-06-29T20:39:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e653b41131f60054dbfa0c7431613d6aeaee2212'/>
<id>urn:sha1:e653b41131f60054dbfa0c7431613d6aeaee2212</id>
<content type='text'>
HHI_VID_CLK_CNTL[19] is documented as CLK_EN0. This description is the
same in the public S912 datasheet and the GXBB driver calls this gate
"vclk". Add this gate clock to the Meson8/Meson8b/Meson8m2 clock
controller because it's needed to make the video output work.

Signed-off-by: Martin Blumenstingl &lt;martin.blumenstingl@googlemail.com&gt;
Signed-off-by: Jerome Brunet &lt;jbrunet@baylibre.com&gt;
Link: https://lore.kernel.org/r/20200629203904.2989007-2-martin.blumenstingl@googlemail.com
</content>
</entry>
<entry>
<title>clk: meson: meson8b: Drop CLK_IS_CRITICAL from fclk_div2</title>
<updated>2020-06-24T10:14:30Z</updated>
<author>
<name>Martin Blumenstingl</name>
</author>
<published>2020-06-20T16:14:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d4db5721f3c847df43b967d9f02994b15e4a48e6'/>
<id>urn:sha1:d4db5721f3c847df43b967d9f02994b15e4a48e6</id>
<content type='text'>
Drop CLK_IS_CRITICAL from fclk_div2. This was added because we didn't
know the relation between this clock and RGMII Ethernet. It turns out
that fclk_div2 is used as "timing adjustment clock" to generate the RX
delay on the MAC side - which was enabled by u-boot on Odriod-C1. When
using the RX delay on the PHY side or not using a RX delay at all then
this clock can be disabled.

Signed-off-by: Martin Blumenstingl &lt;martin.blumenstingl@googlemail.com&gt;
Signed-off-by: Jerome Brunet &lt;jbrunet@baylibre.com&gt;
Link: https://lore.kernel.org/r/20200620161422.24114-1-martin.blumenstingl@googlemail.com
</content>
</entry>
<entry>
<title>clk: meson: g12a: Add support for NNA CLK source clocks</title>
<updated>2020-06-19T15:16:39Z</updated>
<author>
<name>Dmitry Shmidt</name>
</author>
<published>2020-06-10T08:30:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2f1efa5340eff9af36c9a7347bb97abd726128a0'/>
<id>urn:sha1:2f1efa5340eff9af36c9a7347bb97abd726128a0</id>
<content type='text'>
This adds the Neural Network Accelerator source clocks hierarchy, it's
2 simple composite clocks to feed the AXI interface and the Core of
the Neural Network Accelerator IP.

This IP is only present on the Amlogic SM1 SoCs family.

Signed-off-by: Dmitry Shmidt &lt;dimitrysh@google.com&gt;
Signed-off-by: Neil Armstrong &lt;narmstrong@baylibre.com&gt;
Signed-off-by: Jerome Brunet &lt;jbrunet@baylibre.com&gt;
Link: https://lore.kernel.org/r/20200610083012.5024-3-narmstrong@baylibre.com
</content>
</entry>
<entry>
<title>clk: meson: meson8b: Don't rely on u-boot to init all GP_PLL registers</title>
<updated>2020-05-01T23:53:32Z</updated>
<author>
<name>Martin Blumenstingl</name>
</author>
<published>2020-05-01T21:57:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a29ae8600d50ece1856b062a39ed296b8b952259'/>
<id>urn:sha1:a29ae8600d50ece1856b062a39ed296b8b952259</id>
<content type='text'>
Not all u-boot versions initialize the HHI_GP_PLL_CNTL[2-5] registers.
In that case all HHI_GPLL_PLL_CNTL[1-5] registers are 0x0 and when
booting Linux the PLL fails to lock.
The initialization sequence from u-boot is:
- put the PLL into reset
- write 0x59C88000 to HHI_GP_PLL_CNTL2
- write 0xCA463823 to HHI_GP_PLL_CNTL3
- write 0x0286A027 to HHI_GP_PLL_CNTL4
- write 0x00003000 to HHI_GP_PLL_CNTL5
- set M, N, OD and the enable bit
- take the PLL out of reset
- check if it has locked
- disable the PLL

In Linux we already initialize M, N, OD, the enable and the reset bits.
Also the HHI_GP_PLL_CNTL[2-5] registers with these magic values (the
exact meaning is unknown) so the PLL can lock when the vendor u-boot did
not initialize these registers yet.

Fixes: b882964b376f21 ("clk: meson: meson8b: add support for the GP_PLL clock on Meson8m2")
Signed-off-by: Martin Blumenstingl &lt;martin.blumenstingl@googlemail.com&gt;
Signed-off-by: Jerome Brunet &lt;jbrunet@baylibre.com&gt;
Link: https://lore.kernel.org/r/20200501215717.735393-1-martin.blumenstingl@googlemail.com
</content>
</entry>
<entry>
<title>clk: meson: meson8b: Make the CCF use the glitch-free VPU mux</title>
<updated>2020-04-29T08:26:53Z</updated>
<author>
<name>Martin Blumenstingl</name>
</author>
<published>2020-04-17T18:41:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=16afd70af5b21b6d73a03b9c36f78b9cf004a0dd'/>
<id>urn:sha1:16afd70af5b21b6d73a03b9c36f78b9cf004a0dd</id>
<content type='text'>
The "vpu_0" or "vpu_1" clock trees should not be updated while the
clock is running. Enforce this by setting CLK_SET_RATE_GATE on the
"vpu_0" and "vpu_1" gates. This makes the CCF switch to the "vpu_1"
tree when "vpu_0" is currently active and vice versa, which is exactly
what the vendor driver does when updating the frequency of the VPU
clock.

Signed-off-by: Martin Blumenstingl &lt;martin.blumenstingl@googlemail.com&gt;
Signed-off-by: Jerome Brunet &lt;jbrunet@baylibre.com&gt;
Link: https://lore.kernel.org/r/20200417184127.1319871-5-martin.blumenstingl@googlemail.com
</content>
</entry>
</feed>
