已解决! 转到解答。
is this the same questions as your another two clock case? we don't have special clock document for imx8mp, what linux code do you mean? clk-i.mx8mp.c? I didn't find IPG_AUDIO_CLK_ROOT as you mentions, give me the detailed linxu code
It's not the same. This is imx8mp clock, not HDMI. the same branch with the two clock case, but the c file is the "drivers/clk/imx/clk-imx8mp.c", below is the code snippet of the IMX8MP_CLK_IPG_AUDIO_ROOT.
/* IPG */
clks[IMX8MP_CLK_IPG_ROOT] = imx_clk_divider2("ipg_root", "ahb_root", base + 0x9080, 0, 1);
clks[IMX8MP_CLK_IPG_AUDIO_ROOT] = imx_clk_divider2("ipg_audio_root", "audio_ahb", base + 0x9180, 0, 1);
the offset 0x9180 can't be found in datasheet,
AUDIO_AHB_CLK_ROOT belongs to AHB clock, you can find:
/* AHB */ clks[IMX8MP_CLK_AHB] = imx8m_clk_composite_critical("ahb_root", imx8mp_ahb_sels, base + 0x9000); clks[IMX8MP_CLK_AUDIO_AHB] = imx8m_clk_composite("audio_ahb", imx8mp_audio_ahb_sels, base + 0x9100); clks[IMX8MP_CLK_MIPI_DSI_ESC_RX] = imx8m_clk_composite("mipi_dsi_esc_rx", imx8mp_mipi_dsi_esc_rx_sels, base + 0x9200); clks[IMX8MP_CLK_MEDIA_DISP2_PIX] = imx8m_clk_composite("media_disp2_pix", imx8mp_media_disp2_pix_sels, base + 0x9300);
it seems the table in the RM missed the another audio IPG clock, you can just refer to the source code, maybe the document team will add this in the official released version