From: Tony Lindgren <tony@atomide.com>
To: Peter Barada <peter.barada@gmail.com>
Cc: linux-omap@vger.kernel.org
Subject: Re: Problem specifying which gpio_126 to use on omap353x
Date: Thu, 18 Feb 2010 09:43:57 -0800 [thread overview]
Message-ID: <20100218174357.GR21755@atomide.com> (raw)
In-Reply-To: <738b3f7e1002180839x62a17dct381eed020642b91d@mail.gmail.com>
* Peter Barada <peter.barada@gmail.com> [100218 08:36]:
> On my board I have an isp1760 hooked up using gpio_126 (pin P27 -
> MMC1_DAT4/SIM_IO/GPIO_126). From the schematics (and TRM), there is a
> 2nd gpio_126 on pin D25 (CAM_STROBE/GPIO_126).
>
> I tried to use:
>
> #define ISP1760_IRQ 126
>
> omap_mux_init_gpio(ISP1760_IRQ, OMAP_PIN_INPUT_PULLUP);
> if (gpio_request(ISP1760_IRQ, "isp1760 IRQ") < 0) {
> printk(KERN_ERR "Failed to request GPIO%d for isp1760IRQ\n", ISP1760_IRQ);
> return;
> }
>
> And in the log I see:
>
> mux: Multiple gpio paths for gpio126
> mux: Multiple gpio paths for gpio126
> Failed to request GPIO126 for isp1760 IRQ
>
> How do I tell gpio_request()and friends that I want to use GPIO_126 on
> pin P27, not GPIO_126 on pin D25?
For omap_mux_init_signal you need to use the full signal name.
So something like "sdmmc1_dat4.gpio_126" should work with
omap_mux_init_signal.
I guess at some point we could patch to omap_mux_init_gpio to call
omap_mux_init_signal if the full path is specified.
I guess you already know this, but you also need to check the packaging
you're using as the pin numbering is package specific. If you have the
system booting, it's easiest to look under omap_mux under debugfs. Or
search in mux34xx.c.
Also, the data is generated from TRMs, and there may be some errors in
the data too.
Regards,
Tony
prev parent reply other threads:[~2010-02-18 17:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-18 16:39 Problem specifying which gpio_126 to use on omap353x Peter Barada
2010-02-18 17:43 ` Tony Lindgren [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100218174357.GR21755@atomide.com \
--to=tony@atomide.com \
--cc=linux-omap@vger.kernel.org \
--cc=peter.barada@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox