linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tony Lindgren <tony@atomide.com>
To: "Gupta, Pekon" <pekon@ti.com>
Cc: linux-omap <linux-omap@vger.kernel.org>,
	Ezequiel Garcia <ezequiel.garcia@free-electrons.com>,
	Stefan Roese <sr@denx.de>,
	Javier Martinez Canillas <javier@dowhile0.org>,
	"Quadros, Roger" <rogerq@ti.com>
Subject: Re: [PATCH v7 2/4] ARM: dts: am437x-gp-evm: add support for parallel NAND flash
Date: Tue, 27 May 2014 14:19:44 -0700	[thread overview]
Message-ID: <20140527211943.GG32336@atomide.com> (raw)
In-Reply-To: <20980858CB6D3A4BAE95CA194937D5E73EACE4F3@DBDE04.ent.ti.com>

* Gupta, Pekon <pekon@ti.com> [140519 23:10]:
> From: Tony Lindgren [mailto:tony@atomide.com]
> >* Gupta, Pekon <pekon@ti.com> [140519 21:07]:
> >> From: Tony Lindgren [mailto:tony@atomide.com]
> >> >* Pekon Gupta <pekon@ti.com> [140519 02:16]:
> >> >> Adds pinmux and DT node for Micron (MT29F4G08AB) x8 NAND device present on
> >> >> am437x-gp-evm board.
> >> >> (1) As NAND Flash data lines are muxed with eMMC, Thus at a given time either
> >> >>     eMMC or NAND can be enabled. Selection between eMMC and NAND is controlled:
> >> >>     (a) By dynamically driving following GPIO pin from software
> >> >>         SPI2_CS0(GPIO) == 0 NAND is selected (default)
> >> >>         SPI2_CS0(GPIO) == 1 eMMC is selected
> >> >>     (b) By statically using Jumper (J89) on the board
> >> >
> >> >So which MMC controller has eMMC then? How do we select which one we
> >> >have enabled in the am437x-gp-evm.dts by default?
> >> >
> >> If there is no Jumper on the board, then driving SPI2_CS0 before device
> >> probe decides the selection between NAND and eMMC. Therefore NAND
> >> pin-mux also includes SPI2_CS0 and enables PULLDOWN on it to select NAND.
> >
> >So do they share lines outside omap, not inside omap?
> >
> >The reason I'm asking is I'm worried about the conflicting
> >pinctrl settings if we try to use both. And I guess that's
> >not an issue if the muxing of lines is done outside the
> >omap?
> >
> Yes, the muxing is outside OMAP SoC, so if SPI2_CS0 is correctly
> driven it will not allow contention on GPMC line (as per board design).
> 
> On am437x-gp-evm board, SPI2_CS0 is used to:
> - route GPMC signals to selected device {eMMC | NAND}.
> - keep the de-selected device {eMMC | NAND} in reset.

OK thanks for clarifying that, applying into omap-for-v3.16/dt-v2.

Regards,

Tony

  reply	other threads:[~2014-05-27 21:19 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-19  9:15 [PATCH v7 0/4] add parallel NAND support for TI's new OMAPx and AMxx platforms (Part-2) Pekon Gupta
2014-05-19  9:15 ` [PATCH v7 1/4] ARM: dts: am335x-bone: add support for beaglebone NAND cape Pekon Gupta
2014-05-19 16:25   ` Tony Lindgren
2014-05-19 17:52     ` Gupta, Pekon
2014-05-19 18:16       ` Ezequiel Garcia
2014-05-19 18:22         ` Gupta, Pekon
2014-05-19 18:39         ` Robert Nelson
2014-05-19 18:51           ` Gupta, Pekon
2014-05-19 18:58             ` Robert Nelson
     [not found]               ` <DAEAC432-DB0E-4C30-9B85-71D8987FBF77@ti.com>
2014-05-19 19:22                 ` Robert Nelson
2014-05-19 20:01                   ` Kridner, Jason
2014-05-19 20:11                     ` Robert Nelson
2014-06-23  5:40     ` Gupta, Pekon
2014-06-23  5:48       ` Tony Lindgren
2014-06-23  6:13         ` Jason Kridner
2014-06-24  8:03           ` Gupta, Pekon
2014-05-19  9:15 ` [PATCH v7 2/4] ARM: dts: am437x-gp-evm: add support for parallel NAND flash Pekon Gupta
2014-05-19 22:06   ` Tony Lindgren
2014-05-20  4:06     ` Gupta, Pekon
2014-05-20  5:52       ` Tony Lindgren
2014-05-20  6:09         ` Gupta, Pekon
2014-05-27 21:19           ` Tony Lindgren [this message]
2014-05-19  9:15 ` [PATCH v7 3/4] ARM: dts: dra7: " Pekon Gupta
2014-05-19 22:12   ` Tony Lindgren
2014-05-19  9:15 ` [PATCH v7 4/4] ARM: dts: am43xx: fix starting offset of NAND.filesystem MTD partition Pekon Gupta
2014-05-19 22:12   ` 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=20140527211943.GG32336@atomide.com \
    --to=tony@atomide.com \
    --cc=ezequiel.garcia@free-electrons.com \
    --cc=javier@dowhile0.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=pekon@ti.com \
    --cc=rogerq@ti.com \
    --cc=sr@denx.de \
    /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;
as well as URLs for NNTP newsgroup(s).