How to change GPIO features in Beagle Board xM

Hi everyone,

I’m using BBxM Rev C2 board and trying to read gpio pins. But I have some trouble about it. I successfully read gpio139/MMC2_DAT7/MMC2_CLKIN/MMC3_DAT3/HSUSB3_TLL_NXT/MM3_RXDM but when I tried to read
**GPIO_156/**McBSP1_CLKR/McSPI4_CLK/SIM_CD or another pin like McSPI1_CS0/GPIO_174 I’m not able to success to read pins.

So I think that pins have different feature so I need to change this.

cd /sys/class/gpio/
echo 159 > export
cd /sys/class/gpio/gpio159
echo “in” > direction
cat value

for GPIO 139 is working but the others always value is ZERO .

Has any idea about change pin features…

Best Regards.

Hi,

Thanks for your reply ,

So which file I have to change. I 'm using TI DVSDK tools. I looked this video tutorial https://www.youtube.com/watch?v=Co85WsgLtto , but I could not find**/sys/kernel/debug/omap_mux** . How to do this.

cheers.

10 Haziran 2015 Çarşamba 11:28:10 UTC+3 tarihinde Erkan Güzeler yazdı:

Thanks for your reply ,

So which file I have to change. I 'm using TI DVSDK tools. I looked this
video tutorial https://www.youtube.com/watch?v=Co85WsgLtto , but I could
not find*/sys/kernel/debug/omap_mux *. How to do this.

Is debugfs mounted?

mount -t debugfs none /sys/kernel/debug

cheers,
-roger

Hi Roger,

I have just mounted it. and have seen some files but I don’t know where I have to start .

ls /sys/kernel/debug
asoc gpio omapdss tracing
bdi hid pm_debug usb
clock mmc0 sched_features vram

files like this.

cheers.
Erkan

10 Haziran 2015 Çarşamba 14:21:34 UTC+3 tarihinde Roger Quadros yazdı:

Erkan,

Hi Roger,

I have just mounted it. and have seen some files but I don't know where I
have to start .

ls /sys/kernel/debug
asoc gpio omapdss tracing
bdi hid pm_debug usb
clock mmc0 sched_features vram

files like this.

What kernel version are you on?
Can you please try with v4.0 or v4.1-rc7?

cheers,
-roger

Hi Roger,

Thanks for you replay. I’m using 2.6.32 kernel and I changed pin modes in u-boot beagle.h library and compile kernel so it works but another method how to do it.
I cant do that like open_mux. I need to learn to do it.

Cheers,
-Erkan

11 Haziran 2015 Perşembe 10:05:11 UTC+3 tarihinde Roger Quadros yazdı:

Erkan,

Hi Roger,

Thanks for you replay. I'm using 2.6.32 kernel and I changed pin modes in
u-boot beagle.h library and compile kernel so it works but another method
how to do it.
I cant do that like open_mux. I need to learn to do it.

Looks like that omap_mux debugfs feature was introduced in 2.6.33.
So you can't do it using debugfs on your current kernel.

Why are you using such an old kernel? How about giving v4.0 a try?

cheers,
-roger