[PATCH v2 0/5] clk: mediatek: mt8188: fix clocks

Julien Stephan jstephan at baylibre.com
Mon Feb 2 13:41:48 CET 2026


I recently submitted the clock driver for MT8188. I naively submitted a driver that was ported
from the kernel driver, and mostly work to boot a kernel.

Recently David Lechner, added support for the clk dump command for
Mediatek clock drivers, so I used it to check the MT8188 and found
several issues fixed on this series:

- removed topckgen_cg, gates are now part of topckgen
- fixed several parents clocks
- added missing fixed clocks

While at it, I also refactored a bit the driver to improve readability,
and future additions to it.

Cheers
Julien

Signed-off-by: Julien Stephan <jstephan at baylibre.com>
---
Changes in v2:
- Add the CLK_TOP_FULL_NR_CLK macro and fix initialization of mt8188_id_top_offs_map
- Rebased on master
- Link to v1: https://lore.kernel.org/r/20260123-mt8188-fix-clock-v1-0-e355352bf405@baylibre.com

---
Julien Stephan (5):
      clk: mediatek: mt8188: remove separate topckgen-cg driver
      clk: mediatek: mt8188: fix circular clock dependency
      clk: mediatek: mt8188: add missing fixed clock
      clk: mediatek: mt8188: fix some clock parents
      clk: mediatek: mt8188: refactor driver to improve readability

 drivers/clk/mediatek/clk-mt8188.c | 631 ++++++++++++++++++--------------------
 1 file changed, 295 insertions(+), 336 deletions(-)
---
base-commit: cbc75552aec49fa190f3ac1ad8e198ac3a2e4ef2
change-id: 20260116-mt8188-fix-clock-7a30fe9e3cc0

Best regards,
-- 
Julien Stephan <jstephan at baylibre.com>



More information about the U-Boot mailing list