Skip to content

I2C in DSP IMX8MP #72299

Answered by iuliana-prodan
mbahmani90 asked this question in Q&A
May 3, 2024 · 6 comments · 2 replies
Discussion options

You must be logged in to vote

Hi @mbahmani90,

What Linux tree are you using?

I've tested on linux-imx (I recommend you to use this one) and, as you can see here for i2c3 you need to enable IMX8MP_CLK_I2C3_ROOT clock.

I've added a hack to have the clock always enabled (made it critical):

git diff
diff --git a/drivers/clk/imx/clk-imx8mp.c b/drivers/clk/imx/clk-imx8mp.c
index f918185a6e9b..01f2f48fbb36 100644
--- a/drivers/clk/imx/clk-imx8mp.c
+++ b/drivers/clk/imx/clk-imx8mp.c
@@ -673,7 +673,7 @@ static int imx8mp_clocks_probe(struct platform_device *pdev)
        hws[IMX8MP_CLK_GPT6_ROOT] = imx_clk_hw_gate4("gpt6_root_clk", "gpt6", ccm_base + 0x4150, 0);
        hws[IMX8MP_CLK_I2C1_ROOT] = imx_clk_hw_gate4("i2c1_root_c…

Replies: 6 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@mbahmani90
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@mbahmani90
Comment options

Answer selected by dbaluta
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment