[PATCH] rockchip: clk: clk_rk3576: Add support for RK3576 GMAC 25MHz clock output
Quentin Schulz
quentin.schulz at cherry.de
Mon May 4 18:03:46 CEST 2026
Hi Alexey,
On 5/4/26 3:45 PM, Alexey Charkov wrote:
> 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 <alchark at flipper.net>
Reviewed-by: Quentin Schulz <quentin.schulz at cherry.de>
We should think about migrating to FIELD_PREP, FIELD_GET and similar
macros to make this a bit more readable and less error-prone though.
Some job for future us, not a blocker for sure :)
Thanks!
Quentin
More information about the U-Boot
mailing list