From: Nishanth Menon <nm@ti.com>
To: Roger Quadros <rogerq@ti.com>, Tony Lindgren <tony@atomide.com>
Cc: dt list <devicetree@vger.kernel.org>,
george.cherian@ti.com, Sekhar Nori <nsekhar@ti.com>,
"Balbi, Felipe" <balbi@ti.com>,
linux-omap <linux-omap@vger.kernel.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCH 1/4] ARM: dts: dra72-evm: Add NAND support
Date: Tue, 21 Oct 2014 12:32:11 -0500 [thread overview]
Message-ID: <20141021173211.GA13160@kahuna> (raw)
In-Reply-To: <CAGo_u6q5SO74FYK61Zyx-oweiui=zatJzWjomVm7y6VES+a7Kg@mail.gmail.com>
On 12:16-20141021, Nishanth Menon wrote:
> On Tue, Oct 21, 2014 at 11:43 AM, Nishanth Menon <nm@ti.com> wrote:
> > Roger,
> >
> > On 10/21/2014 05:41 AM, Roger Quadros wrote:
> >> DRA72-evm has a 256MB 16-bit wide NAND chip. Add
> >> pinmux and NAND node.
> >>
> >> The NAND chips 'Chip select' and 'Write protect' can be
> >> controlled using DIP Switch SW5. To use NAND,
> >> the switch must be configured like so:
> >>
> >> SW5.1 (NAND_SELn) = ON (LOW)
> >> SW5.9 (GPMC_WPN) = OFF (HIGH)
> >
> > Could we move this description to the dts as a comment? it would be
> > little more easier to refer to than figuring it out from git log. I
> > recollect trying to figure this out while attempting to test out NAND
> > previously, never actually thought to check in git log. just a
> > suggestion..
>
> [...]
>
> >> +&gpmc {
> >> + status = "okay";
> >> + pinctrl-names = "default";
> >> + pinctrl-0 = <&nand_default>;
> >> + ranges = <0 0 0 0x01000000>; /* minimum GPMC partition = 16MB */
> >> + nand@0,0 {
> >> + /* To use NAND, DIP switch SW5 must be set like so:
^^ minor:
/*
* To use NAND,....
> >> + * SW5.1 (NAND_SELn) = ON (LOW)
> >> + * SW5.9 (GPMC_WPN) = OFF (HIGH)
> >> + */
>
> [...]
>
> Uggh.. ignore my comment - I see you already did that.. my bad.. i missed it :(
>
> Quickly trying to test this, I got the following:
> "
>
> [ 1.840728] omap-gpmc 50000000.gpmc: GPMC revision 6.0
> [ 1.847290] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xca
> [ 1.854003] nand: Micron MT29F2G16ABAEAWP
> [ 1.858245] nand: 256MiB, SLC, page size: 2048, OOB size: 64
> [ 1.864227] omap2-nand omap2-nand.0: CONFIG_MTD_NAND_OMAP_BCH not enabled
> [ 1.871459] omap2-nand: probe of omap2-nand.0 failed with error -22
> "
>
> Full log: http://hastebin.com/ozugepemin.md
>
> Does this depend on
> http://marc.info/?l=linux-omap&m=141389532511600&w=2 to function? I
> assume yes.
looks like we'd want Tony to enable CONFIG_MTD_NAND_OMAP_BCH in
omap2plus_defconfig?
With that, it works like a charm..
http://slexy.org/raw/s29rfTTWB4
Feel free to add my:
Tested-by: Nishanth Menon <nm@ti.com>
Acked-by: Nishanth Menon <nm@ti.com>
--
Regards,
Nishanth Menon
next prev parent reply other threads:[~2014-10-21 17:32 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-21 10:41 [PATCH 0/4] ARM: dts: dra72-evm: NAND and USB support Roger Quadros
2014-10-21 10:41 ` [PATCH 1/4] ARM: dts: dra72-evm: Add NAND support Roger Quadros
2014-10-21 16:43 ` Nishanth Menon
2014-10-21 17:16 ` Nishanth Menon
2014-10-21 17:32 ` Nishanth Menon [this message]
2014-10-28 15:04 ` Roger Quadros
2014-10-21 10:41 ` [PATCH 2/4] ARM: dts: DRA7: Move USB_OTG 4 to dra74x.dtsi Roger Quadros
2014-10-21 10:41 ` [PATCH 3/4] ARM: dts: dra72-evm: Enable USB support for dra72-evm Roger Quadros
2014-10-21 10:41 ` [PATCH 4/4] ARM: dts: dra72-evm: Add regulator information to USB2 PHYs Roger Quadros
2014-10-30 14:36 ` [PATCH 0/4] ARM: dts: dra72-evm: NAND and USB support Roger Quadros
2014-11-10 20:26 ` 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=20141021173211.GA13160@kahuna \
--to=nm@ti.com \
--cc=balbi@ti.com \
--cc=devicetree@vger.kernel.org \
--cc=george.cherian@ti.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-omap@vger.kernel.org \
--cc=nsekhar@ti.com \
--cc=rogerq@ti.com \
--cc=tony@atomide.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;
as well as URLs for NNTP newsgroup(s).