* fsl upm NAND Flash issue without GPIO chip handler
@ 2010-01-19 12:40 nanda
2010-01-19 17:13 ` Scott Wood
0 siblings, 1 reply; 4+ messages in thread
From: nanda @ 2010-01-19 12:40 UTC (permalink / raw)
To: wg, avorontsov; +Cc: linuxppc-dev
[-- Attachment #1: Type: text/plain, Size: 1132 bytes --]
We had merged the 2.6.24 with the FSL based NAND driver, we observed that gpio library is mandatory to be included. We have not included the gpios configured in the dts file as the we don’t have the separate GPIO chip(arch/powepc/boot/dts/board.dts).
After executing the image in the board, we observed the below
1) The device ID and manufacture Id was printed as "c0" and "c0" and the error message "No NAND device found!!!". Does it mean it is not accessing the NAND flash and the values read are junk one?
2) Processor of the board doesn’t connect the Ready/Busy of the NAND flash through the separate GPIO chip. I mean it is directly connected from GPIO Port C of PIN 15 to the Ready/Busy PIN of the NAND flash. Hence is it necessary to port the gpio specific functions like gpio_request/gpio_free(specified in fsl_upm.c file), instead should we need to configure the PIN par_io_config_pin() for configuration of the PORT C with 15th PIN and set the data value using par_io_data_set() (specified arch/powerpc/sysdev/qe_lib/qe_io.c)
Please let me know any input on the above issue.
Thanks in advance
Regards,
Nanda
[-- Attachment #2: Type: text/html, Size: 1608 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: fsl upm NAND Flash issue without GPIO chip handler
2010-01-19 12:40 nanda
@ 2010-01-19 17:13 ` Scott Wood
0 siblings, 0 replies; 4+ messages in thread
From: Scott Wood @ 2010-01-19 17:13 UTC (permalink / raw)
To: nanda; +Cc: linuxppc-dev, avorontsov
nanda wrote:
>
> We had merged the 2.6.24
That's pretty old...
> with the FSL based NAND driver,
Which one? Which chip are you using, and how is NAND attached to it?
> we observed that gpio library is mandatory to be included. We have not included the
> gpios configured in the dts file as the we don’t have the separate GPIO
> chip(arch/powepc/boot/dts/board.dts).
What separate GPIO chip? Which "board.dts" are you looking at?
> After executing the image in the board, we observed the below
> 1) The device ID and manufacture Id was printed as "c0" and "c0" and the
> error message "No NAND device found!!!". Does it mean it is not
> accessing the NAND flash and the values read are junk one?
> 2) Processor of the board doesn’t connect the Ready/Busy of the NAND
> flash through the separate GPIO chip. I mean it is directly connected
> from GPIO Port C of PIN 15 to the Ready/Busy PIN of the NAND flash.
> Hence is it necessary to port the gpio specific functions like
> gpio_request/gpio_free(specified in fsl_upm.c file), instead should we
> need to configure the PIN par_io_config_pin() for configuration of the
> PORT C with 15th PIN and set the data value using par_io_data_set()
> (specified arch/powerpc/sysdev/qe_lib/qe_io.c)
Have you tried pointing the "gpios" property at pin 15 of port C? The
whole point of this abstraction is that these connections are described
in the data, not in the code.
-Scott
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Re: fsl upm NAND Flash issue without GPIO chip handler
@ 2010-01-20 18:11 nanda
2010-01-20 18:39 ` Scott Wood
0 siblings, 1 reply; 4+ messages in thread
From: nanda @ 2010-01-20 18:11 UTC (permalink / raw)
To: scottwood; +Cc: linuxppc-dev, avorontsov
[-- Attachment #1: Type: text/plain, Size: 2177 bytes --]
my response inlined..
On Tue, 19 Jan 2010 22:41:25 +0530 wrote
>nanda wrote:
>
> We had merged the 2.6.24
That's pretty old...
>> We were using 2.6.24 as this kernel version this is the references used by us for MPC8321E.
> with the FSL based NAND driver,
Which one? Which chip are you using, and how is NAND attached to it?
>> MPC8321E processor connected to STM NAND Flash. Port C PIN 15 of the processor connected to the R/B# ( Ready/Busy PIN) of the STM NAND Flash.
> we observed that gpio library is mandatory to be included. We have not included the
> gpios configured in the dts file as the we don’t have the separate GPIO
> chip(arch/powepc/boot/dts/board.dts).
What separate GPIO chip? Which "board.dts" are you looking at?
>> dts file I was refering is mpc832x_rdb.dts file, which we assumed that GPIO controller is not required. ( Correct me if my assumption is correct)
> After executing the image in the board, we observed the below
> 1) The device ID and manufacture Id was printed as "c0" and "c0" and the
> error message "No NAND device found!!!". Does it mean it is not
> accessing the NAND flash and the values read are junk one?
> 2) Processor of the board doesn’t connect the Ready/Busy of the NAND
> flash through the separate GPIO chip. I mean it is directly connected
> from GPIO Port C of PIN 15 to the Ready/Busy PIN of the NAND flash.
> Hence is it necessary to port the gpio specific functions like
> gpio_request/gpio_free(specified in fsl_upm.c file), instead should we
> need to configure the PIN par_io_config_pin() for configuration of the
> PORT C with 15th PIN and set the data value using par_io_data_set()
> (specified arch/powerpc/sysdev/qe_lib/qe_io.c)
Have you tried pointing the "gpios" property at pin 15 of port C? The
whole point of this abstraction is that these connections are described
in the data, not in the code.
>> Iam not sure how to specify the in the mpc832x_rdb.dts for the pin 15 port C of the MPc8321E processor. Please help us on the same.
Some reference which I made was mpc836x_rdk.dts file which mandates the GPIO controller, hence I felt not required(Correct me if Iam wrong)
-Nanda
[-- Attachment #2: Type: text/html, Size: 2863 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: fsl upm NAND Flash issue without GPIO chip handler
2010-01-20 18:11 Re: fsl upm NAND Flash issue without GPIO chip handler nanda
@ 2010-01-20 18:39 ` Scott Wood
0 siblings, 0 replies; 4+ messages in thread
From: Scott Wood @ 2010-01-20 18:39 UTC (permalink / raw)
To: nanda; +Cc: linuxppc-dev, avorontsov
nanda wrote:
> my response inlined..
>
> On Tue, 19 Jan 2010 22:41:25 +0530 wrote
> >nanda wrote:
> >
> > We had merged the 2.6.24
>
> That's pretty old...
> >> We were using 2.6.24 as this kernel version this is the references
> used by us for MPC8321E.
> > with the FSL based NAND driver,
>
> Which one? Which chip are you using, and how is NAND attached to it?
> >> MPC8321E processor connected to STM NAND Flash. Port C PIN 15 of the
> processor connected to the R/B# ( Ready/Busy PIN) of the STM NAND Flash.
And the other pins are connected to the local bus controller via UPM?
This is supported in the upstream kernel by drivers/mtd/nand/fsl_upm.c,
if there's nothing else keeping you on the BSP kernel.
> > we observed that gpio library is mandatory to be included. We have
> not included the
> > gpios configured in the dts file as the we don’t have the separate GPIO
> > chip(arch/powepc/boot/dts/board.dts).
>
> What separate GPIO chip? Which "board.dts" are you looking at?
> >> dts file I was refering is mpc832x_rdb.dts file, which we assumed
> that GPIO controller is not required. ( Correct me if my assumption is
> correct)
The only gpio controller in that dts file is the SoC's GPIO block (not a
separate "GPIO chip"). Specifically, it's port D; you'll want to add a
node for port C.
> > After executing the image in the board, we observed the below
> > 1) The device ID and manufacture Id was printed as "c0" and "c0" and the
> > error message "No NAND device found!!!". Does it mean it is not
> > accessing the NAND flash and the values read are junk one?
> > 2) Processor of the board doesn’t connect the Ready/Busy of the NAND
> > flash through the separate GPIO chip. I mean it is directly connected
> > from GPIO Port C of PIN 15 to the Ready/Busy PIN of the NAND flash.
> > Hence is it necessary to port the gpio specific functions like
> > gpio_request/gpio_free(specified in fsl_upm.c file), instead should we
> > need to configure the PIN par_io_config_pin() for configuration of the
> > PORT C with 15th PIN and set the data value using par_io_data_set()
> > (specified arch/powerpc/sysdev/qe_lib/qe_io.c)
>
> Have you tried pointing the "gpios" property at pin 15 of port C? The
> whole point of this abstraction is that these connections are described
> in the data, not in the code.
> >> Iam not sure how to specify the in the mpc832x_rdb.dts for the pin
> 15 port C of the MPc8321E processor.
It should look like port B/E in the 836x_rdk dts, except you want reg to
point at the port C registers.
For details, see the following binding documents:
Documentation/powerpc/dts-bindings/gpio/gpio.txt
Documentation/powerpc/dts-bindings/fsl/cpm_qe/qe/par_io.txt
Documentation/powerpc/dts-bindings/fsl/upm-nand.txt
-Scott
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-01-20 18:39 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-20 18:11 Re: fsl upm NAND Flash issue without GPIO chip handler nanda
2010-01-20 18:39 ` Scott Wood
-- strict thread matches above, loose matches on Subject: below --
2010-01-19 12:40 nanda
2010-01-19 17:13 ` Scott Wood
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).