Part Number: AM5728
Tool/software: Linux
Hello, I've been working on an AM5728-derived device, and I require several pins to be accessible to a program running on the SoC as GPIO pins. I understand the sysfs system, but I'm curious as to how the GPIO pins can be persistently accessible in the /sys/class/gpio directory. Is there a way to do it in the device tree? This GPIO would be a basic 'is-it-set-or-is-it-not' setup, no special drivers required.
I've also been having trouble changing the USER buttons on the AM572x EVM to be just GPIO, rather than directional keys, with no success. So far all I've really done is comment out the USER1 node, then try and export it in the sysfs. However, when I use the device tree with the USER1 button commented out, the EVM fails to boot. The error I'm receiving is that the kernel cannot find mmcblk0p2, which is the primary rootfs partition. Why would the OS fail to boot when a single GPIO node is removed?