Hi Igor,
Thanks for your reply.
It looks like the clock driver, drivers/clk/imx/clk-imx8mm.c, defines the available clock sources for the GPT module in line 301:
301 static const char *imx8mm_gpt1_sels[] = {"osc_24m", "sys_pll2_100m", "sys_pll1_400m", "sys_pll1_40m",
302 "video_pll1_out", "sys_pll1_80m", "audio_pll1_out", "clk_ext1" };
This definition complies perfectly with Table 5-1.
However, the clock source is determined by bits 6-8 in the GPT control register, 12.1.5.1
How exactly are these 3 bits mapped to the structure imx8mm_gpt1_sels[]?
How can I figure out what is the frequency of "High Frequency Reference Clock (ipg_clk_highfreq)", or "Peripheral Clock (ipg_clk)"?
As I stated, any combination of bits I'm trying yields a maximum frequency of 24MHz. (I'm setting the prescaler to 1).
Can you please direct me how to set sys_pll2_100m as the clock source instead of osc_24m?
Thanks a lot,
Nir.