<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/drivers/clk/rockchip, branch next</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/u-boot.git/atom/drivers/clk/rockchip?h=next</id>
<link rel='self' href='http://cgit.235523.xyz/u-boot.git/atom/drivers/clk/rockchip?h=next'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<updated>2026-08-12T14:55:03Z</updated>
<entry>
<title>clk: rockchip: pll: fix overflow and drop manual two's complement on RK3588/RK3576</title>
<updated>2026-08-12T14:55:03Z</updated>
<author>
<name>Alexey Charkov</name>
<email>alchark@flipper.net</email>
</author>
<published>2026-07-23T15:04:27Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=f75a3d96e1f33c1b8737018843b7bd5fc207b9d4'/>
<id>urn:sha1:f75a3d96e1f33c1b8737018843b7bd5fc207b9d4</id>
<content type='text'>
The TRM defines the fractional PLL adjustment coefficient as a signed
two's complement number, 16 bits wide, so store and use it as such to
avoid confusion and enable proper signed arithmetics, promoting operands
with automatic sign extension.

This also fixes an overflow when the current rk3588_pll_get_rate
calculates the fractional component in 32 bits before assigning it to a
64-bit holding variable, given that OSC_HZ is 24000000U and k can be from
-32768 to 32767.

Fixes: b851c006a150 ("clk: rockchip: pll: Add pll_rk3588 type for rk3588")
Reviewed-by: Quentin Schulz &lt;quentin.schulz@cherry.de&gt;
Signed-off-by: Alexey Charkov &lt;alchark@flipper.net&gt;
Link: https://patch.msgid.link/20260723-rk3588-fracpll-v2-5-382d113f3a80@flipper.net
Signed-off-by: Quentin Schulz &lt;u-boot@0leil.net&gt;
</content>
</entry>
<entry>
<title>clk: rockchip: pll: let rockchip_rk3588_pll_k_get update m directly</title>
<updated>2026-08-12T14:54:58Z</updated>
<author>
<name>Alexey Charkov</name>
<email>alchark@flipper.net</email>
</author>
<published>2026-07-23T15:04:26Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=3bc88868c237b7b40d87d931474c5739f76b2d13'/>
<id>urn:sha1:3bc88868c237b7b40d87d931474c5739f76b2d13</id>
<content type='text'>
Selecting the next integer multiplier m is coupled to setting a negative
fractional coefficient k. The current code checks for negative k in two
separate places, which is error-prone.

Let rockchip_rk3588_pll_k_get update m directly, to make it the single
source of truth for the final value of the integer multiplier m, which
also reduces the number of scattered conditional branches in the code.

Signed-off-by: Alexey Charkov &lt;alchark@flipper.net&gt;
Reviewed-by: Quentin Schulz &lt;quentin.schulz@cherry.de&gt;
Link: https://patch.msgid.link/20260723-rk3588-fracpll-v2-4-382d113f3a80@flipper.net
Signed-off-by: Quentin Schulz &lt;u-boot@0leil.net&gt;
</content>
</entry>
<entry>
<title>clk: rockchip: pll: fix RK3588 frac PLL result for k=-32768</title>
<updated>2026-08-12T14:54:38Z</updated>
<author>
<name>Alexey Charkov</name>
<email>alchark@flipper.net</email>
</author>
<published>2026-07-23T15:04:25Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=ffd377597b57bc83709a5d5200d0e15fdbbba5c6'/>
<id>urn:sha1:ffd377597b57bc83709a5d5200d0e15fdbbba5c6</id>
<content type='text'>
Current code needlessly sets the k value to 0 when it is calculated as
-32768, which is a valid value for the RK3588 frac PLL. This results in
the PLL output frequency being higher than requested when the requested
frequency is exactly halfway between two integer-multiplier PLL output
frequencies.

Negative values of k cannot be greater than 32768 in magnitude either,
because that case has been handled just above the enclosing if statement,
so the check for k &gt; 32767 is redundant.

Fixes: 6bfb37e70209 ("clk: rockchip: rk3588: fix up the frac pll calculation")
Signed-off-by: Alexey Charkov &lt;alchark@flipper.net&gt;
Reviewed-by: Quentin Schulz &lt;quentin.schulz@cherry.de&gt;
Link: https://patch.msgid.link/20260723-rk3588-fracpll-v2-3-382d113f3a80@flipper.net
Signed-off-by: Quentin Schulz &lt;u-boot@0leil.net&gt;
</content>
</entry>
<entry>
<title>clk: rockchip: pll: fix rounding of negative k in RK3588 frac PLL</title>
<updated>2026-08-12T14:50:43Z</updated>
<author>
<name>Alexey Charkov</name>
<email>alchark@flipper.net</email>
</author>
<published>2026-07-23T15:04:24Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=7a3ef6c21fdb4912779132e0dd93fc59da7d6357'/>
<id>urn:sha1:7a3ef6c21fdb4912779132e0dd93fc59da7d6357</id>
<content type='text'>
Current code uses magical constants when rounding up the magnitude of
negative fractional PLL component k. This leads to overshooting the
requested rate when the calculated fractional part has less than 0.3 in
its decimal part due to failure to round up the fractional part.

Use a proper rounding up function to avoid overshooting the requested
rate and make the calculation more readable.

Fixes: 6bfb37e70209 ("clk: rockchip: rk3588: fix up the frac pll calculation")
Reviewed-by: Quentin Schulz &lt;quentin.schulz@cherry.de&gt;
Signed-off-by: Alexey Charkov &lt;alchark@flipper.net&gt;
Link: https://patch.msgid.link/20260723-rk3588-fracpll-v2-2-382d113f3a80@flipper.net
Signed-off-by: Quentin Schulz &lt;u-boot@0leil.net&gt;
</content>
</entry>
<entry>
<title>clk: rockchip: pll: drop misleading fout in rockchip_rk3588_pll_k_get()</title>
<updated>2026-08-12T14:50:43Z</updated>
<author>
<name>Alexey Charkov</name>
<email>alchark@flipper.net</email>
</author>
<published>2026-07-23T15:04:23Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=e5b3e6fd45ceff28a3cb9834809acacad82aa585'/>
<id>urn:sha1:e5b3e6fd45ceff28a3cb9834809acacad82aa585</id>
<content type='text'>
The calculation in rockchip_rk3588_pll_k_get() uses an intermediate
variable misleadingly named fout, which is not the output frequency.

Drop it and inline its calculation into the k assignment, which also
improves clarity. While at that, also drop the redundant reassignment of
fref which doesn't change within this function.

Reviewed-by: Quentin Schulz &lt;quentin.schulz@cherry.de&gt;
Signed-off-by: Alexey Charkov &lt;alchark@flipper.net&gt;
Link: https://patch.msgid.link/20260723-rk3588-fracpll-v2-1-382d113f3a80@flipper.net
Signed-off-by: Quentin Schulz &lt;u-boot@0leil.net&gt;
</content>
</entry>
<entry>
<title>rockchip: clk: clk_rk3576: Add support for RK3576 GMAC 25MHz clock output</title>
<updated>2026-06-09T16:19:05Z</updated>
<author>
<name>Alexey Charkov</name>
<email>alchark@flipper.net</email>
</author>
<published>2026-05-04T13:45:08Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=957941943bdb7e48aa223737268c28a0ae2dcd6d'/>
<id>urn:sha1:957941943bdb7e48aa223737268c28a0ae2dcd6d</id>
<content type='text'>
Rockchip RK3576 SoC has two built-in GMACs which connect to external PHYs
via RGMII interface. The RGMII link can be clocked by either the PHY or
the SoC. When the SoC is the master, as is the case on the RK3576 EVB1,
the output clock needs to be configured in the CRU.

Add the respective logic for getting and setting the RGMII reference clock
output for both GMAC0 and GMAC1.

Signed-off-by: Alexey Charkov &lt;alchark@flipper.net&gt;
Reviewed-by: Quentin Schulz &lt;quentin.schulz@cherry.de&gt;
Reviewed-by: Kever Yang &lt;kever.yang@rock-chips.com&gt;
</content>
</entry>
<entry>
<title>clk: rockchip: rk3576: Add CLK_REF_USB3OTGx support</title>
<updated>2026-06-08T13:21:52Z</updated>
<author>
<name>Jonas Karlman</name>
<email>jonas@kwiboo.se</email>
</author>
<published>2026-03-10T01:02:13Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=c97c7d5caadc6d2d87764162171d1a1bdc206803'/>
<id>urn:sha1:c97c7d5caadc6d2d87764162171d1a1bdc206803</id>
<content type='text'>
The CLK_REF_USB3OTGx clocks are used as reference clocks for the two
DWC3 blocks.

Add simple support to get rate of CLK_REF_USB3OTGx clocks to fix
reference clock period configuration.

Signed-off-by: Jonas Karlman &lt;jonas@kwiboo.se&gt;
Reviewed-by: Kever Yang &lt;kever.yang@rock-chips.com&gt;
</content>
</entry>
<entry>
<title>clk: rockchip: rk3528: Add CLK_REF_USB3OTG support</title>
<updated>2026-06-08T13:21:52Z</updated>
<author>
<name>Jonas Karlman</name>
<email>jonas@kwiboo.se</email>
</author>
<published>2026-03-10T01:00:39Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=a9c1f2af7178ef6b74053ef427ea68b489895e98'/>
<id>urn:sha1:a9c1f2af7178ef6b74053ef427ea68b489895e98</id>
<content type='text'>
The CLK_REF_USB3OTG clock is used as reference clock for the DWC3 block.

Add simple support to get rate of CLK_REF_USB3OTG clock to fix reference
clock period configuration.

Signed-off-by: Jonas Karlman &lt;jonas@kwiboo.se&gt;
Reviewed-by: Kever Yang &lt;kever.yang@rock-chips.com&gt;
</content>
</entry>
<entry>
<title>Merge tag 'u-boot-rockchip-20260309' of https://source.denx.de/u-boot/custodians/u-boot-rockchip into next</title>
<updated>2026-03-10T16:07:04Z</updated>
<author>
<name>Tom Rini</name>
<email>trini@konsulko.com</email>
</author>
<published>2026-03-10T14:17:13Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=d93a63acfe701aa07c9223ec454164c88e7eb43d'/>
<id>urn:sha1:d93a63acfe701aa07c9223ec454164c88e7eb43d</id>
<content type='text'>
CI: https://source.denx.de/u-boot/custodians/u-boot-rockchip/-/pipelines/29452

- New SoC support: RK3506, RK3582;
- New Board support: RK3528 FriendlyElec NanoPi Zero2;
- Other fixes
</content>
</entry>
<entry>
<title>clk: rockchip: Add support for RK3506</title>
<updated>2026-03-10T16:07:03Z</updated>
<author>
<name>Finley Xiao</name>
<email>finley.xiao@rock-chips.com</email>
</author>
<published>2026-01-31T23:38:17Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=fbf72dce915a9bd217ba36e3186b784ed6b55fa7'/>
<id>urn:sha1:fbf72dce915a9bd217ba36e3186b784ed6b55fa7</id>
<content type='text'>
Add clock driver for RK3506.

Imported from vendor U-Boot linux-6.1-stan-rkr6 tag with minor
adjustments and fixes for mainline.

Signed-off-by: Finley Xiao &lt;finley.xiao@rock-chips.com&gt;
Signed-off-by: Jonas Karlman &lt;jonas@kwiboo.se&gt;
Reviewed-by: Kever Yang &lt;kever.yang@rock-chips.com&gt;
</content>
</entry>
</feed>
