UARTA_RTS / SODIMM pIN_27 AS GPIO

How to disable SODIMM PIN 27 AS UARTA_RTS AND use as Gpio
We have removed uart-has-rtscts; IN DEVIcE TREE FOR UARTA

and removed the belwo in uboot
//MX7D_PAD_SAI2_TX_BCLK__UART1_DTE_CTS | MUX_PAD_CTRL(UART_PAD_CTRL),
//MX7D_PAD_SAI2_TX_SYNC__UART1_DTE_RTS | MUX_PAD_CTRL(UART_PAD_CTRL),
};

but still we are unable to access the SODIMM PIN 27 as GPIO

You also need to adjust a pinmuxing. Please check this articles:

We have changed in the devcie tree for SODIMM PIN 27 as below MX7D_PAD_SAI2_TX_BCLK__GPIO6_IO20 ((1 << 30) | 0x74) // SODIMM 27

added below also for &uart1 node /delete-property/uart-has-rtscts;

but still the output is not coming on the sodimm 27 it always shows 0 on multimeter

below commands are used echo 180 > /sys/class/gpio/export echo “out” > /sys/class/gpio/gpio180/direction echo 1 > /sys/class/gpio/gpio180/value

Same thing happens on some other pins.

where as some sodimm pins like 107/133 37 etc works fine

please help us in resolving

Hi @zecons

Could you please share the git diff and dmesg log?

dmesg attached link text

Hi @zecons

I quickly tested and it is working for me. hereby I’m attaching my git diff