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
Solved! Go to Solution.
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.
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.
Thanks Yuri,
I Check the document and configured accordingly... It worked for me..
-
Rajucm
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!
-----------------------------------------------------------------------------------------------------------------------