How to change GPIO default state in uboot

cancel
Showing results for 
Search instead for 
Did you mean: 

How to change GPIO default state in uboot

636 Views
ravirajns
Contributor II

Hi All,

We are using IMX6DL and facing issue in uboot to configure I2C2 signal to default pulled down. Below are details.

I2C 2 signals are connected peripheral and want this signal default to pulled down in IMX uboot.

1. MX6_PAD_KEY_COL3__GPIO4_IO12

2. MX6_PAD_KEY_ROW3__GPIO4_IO13

We have done changes in board_init function(board/freescale/mx6sabresd/mx6sabresd.c file) but still for ~200msec I2C signal are high.

As per our observation system takes ~200msec to reach   board_init() function where we have added code and due to this default I2C signals are high, once our added code execute signals goes low.

But we need default I2C signals should configure low.

What is the default I2C2 signal configurations?

How I can configure above I2C2 signals default pulled down.

Please provide inputs to resolve this issue.

Thanks,

Raviraj 

Labels (3)
Tags (3)
0 Kudos
3 Replies

171 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi Raviraj 

one can try to change gpio state in plugin:

uboot/board/freescale/mx6sabresd/plugin.S

plugin.S\mx6sabresd\freescale\board - uboot-imx - i.MX U-Boot 

described in  sect.8.7 Plugin image i.MX6DQ Reference Manual
https://www.nxp.com/docs/en/reference-manual/IMX6DQRM.pdf

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

0 Kudos

171 Views
ravirajns
Contributor II

Thanks for your inputs.

Where exactly need to add in board/freescale/mx6sabresd/plugin.S file, this is assembly file.

What is the default state of I2C2 pinmux?

Thanks,

Raviraj

0 Kudos

171 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi Raviraj

default pin state is described in Table 96. 21 x 21 mm Functional Contact Assignments

i.MX6DQ Datasheet

http://www.nxp.com/docs/en/data-sheet/IMX6DQCEC.pdf

https://community.nxp.com/thread/452162 

Best regards
igor

0 Kudos