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
In this case it stuck at 0 logic
MX7D_PAD_EPDC_DATA01__GPIO2_IO1 0x54 // pull pull up
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
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.