MX7D_PAD_EPDC_DATA02__GPIO2_IO2 and MX7D_PAD_EPDC_DATA01__GPIO2_IO1 pad as output is not woking

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

MX7D_PAD_EPDC_DATA02__GPIO2_IO2 and MX7D_PAD_EPDC_DATA01__GPIO2_IO1 pad as output is not woking

611 Views
rahul_kumar3
Contributor I

Hi,

My processor is i.mx7d

I am facing problem when I configure MX7D_PAD_EPDC_DATA02__GPIO2_IO2 and MX7D_PAD_EPDC_DATA01__GPIO2_IO1 pad as output

When i make it as GPIO input pin. I can read logical value 0 and 1.

But when i configure it as output it sticks to 3.3v or 0v at output. But when i read that GPIO pin value the logical values changes internally but it physical values at output does not change according to logic.

I tried following configuration in iomux in dtb file

MX7D_PAD_EPDC_DATA01__GPIO2_IO1 0x14  // pull down 
MX7D_PAD_EPDC_DATA02__GPIO2_IO2 0x14

In this case it stuck at 0 logic

or

MX7D_PAD_EPDC_DATA01__GPIO2_IO1 0x54  // pull pull up 
MX7D_PAD_EPDC_DATA02__GPIO2_IO2 0x54 

In this case it stuck at 1 logic.

I am stuck. GPIO is not working as output.

I also noticed that above pin works with u-boot well but after kernel boot it does stuck.

Please provide solution to this problem

Labels (2)
0 Kudos
Reply
1 Reply

585 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello,

Please check that in your kernel dtb the pad being used (MX7D_PAD_EPDC) is not duplicated.

Also, how are your reading the output?
I see that you have not set the SION bit, from RM:

Configure IOMUX to select GPIO mode (Via IOMUXC), also enable SION if need to read loopback pad value through PSR.

Best regards,
Aldo.

0 Kudos
Reply