07-22-2017, 04:17 PM
(This post was last modified: 07-22-2017, 04:20 PM by MarkHaysHarris777.)
By disabling the sdmmc for sdc0, and setting sdc0 to function gpio_in, muxsel 0x0, drive 0x0, (pinctrl and bindings) I have been able to set gpio160 - gpio165 ( PF0 - PF5 ) to ON | OFF with the sysfs method:
echo 160 > export
echo out > gpio160/direction
echo 1 > gpio160/value
echo 0 > gpio160/value
After bootup the gpio(s) were in default input (cmd and clk no longer strobing); all six gpio(s) were successfully exported, defined, and set ON|OFF. In the left pic above the right LED is Vdd monitor while the left LED is monitoring gpio160 which has just been set ON. In the right pic the gpio160 has been set OFF; Vdd still indicating 3v3 rail.
Note: the dts|dtb is static atm; will want to configure so that uEnv.txt controls dtb "on-the-fly" via variable.
Note: the SD card slot can be raw gpio(s) ; or SD card external storage ; or SPI (jtag, other)
Note: All of this assumes ofc that the pinebook is booted via eMMC; SD card slot is disabled for external storage
Note: option (2) sniffer adapter is less than expected; sloppy in the slot and difficult to control; the card needs to be just a tad thicker, and the latching mechanism needs to be better defined; may have to make our own cards !
marcushh777
please join us for a chat @ irc.pine64.xyz:6667 or ssl irc.pine64.xyz:6697
( I regret that I am not able to respond to personal messages; let's meet on irc! )
please join us for a chat @ irc.pine64.xyz:6667 or ssl irc.pine64.xyz:6697
( I regret that I am not able to respond to personal messages; let's meet on irc! )