All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tony Lindgren <tony@atomide.com>
To: John Faith <jfaith7@gmail.com>
Cc: linux-omap@vger.kernel.org
Subject: Re: Board mux entries ignored?
Date: Thu, 5 Aug 2010 09:54:24 +0300	[thread overview]
Message-ID: <20100805065423.GU9881@atomide.com> (raw)
In-Reply-To: <AANLkTimYgkviKVfXNpQB9vsjSZyMdxuwkrXYQHSb02wY@mail.gmail.com>

* John Faith <jfaith7@gmail.com> [100804 22:22]:
> Hi,
> I'm trying to set mux modes for a 3530, package CBC in my board.c
> (2.6.32 kernel) using an omap_board_mux entry:
>  OMAP3_MUX(GPMC_WAIT1, OMAP_MUX_MODE0 | OMAP_PIN_INPUT),
> 
> , but sysfs reports mode4:
> # grep WAIT1 /sys/kernel/debug/omap_mux/board
> OMAP3_MUX(GPMC_WAIT1, OMAP_PIN_INPUT | OMAP_MUX_MODE4),
> 
> I tried adding to bootargs "omap_mux=gpmc_wait1.gpmc_wait1=0x100", but
> still got MODE4.  Doing "echo 0x100 >
> /sys/kernel/debug/omap_mux/gpmc_wait1" gave me MODE0, but I'd prefer
> to init pins in board.c.  I've also noticed for pin SDMMC2_DAT3 that
> my OMAP3_MUX() entry specifies MODE1, but sysfs shows MODE4; it
> changed to MODE1 after adding:
>  omap_mux_init_signal("mcspi3_cs0", OMAP_PIN_OUTPUT);
> 
> Is just having the mode in omap_board_mux entries sufficient?

Hmm that should be enough. Does dmesg | grep -i mux show any errors?

You do have CONFIG_OMAP_MUX set, right? Otherwise omap_mux_init_signals
does not do anything, and the mux code just builds a list of GPIO
pins for PM runtime muxing (not implemented yet).

Regards,

Tony

  reply	other threads:[~2010-08-05  6:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-04 19:28 Board mux entries ignored? John Faith
2010-08-05  6:54 ` Tony Lindgren [this message]
2010-08-05 16:14   ` John Faith
2010-08-06  9:06     ` Tony Lindgren

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=20100805065423.GU9881@atomide.com \
    --to=tony@atomide.com \
    --cc=jfaith7@gmail.com \
    --cc=linux-omap@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.