From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from rediffmail.com (f5mail-237-237.rediffmail.com [202.137.237.237]) by ozlabs.org (Postfix) with SMTP id 2B689B7C98 for ; Tue, 19 Jan 2010 23:51:04 +1100 (EST) Date: 19 Jan 2010 12:40:14 -0000 Message-ID: <20100119124014.22519.qmail@f5mail-237-237.rediffmail.com> MIME-Version: 1.0 To: , Subject: =?utf-8?B?ZnNsIHVwbSBOQU5EIEZsYXNoIGlzc3VlIHdpdGhvdXQgR1BJTyBjaGlwIGhhbmRsZXI=?= From: "nanda" Content-Type: multipart/alternative; boundary="=_c9eee608535d82e8c16d9284918b0e96" Cc: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , --=_c9eee608535d82e8c16d9284918b0e96 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="UTF-8" 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 --=_c9eee608535d82e8c16d9284918b0e96 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="UTF-8"
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 c= onfigured in the dts file as the we don=E2=80=99t have the separate GPIO ch= ip(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 er= ror message "No NAND device found!!!". Does it mean it is not accessing th= e NAND flash and the values read are junk one?
2) Processor of the board doesn=E2=80=99t connect the Ready/Busy of the NAN= D flash through the separate GPIO chip. I mean it is directly connected fro= m GPIO Port C of PIN 15 to the Ready/Busy PIN of the NAND flash. Hence is i= t 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_li= b/qe_io.c)

Please let me know any input on the above issue.

Thanks in advance

Regards,
Nanda

--=_c9eee608535d82e8c16d9284918b0e96-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from az33egw02.freescale.net (az33egw02.freescale.net [192.88.158.103]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "az33egw02.freescale.net", Issuer "Thawte Premium Server CA" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id 2418FB7C8D for ; Wed, 20 Jan 2010 04:15:42 +1100 (EST) Received: from az33smr02.freescale.net (az33smr02.freescale.net [10.64.34.200]) by az33egw02.freescale.net (8.14.3/az33egw02) with ESMTP id o0JHFdWx017458 for ; Tue, 19 Jan 2010 10:15:40 -0700 (MST) Received: from az33exm25.fsl.freescale.net (az33exm25.am.freescale.net [10.64.32.16]) by az33smr02.freescale.net (8.13.1/8.13.0) with ESMTP id o0JHFgms007811 for ; Tue, 19 Jan 2010 11:15:43 -0600 (CST) Message-ID: <4B55E82C.3060406@freescale.com> Date: Tue, 19 Jan 2010 11:13:16 -0600 From: Scott Wood MIME-Version: 1.0 To: nanda Subject: Re: fsl upm NAND Flash issue without GPIO chip handler References: <20100119124014.22519.qmail@f5mail-237-237.rediffmail.com> In-Reply-To: <20100119124014.22519.qmail@f5mail-237-237.rediffmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Cc: linuxppc-dev@ozlabs.org, avorontsov@ru.mvista.com List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from az33egw02.freescale.net (az33egw02.freescale.net [192.88.158.103]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "az33egw02.freescale.net", Issuer "Thawte Premium Server CA" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id B0DE9B7CBB for ; Thu, 21 Jan 2010 05:39:11 +1100 (EST) Received: from az33smr02.freescale.net (az33smr02.freescale.net [10.64.34.200]) by az33egw02.freescale.net (8.14.3/az33egw02) with ESMTP id o0KId8S0007540 for ; Wed, 20 Jan 2010 11:39:08 -0700 (MST) Received: from az33exm25.fsl.freescale.net (az33exm25.am.freescale.net [10.64.32.16]) by az33smr02.freescale.net (8.13.1/8.13.0) with ESMTP id o0KIdBXk004458 for ; Wed, 20 Jan 2010 12:39:11 -0600 (CST) Message-ID: <4B574DCB.40304@freescale.com> Date: Wed, 20 Jan 2010 12:39:07 -0600 From: Scott Wood MIME-Version: 1.0 To: nanda Subject: Re: fsl upm NAND Flash issue without GPIO chip handler References: <1263921085.S.3173.3591.f5mail-147-110.rediffmail.com.old.1264011068.46402@webmail.rediffmail.com> In-Reply-To: <1263921085.S.3173.3591.f5mail-147-110.rediffmail.com.old.1264011068.46402@webmail.rediffmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Cc: linuxppc-dev@ozlabs.org, avorontsov@ru.mvista.com List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from rediffmail.com (f5mail-236-229.rediffmail.com [202.137.236.229]) by ozlabs.org (Postfix) with SMTP id 900FCB7CC1 for ; Thu, 21 Jan 2010 05:22:05 +1100 (EST) Date: 20 Jan 2010 18:11:12 -0000 MIME-Version: 1.0 To: Message-ID: <1263921085.S.3173.3591.f5mail-147-110.rediffmail.com.old.1264011068.46402@webmail.rediffmail.com> Subject: =?utf-8?B?UmU6IFJlOiBmc2wgdXBtIE5BTkQgRmxhc2ggaXNzdWUgd2l0aG91dCBHUElPIGNoaXAgaGFuZGxlcg==?= From: "nanda" Content-Type: multipart/alternative; boundary="=_ae2fc71448069051de0bb354bcc0d23a" Cc: linuxppc-dev@ozlabs.org, avorontsov@ru.mvista.com List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , --=_ae2fc71448069051de0bb354bcc0d23a Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="UTF-8" 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 --=_ae2fc71448069051de0bb354bcc0d23a Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="UTF-8" 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 pro= cessor 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 in= cluded the
> gpios configured in the dts file as the we don=E2=80=99t have the separat= e 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 G= PIO 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=E2=80=99t connect the Ready/Busy of the N= AND
> 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 p= in 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 GPI= O controller, hence I felt not required(Correct me if Iam wrong)

-Nanda

--=_ae2fc71448069051de0bb354bcc0d23a--