Question, i.MX6Q LinuxBSP(I2C clock setting, ODT setting)

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

Question, i.MX6Q LinuxBSP(I2C clock setting, ODT setting)

Jump to solution
1,167 Views
Aemj
Contributor IV

Dear All,

My customer has two questions on Freescale LinuxBSP.

(1) I2C Clock setting (set in /linux/drivers/i2c/busses/i2c-imx.c)

The customer got the following information from his developing partner.

In the latest LinuxBSP, the variable value of i2c_clk_rate(used in i2c-imx.c) is revised and it is 22MHz.

In previous version of LinuxBSP, I2C SCL clock rate cannot be set to 400KHz because i2c_clk_rate value is 6MHz.

Is it true?

(2)ODT setting

In Freescale LinuxBSP, ODT field of IOMUXC_SW_PAD_CTL_GRP_RGMII_TERM is configured as default value(000 : Disabled).

Could you tell me whether the ODT setting in LinuxBSP is reasonable?

BR,

Miyamoto

Labels (1)
0 Kudos
1 Solution
801 Views
AnsonHuang
NXP Employee
NXP Employee

yes, 4.1.0 already include this patch, it is in arch/arm/mach-mx6/clock.c's init function.

View solution in original post

0 Kudos
6 Replies
801 Views
AnsonHuang
NXP Employee
NXP Employee

Hi,

     For I2C clock setting, yes, previous setting of ipg_per clock is 6MHz, as it is i2c's parent, so the i2c can NOT divide it to close to 400KHz, so there is a patch to increase ipg_per clock to 22MHz to support 400KHz speed of I2C.

     For the ODT setting, according to ENET owner's saying, our board did NOT need to enable this ODT as the PHY is near the SOC.

     Hope this info helpful.

0 Kudos
801 Views
seanchen
Contributor III

Dear Yongcai Huang,

I searched all BSP of iMX6 JB4.2, I can't found where can modify IOMUXC_SW_PAD_CTL_GRP_RGMII_TERM register.

Could you help to check this.

Thank you so much.

0 Kudos
801 Views
Aemj
Contributor IV

Hi Yongcai,

Thanks so much for your reply.

Where can I find the patch for ipg_per clock ?

Miyamoto

0 Kudos
801 Views
AnsonHuang
NXP Employee
NXP Employee

Hi,

     The patch is already there very long ago, you can just check our latest BSP release. There should a an external git for getting our BSP release package.

0 Kudos
801 Views
Aemj
Contributor IV

Hi Yongcai,

Was is fixed in your L3.0.35_4.1.0_ER_SOURCE_BSP?

0 Kudos
802 Views
AnsonHuang
NXP Employee
NXP Employee

yes, 4.1.0 already include this patch, it is in arch/arm/mach-mx6/clock.c's init function.

0 Kudos