So, I think *maybe* I might have narrowed down the problem. My assumption is that gpio64(gpio2_0) is perhaps set
default by the processor to an output. Until the pin is exported via the sysfs gpio mechanism. One only need to export the pin and then everything works fine. I'll confirm this later with an oscilloscope reading later to backup my assumption. With that said I dug through all the include files, headers, and whatnot. Conspicuously there was mention of emmc_pins for the green overlay file, but gpio2_0 was not muxed in the file am335x-bone-common.dtsi.
Worklog below, and yes this did physically toggle an LED on our test fixture.
debian@beaglebone:~$ ls /sys/class/gpio
export gpio115 gpiochip0 gpiochip32 gpiochip64 gpiochip96 unexport
debian@beaglebone:~$ sudo sh -c "echo '64' > /sys/class/gpio/export"
debian@beaglebone:~$ ls /sys/class/gpio
export gpio115 gpio64 gpiochip0 gpiochip32 gpiochip64 gpiochip96 unexport
debian@beaglebone:~$ cat /sys/class/gpio/gpio64/direction
in
debian@beaglebone:~$ cat /sys/devices/platform/
alarmtimer/ fixedregulator@0/ omap-pcm-audio/ pmu/ serial8250/ ti-cpufreq.0/
bone_capemgr/ leds/ opp_table0/ power/ snd-soc-dummy/ uevent
cpufreq-dt/ ocp/ pm33xx.0/ reg-dummy/ soc/
debian@beaglebone:~$ cat /sys/devices/platform/
alarmtimer/ fixedregulator@0/ omap-pcm-audio/ pmu/ serial8250/ ti-cpufreq.0/
bone_capemgr/ leds/ opp_table0/ power/ snd-soc-dummy/ uevent
cpufreq-dt/ ocp/ pm33xx.0/ reg-dummy/ soc/
debian@beaglebone:~$ cat /sys/devices/platform/bone_capemgr/slots
0: PF---- -1
1: PF---- -1
2: PF---- -1
3: PF---- -1
debian@beaglebone:~$ sudo sh -c "echo '48' > /sys/class/gpio/export"
debian@beaglebone:~$ cat /sys/class/gpio/gpio48/direction
in
debian@beaglebone:~$ sudo sh -c "echo '51' > /sys/class/gpio/export"
debian@beaglebone:~$ cat /sys/class/gpio/gpio51/direction
in
debian@beaglebone:~$ sudo sh -c "echo 'out' > /sys/class/gpio/gpio51/direction"
debian@beaglebone:~$ cat /sys/class/gpio/gpio51/direction
out
debian@beaglebone:~$ sudo sh -c "echo '1' > /sys/class/gpio/gpio51/value"
debian@beaglebone:~$ sudo sh -c "echo '0' > /sys/class/gpio/gpio51/value"