i.MX 8M Family DDR Tool can't support all I2C ports for i.MX8MP ?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i.MX 8M Family DDR Tool can't support all I2C ports for i.MX8MP ?

1,645 Views
george
Senior Contributor II


Hello @jan_spurek,

We are developing products using i.MX8M-Puls.
Our board uses the 5th I2C port for connection with the PMIC.

george_0-1692893236806.png

We added the following to the script file for MSCALE_DDR_Tool_v3.31.

 

#### PMIC Configuration (BUCK6 1.1V to 1.2V) for I2C5 ####

memory set	0x303301D4	32	0x00000002	#IOMUXC_SW_MUX_CTL_PAD_SPDIF_TX
memory set	0x303301D8	32	0x00000002	#IOMUXC_SW_MUX_CTL_PAD_SPDIF_RX
memory set	0x30330434	32	0x000000C6	#SW_PAD_CTL_PAD_SPDIF_TX
memory set	0x30330438	32	0x000000C6	#SW_PAD_CTL_PAD_SPDIF_RX

sysparam set	pmic_cfg	0x0425
sysparam set	pmic_set	0x1E18

 

But it doesn't seem to work.

george_1-1692891985900.png

The i.MX8M series (excluding PLUS) support 4-ports for I2C.
Only the PLUS has 6-ports for I2C, more than those.

So DDR Tool seems to be unable to use I2C5 and I2C6.

Could you please fix the DDR Tool so that our board can finish the DDR calibration?
It can be a preliminary version that can only use I2C5, we need it ASAP.

Thanks,
George

 

Labels (1)
Tags (1)
0 Kudos
Reply
7 Replies

1,600 Views
jan_spurek
NXP Employee
NXP Employee

Hi George,

thanks for reporting the issue. Indeed, I can see in the source code that the DDR Tool can only work with 4 I2C ports on i.MX8MPlus. Unfortunately, I am not the maintainer of the DDR Tool nor I have the build environment setup on my machine therefore, I need to ask a colleague of mine to help modifying the tool. 

@haidong_zheng , could you please help with the below request?

Thank you.

Best Regards,

Jan

1,582 Views
george
Senior Contributor II

Hello @jan_spurek,

Thank you for the reply.

We need this fix ASAP.
As mentioned in a previous post, it could be a temporary workaround like swapping the base addresses for I2C1 and I2C5.

@haidong_zheng, I hope you can help with this fix.

Thanks,
George

0 Kudos
Reply

1,539 Views
haidong_zheng
NXP Employee
NXP Employee

Hi @george :

 

I attached test bin you can test. 

Tags (1)
0 Kudos
Reply

1,461 Views
george
Senior Contributor II

Hello @haidong_zheng@jan_spurek,

Sorry, I couldn't report the results even though you modified the program immediately.
We have reviewed the .ds file and tried various things, but we see messages like this:

george_0-1693890918370.png

I tried to observe the I2C5 waveform with an oscilloscope, but I2C5 remains pulled up and there is no change.

Now I can calibrate by changing PMIC settings from external chip, so fixing DDR_TOOL is no longer urgent.

I'll report back a little later once my research has progressed further.

Thanks,
George

0 Kudos
Reply

1,452 Views
haidong_zheng
NXP Employee
NXP Employee

Hi @george :

 

Got it , thanks!

0 Kudos
Reply

1,524 Views
george
Senior Contributor II

Hello @haidong_zheng@jan_spurek

Sorry I was able to figure out what that file is.
Apparently you added changes to use I2C5 and I2C6.

we'll try.

Thanks,
George


0 Kudos
Reply

1,525 Views
george
Senior Contributor II

Hello @haidong_zheng@jan_spurek

Thank you for quick response.

Is it the .bin file and not a .exe file ?
Maybe this is an executable file on uboot ?

It would be helpful if you could provide some information on how to use this file

Thanks,
George

0 Kudos
Reply