Hi Vikram,
Please check this file for the iMX233 where i have exported a unitialized pin and can change the direction to input/output. By default the pllup is set to HIGH
.pull = 1,
.pullup = 1,
.voltage = PAD_3_3V,
.strength = PAD_12MA,
Changing this configuration gives the appropriate output (Voltage) and configured current (Check pinctrl.h) for more details!.
Once the pin is exported by
DEVICE:
echo 71 >>/sys/class/gpio/export // configures the PIN ROTARYA(Bank 2, Pin 7) for Pin 71.
echo "out" >>/sys/class/gpio/gpio71/direction
echo 1 >>/sys/class/gpio/gpio71/value
Check the voltage on the configured pin(71) on the board - must be unpopulated for Evk233. This should change acording to echo value of 1/0 according to the set voltage (1.8/3.3V)
GPIO
Good Luck!.