GPIO pins SD pins as GPIO pins
-
@crispyoz
How to use SD_CD pin 23 & SD_WD pin 22 as GPIO pins.
-
@Nagarjuna-Reddy Check out the doc here
-
@crispyoz
they don't mention how to utilize SDIO pins clearly. They have mentioned clearly below the GPIO pins
-
@Nagarjuna-Reddy I can't test this right now, but first I think you need to remove the sdcard module as it will likely be managing the registers:
rmmod mtk_sd
Then I expect you can use the GPIO like so:
gpioctl dirout-high 22
gpioctl get 22
gpioctl dirout-low 22
gpioctl get 22cat /sys/class/gpio/gpio22/value
-
@crispyoz
gpio 22 not createdcd /sys/class/gpio/
root@Omega-6834:/sys/class/gpio# ls
export gpiochip0 gpiochip32 gpiochip64 unexport
root@Omega-6834:/sys/class/gpio# ls
export gpiochip0 gpiochip32 gpiochip64 unexporti enabled high gpio22, but voltages not showing.
-
@crispyoz said in GPIO pins SD pins as GPIO pins:
rmmod mtk_sd
Then I expect you can use the GPIO like so:
gpioctl dirout-high 22
gpioctl get 22
gpioctl dirout-low 22
gpioctl get 22
cat /sys/class/gpio/gpio22/valuevoltage always showing HIGH. LOW method not happening.
SD_WP_21 always showing HIGH(3.45V)
SD_CD_23 always showing HIGH(3.45V)