This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Can McASP pins on DM8168 be muxed to GPIO?

Guru 10685 points


In the datasheet I see that in the "muxed" column for information on the McASP pins, there is the word "PINCTRLxxxx".

Does this mean that the usage of the McASP pins can be changed? If so, how do I do that?

Thanks,
Ralph

  • Hi,

      Have you tried the debugfs module? I haven't used it for McASP but it could work:

    mount -t debugfs none /sys/kernel/debug
    cd /sys/kernel/debug/omap_mux
    grep -i mca * 

        then use cat or echo on the files to change the mode.

    -David

  • That is brilliant. Not sure why I didn't think of looking there before as I'm already using some other pins. For future reference here are the pins available:

    /sys/kernel/debug/omap_mux/mca2_axr1
    /sys/kernel/debug/omap_mux/mca2_axr0
    /sys/kernel/debug/omap_mux/mca2_amute
    /sys/kernel/debug/omap_mux/mca2_afsx
    /sys/kernel/debug/omap_mux/mca2_aclkhx
    /sys/kernel/debug/omap_mux/mca2_aclkx
    /sys/kernel/debug/omap_mux/mca2_afsr
    /sys/kernel/debug/omap_mux/mca2_ahclkr
    /sys/kernel/debug/omap_mux/mca2_aclkr
    /sys/kernel/debug/omap_mux/mca1_axr1
    /sys/kernel/debug/omap_mux/mca1_axr0
    /sys/kernel/debug/omap_mux/mca1_amute
    /sys/kernel/debug/omap_mux/mca1_afsx
    /sys/kernel/debug/omap_mux/mca1_aclkhx
    /sys/kernel/debug/omap_mux/mca1_aclkx
    /sys/kernel/debug/omap_mux/mca1_afsr
    /sys/kernel/debug/omap_mux/mca1_ahclkr
    /sys/kernel/debug/omap_mux/mca1_aclkr
    /sys/kernel/debug/omap_mux/mca0_axr5
    /sys/kernel/debug/omap_mux/mca0_axr4
    /sys/kernel/debug/omap_mux/mca0_axr3
    /sys/kernel/debug/omap_mux/mca0_axr2
    /sys/kernel/debug/omap_mux/mca0_axr1
    /sys/kernel/debug/omap_mux/mca0_axr0
    /sys/kernel/debug/omap_mux/mca0_amute
    /sys/kernel/debug/omap_mux/mca0_afsx
    /sys/kernel/debug/omap_mux/mca0_aclkhx
    /sys/kernel/debug/omap_mux/mca0_aclkx
    /sys/kernel/debug/omap_mux/mca0_afsr
    /sys/kernel/debug/omap_mux/mca0_ahclkr
    /sys/kernel/debug/omap_mux/mca0_aclkr