Part Number: DRA821U
Hi Team,
I had previously posted a query regarding GPIO toggling in the below forum thread. However, due to a technical issue, I am unable to reply in the same discussion thread:
https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1644577/dra821u-issue-with-gpio-toggle
Therefore, I am sharing the details here.
Below is the pin configuration used for WKUP_GPIO0_1:
&wkup_pmx2 {
pinctrl-names = "default";
pinctrl-0 = <&wkup_pmx2_default_pins>;
wkup_pmx2_default_pins: wkup-pmx2-default-pins {
pinctrl-single,pins = <
J721E_WKUP_IOPAD(0x05c, PIN_OUTPUT, 7) /* (B19) WKUP_GPIO0_1 */
>;
};
};
I tried to control the GPIO using the below commands:
echo 513 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio513/direction
echo 1 > /sys/class/gpio/gpio513/value
I also tested using gpioset:
gpiodetect
gpiochip0 [42110000.gpio] (85 lines)
gpiochip1 [600000.gpio] (69 lines)
gpiochip2 [0-0048] (11 lines)
gpioset -c 0 1=1
Since there is no LED connected to this GPIO for indication, I would like to know how to verify through kernel logs or debug interfaces whether the GPIO is actually toggling high or low.
Could you please suggest the proper method to confirm the GPIO status from the software side?
Best Regards,
Ashwini