On Fri, Jan 13, 2017 at 12:12 AM, zaenal abidin
<[email protected]> wrote:
> Example: default pin p8_3 is gmc_ad6 (mode0). I want to change  that pin to
> mode7(gpio1_6)
> How to change? I cant solve it..still mode0

It seems that P8_3 is used by the eMMC by default.  I am using Debian
8.6 (2016-11-27).  When I first tried config-pin for that pin, I got
this error:

debian@beaglebone:~$ config-pin -q P8.3
P8_03 pinmux file not found!
cape-universala overlay not found
run "config-pin overlay cape-universala" to load the cape

I edited /boot/uEnv.txt to use dtb that disables eMMC and enabled
cape-universala:

uname_r=4.4.39-ti-r79
dtb=am335x-boneblack-overlay.dtb
cmdline=coherent_pool=1M quiet cape_universal=enable
cape_enable=bone_capemgr.enable_partno=cape-universala

After rebooting, the cape-universala overlay is loaded:

debian@beaglebone:~$ cat /sys/devices/platform/bone_capemgr/slots
 0: PF----  -1
 1: PF----  -1
 2: PF----  -1
 3: PF----  -1
 4: P-O-L-   0 Override Board Name,00A0,Override Manuf,cape-universala

P8_3 can now be set in GPIO mode with config-pin:

debian@beaglebone:~$ sudo config-pin -q P8.3
P8_03 Mode: default Direction: in Value: 1

debian@beaglebone:~$ sudo config-pin -l P8.3
default gpio gpio_pu gpio_pd

debian@beaglebone:~$ sudo config-pin P8.3 gpio

debian@beaglebone:~$ sudo config-pin -q P8.3
P8_03 Mode: gpio Direction: in Value: 1


-drew

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAEf4M_AmOA9D%3DCr7%2BDtag4mXGptV%2BOqWSCD8kfs1foQBjgeqzQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to