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
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a
virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month.
Click here for more info.
02-14-2017, 06:53 AM
#1
Member
Registered: Feb 2010
Posts: 78
Rep:
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
06-21-2017, 11:26 AM
#2
LQ Newbie
Registered: Jun 2017
Posts: 2
Rep:
Did you ever solve this?
Simon.
I am having the same problem with the same pin. Did you ever resolve this issue?
06-22-2017, 02:17 AM
#3
Member
Registered: Feb 2010
Posts: 78
Original Poster
Rep:
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
06-22-2017, 05:33 AM
#4
LQ Newbie
Registered: Jun 2017
Posts: 2
Rep:
Great I will give that a try.
Thanks.
All times are GMT -5. The time now is 12:54 AM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News