[PATCH v3 00/16] clk: mediatek: unify mux clocks
Julien Stephan
jstephan at baylibre.com
Tue Mar 24 09:52:10 CET 2026
Le mer. 18 mars 2026 à 00:26, David Lechner <dlechner at baylibre.com> a écrit :
>
> The MediaTek clock driver currently have two ways to indicate the parent
> tree that contains the parent clock. This adds to code complexity and
> makes it more difficult to know the "right thing" to do in new drivers.
>
> The plan here is to convert all mux clocks to use the more robust option
> of using struct mtk_parent to specify parent clocks.
>
> The conversion to the static const struct mtk_parent arrays was done
> by script to minimize the chance of error (and save time).
>
> After the conversion, we can drop two of the clock flags that are no
> longer used and remove the dead code.
>
> Signed-off-by: David Lechner <dlechner at baylibre.com>
> ---
> Changes in v3:
> - Picked up similar patches from another series [1] and updated commit
> messages to match to this series.
> - Squashed the mt7622 patch into the one from the other series.
> - Link to v2: https://patch.msgid.link/20260309-clk-mtk-unify-mux-parents-v2-0-b084ea74b99d@baylibre.com
>
> [1]: https://lore.kernel.org/u-boot/20260306-clk-mtk-remove-clk-bypass-xtal-flag-v2-0-b253b49f17b2@baylibre.com/
>
> Changes in v2:
> - Rebased on updated dependencies.
> - Link to v1: https://lore.kernel.org/r/20260302-clk-mtk-unify-mux-parents-v1-0-32f45085f4d0@baylibre.com
>
> ---
> David Lechner (16):
> clk: mediatek: mt7622: convert to struct mtk_parent
> clk: mediatek: mt7623: convert to struct mtk_parent
> clk: mediatek: mt7629: convert to struct mtk_parent
> clk: mediatek: mt7981: convert to struct mtk_parent
> clk: mediatek: mt7987: convert to struct mtk_parent
> clk: mediatek: mt7988: convert to struct mtk_parent
> clk: mediatek: mt8183: convert to struct mtk_parent
> clk: mediatek: mt8188: convert to struct mtk_parent
> clk: mediatek: mt8195: convert to struct mtk_parent
> clk: mediatek: mt8365: convert to struct mtk_parent
> clk: mediatek: mt8512: convert to struct mtk_parent
> clk: mediatek: mt8516: convert to struct mtk_parent
> clk: mediatek: mt8518: convert to struct mtk_parent
> clk: mediatek: remove use of CLK_BYPASS_XTAL flag
> clk: mediatek: remove CLK_PARENT_MIXED flag
> clk: mediatek: refactor duplicate *_mux_get_rate()
>
> drivers/clk/mediatek/clk-mt7622.c | 288 +++--
> drivers/clk/mediatek/clk-mt7623.c | 649 ++++++------
> drivers/clk/mediatek/clk-mt7629.c | 371 ++++---
> drivers/clk/mediatek/clk-mt7981.c | 233 +++--
> drivers/clk/mediatek/clk-mt7986.c | 12 +-
> drivers/clk/mediatek/clk-mt7987.c | 78 +-
> drivers/clk/mediatek/clk-mt7988.c | 82 +-
> drivers/clk/mediatek/clk-mt8183.c | 584 +++++------
> drivers/clk/mediatek/clk-mt8188.c | 1522 +++++++++++++--------------
> drivers/clk/mediatek/clk-mt8189.c | 12 +-
> drivers/clk/mediatek/clk-mt8195.c | 1349 ++++++++++++------------
> drivers/clk/mediatek/clk-mt8365.c | 450 ++++----
> drivers/clk/mediatek/clk-mt8512.c | 620 +++++------
> drivers/clk/mediatek/clk-mt8516.c | 704 ++++++-------
> drivers/clk/mediatek/clk-mt8518.c | 2088 ++++++++++++++++++-------------------
> drivers/clk/mediatek/clk-mtk.c | 112 +-
> drivers/clk/mediatek/clk-mtk.h | 69 +-
> 17 files changed, 4611 insertions(+), 4612 deletions(-)
> ---
> base-commit: 142c805d470cd02470146d6d70aa9c522d4da16c
> change-id: 20260302-clk-mtk-unify-mux-parents-1bf35aeabf00
>
> Best regards,
> --
> David Lechner <dlechner at baylibre.com>
>
Reviewed-by: Julien Stephan <jstephan at baylibre.com>
Thanks
Julien
More information about the U-Boot
mailing list