Need know pullup configuration for i2c0 interface

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Need know pullup configuration for i2c0 interface

跳至解决方案
4,703 次查看
rajucm
Contributor III

Dear ALL,

we are using imx6qd processor.

We don't have external pull-up voltage on SDA and SCL line.

We need to enable internal pull-up voltage for i2c-0.

How to configure gpio pull-up on i2c-0?...

Thanks,

Raju

标签 (6)
标记 (5)
1 解答
3,772 次查看
Yuri
NXP Employee
NXP Employee

  Basically there are recommended values for I2C pull up resistors,

please refer to section 7.1 (Pull-up resistor sizing) of the I2C specs.

http://www.nxp.com/documents/user_manual/UM10204.pdf

Regards,

Yuri.

在原帖中查看解决方案

0 项奖励
回复
3 回复数
3,773 次查看
Yuri
NXP Employee
NXP Employee

  Basically there are recommended values for I2C pull up resistors,

please refer to section 7.1 (Pull-up resistor sizing) of the I2C specs.

http://www.nxp.com/documents/user_manual/UM10204.pdf

Regards,

Yuri.

0 项奖励
回复
3,772 次查看
rajucm
Contributor III

Thanks Yuri,

I Check the document and configured accordingly... It worked for me..

-

Rajucm

0 项奖励
回复
3,772 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Raju

pull up can be enabled on pad with IOMUXC_SW_PAD_CTL_PADxx Pad Control

Register field PUS (Pull Up / Down Config. Field) and refer to attached

Porting Guide Chapter 2 Configuring the IOMUX Controller.

In latest linux with device tree every pin needs to have its PAD configured

in the dts file. For example:

MX6QDL_PAD_GPIO_0__CCM_CLKO1      0x130b0

The explanation of what these values mean is available at:

Documentation/devicetree/bindings/pinctrl/fsl,imx6q-pinctrl.txt

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复