On Wed, 15 Jul 2026 16:28:28 +0200, Julien Stephan wrote:
> clk: mediatek: remove the dedicated clock gate driver
> 
> Several MediaTek SoCs expose multiple clock gate controller instances.
> In U-Boot, each instance currently requires its own U_BOOT_DRIVER,
> mtk_clk_tree, probe() function and compatible table, even though they all
> share the same implementation. On top of that, the framework carries a
> whole dedicated code path for clock gate controllers (mtk_clk_gate_ops,
> struct mtk_cg_priv, mtk_common_clk_gate_init()), which duplicates logic
> that the topckgen path already provides through struct mtk_clk_tree.
> 
> [...]

I made a few tweaks when applying to add trailing commas, use 
CONFIG_IS_ENABLED()
instead of IS_ENABLED(), avoid an extra arg in GATE_CLK_TREE() and changed the
name of the common probe function to include "probe" in the name.

Applied to mediatek-for-main, thanks!

[01/32] clk: mediatek: mt8188: deduplicate clock gate drivers
        commit: e46941363e390dd4f627ad732ac369754b773f7b
[02/32] clk: mediatek: mt8188: use driver data to store the clock tree
        commit: 506b75797d755c73ec65ad3cca3a8273010264cb
[03/32] clk: mediatek: mt7622: deduplicate clock gate drivers
        commit: 7f6d4b14e6f168d67ece24ef14cd877dae4a7abd
[04/32] clk: mediatek: mt7622: use driver data to store the clock tree
        commit: 71b900f2037bce87b7b50d374262b18549b545da
[05/32] clk: mediatek: mt7623: deduplicate clock gate drivers
        commit: d77d52f3244b84318766dc446d8cc7323a6e0cc9
[06/32] clk: mediatek: mt7623: use driver data to store the clock tree
        commit: 636b038ac09353854626070705b4647063b52064
[07/32] clk: mediatek: mt7629: deduplicate clock gate drivers
        commit: 44c677c4f73a4abb19593adbd5ad5f906ff8256e
[08/32] clk: mediatek: mt7629: use driver data to store the clock tree
        commit: 1dfa53855337727e0b13c87cc034bdce4d06ce63
[09/32] clk: mediatek: mt7981: deduplicate clock gate drivers
        commit: bb9f7e62d6647235e2be22612de88b2146d77173
[10/32] clk: mediatek: mt7981: use driver data to store the clock tree
        commit: 3aaae670f35fe7b1e221ac7741ec53ced96b47ff
[11/32] clk: mediatek: mt7986: deduplicate clock gate drivers
        commit: f6d0bad12450540a13385b6f4415f2b746567da0
[12/32] clk: mediatek: mt7986: use driver data to store the clock tree
        commit: 83b3ec0999083fff3839add149312c7d8ffa918b
[13/32] clk: mediatek: mt7987: deduplicate clock gate drivers
        commit: 8aa74e4fffc1bf90e6831fae8d03045a445d09a2
[14/32] clk: mediatek: mt7987: use driver data to store the clock tree
        commit: fbf41a84eebdfc7cb4ade7845f64a21eab62a75c
[15/32] clk: mediatek: mt7988: deduplicate clock gate drivers
        commit: 712573b72ba5402c1c2946b60d9e9c7aee8e2aeb
[16/32] clk: mediatek: mt7988: use driver data to store the clock tree
        commit: 66f52575d03a2f74dc37d822ed84983aed4aea34
[17/32] clk: mediatek: mt8183: deduplicate clock gate drivers
        commit: 98e9bfc7b077a75dc5122dea28a40b3b0e43dcb8
[18/32] clk: mediatek: mt8183: use driver data to store the clock tree
        commit: 72c157c7e9bef30c4abe2179df65f9033217079c
[19/32] clk: mediatek: mt8516: deduplicate clock gate drivers
        commit: c74cf36d43511d915b3b3b557fd0e324b0b36d72
[20/32] clk: mediatek: mt8516: use driver data to store the clock tree
        commit: f1f627f1823010592fa90ffb8664a0ea39148f0b
[21/32] clk: mediatek: mt8518: deduplicate clock gate drivers
        commit: 84186fb05a7bae2ce8a378bee8e9fb89991faec1
[22/32] clk: mediatek: mt8518: use driver data to store the clock tree
        commit: 6dfb478c77ec08512a1b2041dfe1349aa81a4e2c
[23/32] clk: mediatek: mt8195: deduplicate clock gate drivers
        commit: 095ff3864fcdfb229b6de429b8c495b02f83f373
[24/32] clk: mediatek: mt8195: use driver data to store the clock tree
        commit: 356f09054558b88675ae3e437d769df5564fb7a0
[25/32] clk: mediatek: mt8365: deduplicate clock gate drivers
        commit: 155c7169c2cad7704e24182c25f9b8df924aea46
[26/32] clk: mediatek: mt8365: use driver data to store the clock tree
        commit: 39ee1d667e1c8bc59ca503b9faf7f03c051af2cc
[27/32] clk: mediatek: mt8512: deduplicate clock gate drivers
        commit: c12916afc9d011d5ca9e1435c67d576c904f2282
[28/32] clk: mediatek: mt8512: use driver data to store the clock tree
        commit: 8d35d3d110f11b9ca45e620f379b8ce29eb830b7
[29/32] clk: mediatek: mt8189: deduplicate clock gate drivers
        commit: 370316f4b4c0ddaa361c171965261cfa5503d2ac
[30/32] clk: mediatek: mt8189: use driver data to store the clock tree
        commit: 39164a7c87eedb582b068ad7195641b85a908021
[31/32] clk: mediatek: remove the dedicated clock gate code path
        commit: 11738176761de9ccb2670bf42a5b707dc4baacab
[32/32] clk: mediatek: get the clock tree from the driver data in 
mtk_common_clk_init
        commit: 70f453532192dd369a2c8dae2e4bc5ec8a4d9e97

Best regards,
-- 
David Lechner <[email protected]>

Reply via email to