[PATCH v2] clk: mediatek: mt8188: fix CLK_TOP_CLK{13,26}M rates

Julien Stephan jstephan at baylibre.com
Fri Mar 13 11:56:10 CET 2026


Le ven. 6 mars 2026 à 01:45, David Lechner <dlechner at baylibre.com> a écrit :
>
> Change CLK_TOP_CLK13M rate from 130_000_000 to 13_000_000 and
> CLK_TOP_CLK26M rate from 260_000_000 to 26_000_000. As the names
> suggest, these clocks are 13/26 MHz, not 130/260 MHz.
>
> Fixes: 5e9bbbdab003 ("clk: mediatek: mt8188: add missing fixed clock")
> Fixes: 11f3cc46322a ("clk: mediatek: add MT8188 clock driver")
> Signed-off-by: David Lechner <dlechner at baylibre.com>
> ---
> In v1 I said that this should go into master, but I found that there
> were other fixes that went into next already instead of master. Applying
> the v1 patch would cause a merge conflict because of this. So I've
> changed the patch to apply to next to avoid merge conflict. This driver
> and the board that depends on it isn't really usable in master anyway
> so I think this should be OK to not fix it in master.
>
> And I found that next had the same bug on CLK13M, so I've updated the
> patch to fix both.
> ---
> Changes in v2:
> - Added fix for CLK_TOP_CLK13M as well.
> - Link to v1: https://lore.kernel.org/r/20260304-clk-mtk-fix-mt8188-rates-v1-1-c71fb26179b3@baylibre.com
> ---
>  drivers/clk/mediatek/clk-mt8188.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/clk/mediatek/clk-mt8188.c b/drivers/clk/mediatek/clk-mt8188.c
> index b720eec8ba7..803330717c6 100644
> --- a/drivers/clk/mediatek/clk-mt8188.c
> +++ b/drivers/clk/mediatek/clk-mt8188.c
> @@ -97,8 +97,8 @@ static const struct mtk_fixed_clk top_fixed_clks[] = {
>         FIXED_CLK0(CLK_TOP_466M_FMEM, 533000000),
>         FIXED_CLK0(CLK_TOP_PEXTP_PIPE, 250000000),
>         FIXED_CLK0(CLK_TOP_DSI_PHY, 500000000),
> -       FIXED_CLK0(CLK_TOP_CLK13M, 130000000),
> -       FIXED_CLK0(CLK_TOP_CLK26M, 260000000),
> +       FIXED_CLK0(CLK_TOP_CLK13M, 13000000),
> +       FIXED_CLK0(CLK_TOP_CLK26M, 26000000),
>         FIXED_CLK0(CLK_TOP_CLK32K, 32000),
>  };
>
>
> ---
> base-commit: c0ca147ac6228949a6d6497531c9f2f4a0dc6c67
> change-id: 20260304-clk-mtk-fix-mt8188-rates-9c733a841d56
>
> Best regards,
> --
> David Lechner <dlechner at baylibre.com>
>

Tested on genio-510-evk

Reviewed-by: Julien Stephan <jstephan at baylibre.com>
Tested-by: Julien Stephan <jstephan at baylibre.com>

Thanks
Julien


More information about the U-Boot mailing list