LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 02-14-2017, 06:53 AM   #1
mr.simo
Member
 
Registered: Feb 2010
Posts: 78

Rep: Reputation: 0
Beaglebone Black: setting MMC1 pins as GPIO


Hi all,

I am using a Beaglebone Black and I am trying to reconfigure some pins of the P8 connector as GPIO, for example, the P8_5 pin.

As shown here, all the P8 connectors are reconfigurable.

Yesterday I started this thread and I came up with the solution of using this tool which generates the dts automatically.

The dtbo file is generated successfully but it doesn't work...
They seems to be loaded:
Code:
cat /sys/bus/platform/drivers/bone_capemgr/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,BB-SPIDEV0
16: P-O-L-   1 Override Board Name,00A0,Override Manuf,bspm_P8_20_17
17: P-O-L-   2 Override Board Name,00A0,Override Manuf,bspm_P8_21_17
18: P-O-L-   3 Override Board Name,00A0,Override Manuf,bspm_P8_22_17
19: P-O-L-   4 Override Board Name,00A0,Override Manuf,bspm_P8_23_17
20: P-O-L-   5 Override Board Name,00A0,Override Manuf,bspm_P8_24_17
21: P-O-L-   6 Override Board Name,00A0,Override Manuf,bspm_P8_25_17
22: P-O-L-   7 Override Board Name,00A0,Override Manuf,bspm_P8_3_17
23: P-O-L-   8 Override Board Name,00A0,Override Manuf,bspm_P8_4_17
24: P-O-L-   9 Override Board Name,00A0,Override Manuf,bspm_P8_5_17
25: P-O-L-  10 Override Board Name,00A0,Override Manuf,bspm_P8_6_17
but dmesg output reports that the pins are already claimed for the mmc peripheral. Here is a cutted output of dmesg:

Code:
[   52.195166] bone_capemgr bone_capemgr: slot #5: 'Override Board Name,00A0,Override Manuf,bspm_P8_20_17'
[   52.216580] pinctrl-single 44e10800.pinmux: pin 44e10884.0 already requested by 481d8000.mmc; cannot claim for ocp:bs_pinmode_P8_20_0x17_pinmux
[   52.229772] pinctrl-single 44e10800.pinmux: pin-33 (ocp:bs_pinmode_P8_20_0x17_pinmux) status -22
[   52.238741] pinctrl-single 44e10800.pinmux: could not request pin 33 (44e10884.0) from group pinmux_bs_pinmode_P8_20_0x17  on device pinctrl-single
[   52.252145] bone-pinmux-helper ocp:bs_pinmode_P8_20_0x17_pinmux: Error applying setting, reverse things back
[   52.326758] pinctrl-single 44e10800.pinmux: pin 44e10884.0 already requested by 481d8000.mmc; cannot claim for ocp:bs_pinmode_P8_20_0x17_pinmux
[   52.339942] pinctrl-single 44e10800.pinmux: pin-33 (ocp:bs_pinmode_P8_20_0x17_pinmux) status -22
[   52.348992] pinctrl-single 44e10800.pinmux: could not request pin 33 (44e10884.0) from group pinmux_bs_pinmode_P8_20_0x17  on device pinctrl-single
[   52.362364] bone-pinmux-helper ocp:bs_pinmode_P8_20_0x17_pinmux: Error applying setting, reverse things back
[   52.372324] bone-pinmux-helper ocp:bs_pinmode_P8_20_0x17_pinmux: Failed to select default state
[   52.397242] ------------[ cut here ]------------
[   52.397336] WARNING: CPU: 0 PID: 1716 at drivers/base/devres.c:888 bone_pinmux_helper_probe+0x151/0x1c8()
[   52.397359] Modules linked in: snd_soc_hdmi_codec spidev snd_soc_simple_card omap_sham omap_aes_driver omap_rng rng_core tilcdc snd_soc_davinci_mcasp snd_soc_edma snd_soc_omap snd_soc_core snd_pcm_dmaengine snd_pcm snd_timer snd soundcore spi_omap2_mcspi evdev tda998x uio_pdrv_genirq uio bnep usb_f_ecm g_ether usb_f_rndis u_ether libcomposite bluetooth rfkill
[   52.397648] CPU: 0 PID: 1716 Comm: cut Not tainted 4.4.20-ti-r43 #1
[   52.397670] Hardware name: Generic AM33XX (Flattened Device Tree)
[   52.397745] [<c0015b81>] (unwind_backtrace) from [<c00123f9>] (show_stack+0x11/0x14)
[   52.397804] [<c00123f9>] (show_stack) from [<c03c99e3>] (dump_stack+0x73/0x80)
[   52.397872] [<c03c99e3>] (dump_stack) from [<c00310a3>] (warn_slowpath_common+0x6b/0x94)
[   52.397917] [<c00310a3>] (warn_slowpath_common) from [<c0031173>] (warn_slowpath_null+0x17/0x1c)
[   52.397958] [<c0031173>] (warn_slowpath_null) from [<c04afb35>] (bone_pinmux_helper_probe+0x151/0x1c8)
[   52.398011] [<c04afb35>] (bone_pinmux_helper_probe) from [<c0496aa7>] (platform_drv_probe+0x37/0x7c)
[   52.398055] [<c0496aa7>] (platform_drv_probe) from [<c049540b>] (driver_probe_device+0x193/0x344)
[   52.398111] [<c049540b>] (driver_probe_device) from [<c0493d81>] (bus_for_each_drv+0x51/0x80)
[   52.398154] [<c0493d81>] (bus_for_each_drv) from [<c04951b9>] (__device_attach+0x81/0xe8)
[   52.398192] [<c04951b9>] (__device_attach) from [<c04949af>] (bus_probe_device+0x5b/0x60)
[   52.398232] [<c04949af>] (bus_probe_device) from [<c04932d3>] (device_add+0x303/0x430)
[   52.398293] [<c04932d3>] (device_add) from [<c05c3eb9>] (of_platform_device_create_pdata+0x61/0x84)
[   52.398343] [<c05c3eb9>] (of_platform_device_create_pdata) from [<c05c3f6d>] (of_platform_notify+0x85/0xb8)
[   52.398400] [<c05c3f6d>] (of_platform_notify) from [<c0048f6b>] (notifier_call_chain+0x4b/0x68)
[   52.398450] [<c0048f6b>] (notifier_call_chain) from [<c00491a9>] (__blocking_notifier_call_chain+0x2d/0x3c)
[   52.398499] [<c00491a9>] (__blocking_notifier_call_chain) from [<c00491cf>] (blocking_notifier_call_chain+0x17/0x1c)
[   52.398549] [<c00491cf>] (blocking_notifier_call_chain) from [<c05c4bad>] (__of_changeset_entry_notify+0x65/0xa4)
[   52.398598] [<c05c4bad>] (__of_changeset_entry_notify) from [<c05c51e9>] (__of_changeset_apply+0x65/0x100)
[   52.398647] [<c05c51e9>] (__of_changeset_apply) from [<c05c8c4d>] (__of_overlay_create+0x2ed/0x46c)
[   52.398692] [<c05c8c4d>] (__of_overlay_create) from [<c04b043b>] (capemgr_load_slot+0x2df/0x45c)
[   52.398734] [<c04b043b>] (capemgr_load_slot) from [<c04b1a15>] (slots_store+0xf1/0x244)
[   52.398789] [<c04b1a15>] (slots_store) from [<c018a0a3>] (kernfs_fop_write+0x87/0x150)
[   52.398843] [<c018a0a3>] (kernfs_fop_write) from [<c0136e4d>] (vfs_write+0x65/0x12c)
[   52.398886] [<c0136e4d>] (vfs_write) from [<c013752b>] (SyS_write+0x3f/0x80)
[   52.398937] [<c013752b>] (SyS_write) from [<c000ec41>] (ret_fast_syscall+0x1/0x52)
[   52.398963] ---[ end trace 112c5f67b59b3ede ]---
[   52.399041] bone-pinmux-helper: probe of ocp:bs_pinmode_P8_20_0x17_pinmux failed with error -22
[   52.399767] bone_capemgr bone_capemgr: slot #5: dtbo 'bspm_P8_20_17-00A0.dtbo' loaded; overlay id #1
[   52.458545] bone_capemgr bone_capemgr: part_number 'bspm_P8_21_17', version 'N/A'
[   52.458614] bone_capemgr bone_capemgr: slot #6: override
[   52.458657] bone_capemgr bone_capemgr: Using override eeprom data at slot 6
[   52.458701] bone_capemgr bone_capemgr: slot #6: 'Override Board Name,00A0,Override Manuf,bspm_P8_21_17'
[   52.482362] pinctrl-single 44e10800.pinmux: pin 44e10880.0 already requested by 481d8000.mmc; cannot claim for ocp:bs_pinmode_P8_21_0x17_pinmux
[   52.495364] pinctrl-single 44e10800.pinmux: pin-32 (ocp:bs_pinmode_P8_21_0x17_pinmux) status -22
[   52.504230] pinctrl-single 44e10800.pinmux: could not request pin 32 (44e10880.0) from group pinmux_bs_pinmode_P8_21_0x17  on device pinctrl-single
[   52.517525] bone-pinmux-helper ocp:bs_pinmode_P8_21_0x17_pinmux: Error applying setting, reverse things back
[   52.553454] pinctrl-single 44e10800.pinmux: pin 44e10880.0 already requested by 481d8000.mmc; cannot claim for ocp:bs_pinmode_P8_21_0x17_pinmux
[   52.566500] pinctrl-single 44e10800.pinmux: pin-32 (ocp:bs_pinmode_P8_21_0x17_pinmux) status -22
[   52.575378] pinctrl-single 44e10800.pinmux: could not request pin 32 (44e10880.0) from group pinmux_bs_pinmode_P8_21_0x17  on device pinctrl-single
[   52.588675] bone-pinmux-helper ocp:bs_pinmode_P8_21_0x17_pinmux: Error applying setting, reverse things back
[   52.598564] bone-pinmux-helper ocp:bs_pinmode_P8_21_0x17_pinmux: Failed to select default state
[   52.612985] ------------[ cut here ]------------
I am quiet new to dts so I have some doubt.
How can I re-assing these pins successfully, disabling the mmc pins ?

Thank you in advance.
Simon
 
Old 06-21-2017, 11:26 AM   #2
bhboyle
LQ Newbie
 
Registered: Jun 2017
Posts: 2

Rep: Reputation: Disabled
Did you ever solve this?

Simon.

I am having the same problem with the same pin. Did you ever resolve this issue?
 
Old 06-22-2017, 02:17 AM   #3
mr.simo
Member
 
Registered: Feb 2010
Posts: 78

Original Poster
Rep: Reputation: 0
Hello bhboyle,

The solution was to comment the use of HDMI dedicated device-tree from uEnv.txt file, since by default settings, that pin and more others are dedicated to this purpose, and I did not need to use HDMI.

Regards,
Simon
 
Old 06-22-2017, 05:33 AM   #4
bhboyle
LQ Newbie
 
Registered: Jun 2017
Posts: 2

Rep: Reputation: Disabled
Great I will give that a try.

Thanks.
 
  


Reply

Tags
gpio


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Beaglebone Black physical address of pins mr.simo Linux - Hardware 4 02-13-2017 02:39 PM
Understanding of how to multiplex pins on Beaglebone black mrigendra Linux - Newbie 0 07-25-2016 05:48 PM
BananaPro, WiringLMK, i2c and GPIO pins justwantin Slackware - ARM 3 01-18-2016 02:35 AM
LXer: Get started using the GPIO pins in RasPi issue 2! LXer Syndicated Linux News 0 09-12-2014 09:33 PM
[SOLVED] Accessing GPIO-pins on a MPC8308E RDB (powerpc) Amys Linux - Embedded & Single-board computer 4 09-10-2010 07:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 02:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration