Dear Team,
I am writing to seek assistance regarding an issue I encountered with the pinmuxing of the AM335x GPIOs. Despite following the prescribed syntax for pinmuxing and compiling it successfully, I am facing difficulties when attempting to manipulate the voltage of the pinmuxed GPIO pins. Regardless of my efforts to set the voltage to either high or low, the pins seem to retain their default voltage.
Below, I have provided relevant details pertaining to the setup:
- Kernel Version: 5.15.82
- Yocto Version: 4.0.9 (Kirkstone)
Syntax Used:
/* GPIOs */
&am33xx_pinmux {
pinctrl-names = "default";
pinctrl-0 = <&user_gpios_pins>;
user_gpios_pins: pinmux-user-gpios {
pinctrl-single,pins = <
AM33XX_PADCONF(AM335X_PIN_GPMC_AD10, PIN_OUTPUT, MUX_MODE7) /* gpmc_ad10.lcd_data21.gpio0_26 */
>;
};
};
I kindly request your assistance in reviewing the provided syntax and identifying any potential mistakes or discrepancies. Additionally, if there are any recommendations or corrections regarding the GPIO pinmuxing format, I would greatly appreciate your guidance.
Thank you for your attention to this matter. I eagerly await your response.
Testing Process 1:
gpioinfo gpiochip0
gpioset gpiochip0 26=1
gpioget gpiochip0 26
Testing Process 2:
echo 26 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio26/direction
echo 1 > /sys/class/gpio/gpio26/value
echo 0 > /sys/class/gpio/gpio26/value
Please let me know if you need any further information or assistance.
Note: After performing the above tests, the voltage measured on the GPIO pin was consistently around 0.2 volts.
Thanks & Regards
Lokesh A