Re: [PATCH 6/6] i2c: davinci: bus recovery procedure to clear the bus

2010-09-27 Thread Philby John
Hello Pablo, On Mon, 2010-09-13 at 16:23 +0200, Pablo Bitton wrote: Hi Philby, i2c_davinci_wait_bus_not_busy(struct davinci_i2c_dev *dev, char allow_sleep) { unsigned long timeout; + static u16

RE: Driver probe functionality

2010-07-08 Thread Philby John
On Thu, 2010-07-08 at 11:25 +0200, Sean Kelvin Preston wrote: Hi Jean-Philippe Thanks for the response. For platform bus, you can match by id or by name : for example in the board code you have : static struct platform_device davinci_nand_device = { lines removed And in

RE: Driver probe functionality

2010-07-08 Thread Philby John
On Thu, 2010-07-08 at 12:37 +0200, Sean Kelvin Preston wrote: Hi Philby You are right, the platform_match() does not succeed based on a simple string comparison. platform_match() defined in platform.c drivers/base, does a string comparison of the driver and device name variable. If there

RE: Driver probe functionality

2010-07-08 Thread Philby John
On Thu, 2010-07-08 at 13:28 +0200, Sean Kelvin Preston wrote: Hi The names are the same as I have not changed that code at all. As I was just testing the new NAND I did not change the drivers except to add an additional ID to the drivers/mtd/nand/nand_ids.c file. Otherwise I just

RE: Driver probe functionality

2010-07-08 Thread Philby John
On Thu, 2010-07-08 at 14:20 +0200, Sean Kelvin Preston wrote: Hi Sorry about that, I was looking at an older kernel version :-) In the function driver_match_device() Thanks for the suggestions and help so far but as I am new to this and I am really not understanding what the problem

Re: i2c problem with TVP514x

2010-05-04 Thread Philby John
On 05/04/2010 01:57 PM, Andreas Auer wrote: Hello, currently I'm using the 2.6.32 kernel from the arago project on a customized board similar to the TI EVM with the DM6446 processor. Right now, I have an application running which uses the TVP5146 to capture video from an analog camera. The

[PATCH] i2c: Set SCL pin to gpio functionality before bus recovery

2010-03-17 Thread Philby John
From: Philby John pj...@mvista.com Date: Wed, 17 Mar 2010 16:20:12 +0530 Subject: [PATCH] Set SCL pin to gpio functionality before bus recovery Before using the SCL pin, set it to GPIO by conditionally checking the i2c revision id for peripherals that match 0x05. Clean up data structures along

Re: [PATCH 6/6] i2c: davinci: bus recovery procedure to clear the bus

2010-03-17 Thread Philby John
On 03/17/2010 02:20 AM, Kevin Hilman wrote: Philby Johnpj...@mvista.com writes: On 02/08/2010 04:05 PM, Nori, Sekhar wrote: Hi Philby, On Fri, Feb 05, 2010 at 19:23:43, Philby John wrote: Hello Sekhar, [...] +/* Generate a pulse on the i2c clock pin. */ +static void

Re: [PATCH 6/6] i2c: davinci: bus recovery procedure to clear the bus

2010-03-17 Thread Philby John
On 03/17/2010 06:48 PM, Nori, Sekhar wrote: Hi Philby, On Wed, Mar 17, 2010 at 16:58:44, Philby John wrote: On 03/17/2010 02:20 AM, Kevin Hilman wrote: Philby Johnpj...@mvista.com writes: On 02/08/2010 04:05 PM, Nori, Sekhar wrote: Hi Philby, On Fri, Feb 05, 2010 at 19:23:43, Philby

Re: [PATCH 6/6] i2c: davinci: bus recovery procedure to clear the bus

2010-03-08 Thread Philby John
On 03/05/2010 08:50 PM, Griffis, Brad wrote: Right. I was also hoping to rid of cpu_is_xxx usage. The only other way I could think of is to add pinmux index into i2c platform data struct. What do you think is the best approach? I think passing pinmux index through platform data is fair.

Re: [PATCH 6/6] i2c: davinci: bus recovery procedure to clear the bus

2010-02-09 Thread Philby John
On 02/08/2010 09:33 PM, Nori, Sekhar wrote: On Mon, Feb 08, 2010 at 20:43:27, Philby John wrote: Hello Sekhar, On 02/08/2010 04:05 PM, Nori, Sekhar wrote: +static void generic_i2c_clock_pulse(unsigned int scl_pin) +{ + u16 i; + + if (scl_pin) { + /* Send high and low

Re: [PATCH 6/6] i2c: davinci: bus recovery procedure to clear the bus

2010-02-08 Thread Philby John
Hello Sekhar, On 02/08/2010 04:05 PM, Nori, Sekhar wrote: +static void generic_i2c_clock_pulse(unsigned int scl_pin) +{ + u16 i; + + if (scl_pin) { + /* Send high and low on the SCL line */ + for (i = 0; i 9; i++) { + gpio_set_value(scl_pin,

Re: [PATCH 6/6] i2c: davinci: bus recovery procedure to clear the bus

2010-02-05 Thread Philby John
wrote: From: Philby John pj...@in.mvista.com Come out of i2c time out condition by following the bus recovery procedure outlined in the i2c protocol v3 spec. The kernel must be robust enough to gracefully recover from i2c bus failure without having to reset the machine. This is done by first

Re: [PATCH v3 2/2] i2c: Davinci i2c bus recovery procedure to clear the bus

2010-01-25 Thread Philby John
On Sun, 2010-01-24 at 15:07 +, Ben Dooks wrote: On Tue, Jan 12, 2010 at 04:47:16PM +0530, Philby John wrote: From 2565eeda807e49376298ec895a0d9a91a7668417 Mon Sep 17 00:00:00 2001 From: Philby John pj...@in.mvista.com Date: Mon, 11 Jan 2010 22:39:44 +0530 Subject: [PATCH 2/2] Davinci

Re: [PATCH v3 1/2] i2c: Add SDA and SCL pin numbers to i2c platform data

2010-01-20 Thread Philby John
Kevin, On Tue, 2010-01-12 at 16:47 +0530, Philby John wrote: From cb3347e45449ff16a332aa164eae24ef6a2432e6 Mon Sep 17 00:00:00 2001 From: Philby John pj...@in.mvista.com Date: Mon, 11 Jan 2010 15:53:31 +0530 Subject: [PATCH 1/2] Add SDA and SCL pin numbers to i2c platform data Patch adds

[PATCH v3 2/2] i2c: Davinci i2c bus recovery procedure to clear the bus

2010-01-12 Thread Philby John
From 2565eeda807e49376298ec895a0d9a91a7668417 Mon Sep 17 00:00:00 2001 From: Philby John pj...@in.mvista.com Date: Mon, 11 Jan 2010 22:39:44 +0530 Subject: [PATCH 2/2] Davinci i2c bus recovery procedure to clear the bus Come out of i2c time out condition by following the bus recovery procedure

[PATCH v3 1/2] i2c: Add SDA and SCL pin numbers to i2c platform data

2010-01-12 Thread Philby John
From cb3347e45449ff16a332aa164eae24ef6a2432e6 Mon Sep 17 00:00:00 2001 From: Philby John pj...@in.mvista.com Date: Mon, 11 Jan 2010 15:53:31 +0530 Subject: [PATCH 1/2] Add SDA and SCL pin numbers to i2c platform data Patch adds SDA and SCL pin numbers to the i2c platform data structure

Re: [PATCH v1] i2c: Davinci i2c bus recovery procedure to come out of time out conditions

2010-01-06 Thread Philby John
Kevin, On Tue, 2010-01-05 at 16:31 -0800, Kevin Hilman wrote: Philby John pj...@in.mvista.com writes: From 062cfba8b86ccd932eaa498980e703295d86a6cb Mon Sep 17 00:00:00 2001 From: Philby John pj...@in.mvista.com Date: Mon, 23 Nov 2009 18:08:33 +0530 Subject: [PATCH] Davinci i2c bus

[PATCH v2] i2c: Davinci i2c bus recovery procedure to clear the bus

2010-01-06 Thread Philby John
From 0372e68cfd14ab37595498234abe39f2f10787d5 Mon Sep 17 00:00:00 2001 From: Philby John pj...@in.mvista.com Date: Mon, 23 Nov 2009 18:08:33 +0530 Subject: [PATCH] Davinci i2c bus recovery procedure to clear the bus Come out of i2c time out condition by following the bus recovery procedure

Re: how do i enable full speed instead of high speed in the USB

2010-01-06 Thread Philby John
Gopala, On Tue, 2010-01-05 at 10:34 -0500, Gopala Gottumukkala wrote: I want to use Full speed instead of high speed. What needs to be done to work with full speed. You will have better luck getting your question answered on the USB mailing list (linux-...@vger.kernel.org). AFAIK, there are

Re: [PATCH v2] i2c: Davinci i2c bus recovery procedure to clear the bus

2010-01-06 Thread Philby John
On Wed, 2010-01-06 at 07:16 -0800, Kevin Hilman wrote: Philby John pj...@in.mvista.com writes: From 0372e68cfd14ab37595498234abe39f2f10787d5 Mon Sep 17 00:00:00 2001 From: Philby John pj...@in.mvista.com Date: Mon, 23 Nov 2009 18:08:33 +0530 Subject: [PATCH] Davinci i2c bus recovery

RE: USB MAssage Storage drivers

2009-12-17 Thread Philby John
the right CONFIG options enabled needed for proper mass storage detection. Hope you have done as per Sergeri's and Swami's comments. Regards, Philby -Original Message- From: Philby John [mailto:pj...@in.mvista.com] Sent: Wednesday, December 16, 2009 11:20 AM To: Gopala Gottumukkala Cc

RE: USB MAssage Storage drivers

2009-12-16 Thread Philby John
On Wed, 2009-12-16 at 10:53 -0500, Gopala Gottumukkala wrote: (gcc version 3.4.3 (MontaVista 3.4.3-25.0.104.0600975 2006-07-06)) #4 PREEMPT Tue Dec 15 18:10:24 EST 2009 CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177 CPU: VIVT data cache, VIVT instruction cache Machine: DaVinci

Re: USB MAssage Storage drivers

2009-12-15 Thread Philby John
On Tue, 2009-12-15 at 18:46 -0500, Gopala Gottumukkala wrote: My target is not recognizing the USB massage storage. I am working the 2.6.32 Davinci kernel Any suggestion and ideas. ahah, this information isn't enough. Your Vendor/Product ID for this device is compared in a lookup a table. If

Re: SPI driver

2009-12-11 Thread Philby John
Andrew, On Fri, 2009-12-11 at 10:41 -0500, Andrew Elder wrote: Steve, I'm disappointed in TI's position on this. This page http://focus.ti.com/docs/prod/folders/print/tms320dm6446.html clearly shows SPI as one of the available peripherals, so to my way of thinking TI should be providing

Re: [PATCH/RFC 1/1] recover from davinci i2c time out conditions

2009-11-23 Thread Philby John
Hello David, On Wed, 2009-07-15 at 10:10 -0700, David Brownell wrote: On Wednesday 15 July 2009, Philby John wrote: /* + * Configure the i2c data pin as a GPIO input and the i2c clock pin as a + * high GPIO output. + */ +static void disable_i2c_pins(void) +{ + unsigned long

[PATCH v1] i2c: Davinci i2c bus recovery procedure to come out of time out conditions

2009-11-23 Thread Philby John
From 062cfba8b86ccd932eaa498980e703295d86a6cb Mon Sep 17 00:00:00 2001 From: Philby John pj...@in.mvista.com Date: Mon, 23 Nov 2009 18:08:33 +0530 Subject: [PATCH] Davinci i2c bus recovery procedure to come out of time out conditions Get out of i2c time out condition by following the bus

Re: [PATCH/RFC 1/1] recover from davinci i2c time out conditions

2009-11-23 Thread Philby John
Hello Sergei, On Wed, 2009-07-15 at 16:34 +0400, Sergei Shtylyov wrote: Hello. Philby John wrote: From dbe7e824d576636bb15b82a20fd2557fddc9a8f7 Mon Sep 17 00:00:00 2001 From: Philby John pj...@in.mvista.com Date: Tue, 14 Jul 2009 21:46:47 +0530 Subject: [PATCH] Reset i2c bus to come

Re: [PATCH/RFC 1/1] recover from davinci i2c time out conditions

2009-11-23 Thread Philby John
Hello Troy, On Wed, 2009-07-15 at 10:15 -0700, Troy Kisky wrote: Philby John wrote: From dbe7e824d576636bb15b82a20fd2557fddc9a8f7 Mon Sep 17 00:00:00 2001 From: Philby John pj...@in.mvista.com Date: Tue, 14 Jul 2009 21:46:47 +0530 Subject: [PATCH] Reset i2c bus to come out of time out

RE: [PATCH 0/2] davinci i2c fixes for 2.6.31

2009-11-23 Thread Philby John
Hello Murali, On Thu, 2009-07-16 at 16:22 -0500, Karicheri, Muralidharan wrote: Philby, I tried running this patch against 2.6.31.rc2 (davinci kernel tree). But I got a crash as I run the application which is given below In my case, time out happens when I kill the capture

Re: question on UART BOOT

2009-10-28 Thread Philby John
Hello, On Tue, 2009-10-27 at 14:31 -0700, Naresh Kansara wrote: Hi, I have a custom designed board with DaVinci. I have downloaded the latest software from SorceForge. My hyper terminal operate at 115200,8N1. I am using CCS JTAG to poke inside ARM code. On PC Host CMD window, I issue

Re: KGDB with Ethernet support

2009-10-28 Thread Philby John
On Wed, 2009-10-28 at 07:07 +0200, Michael Hallak-Stamler wrote: I have been looking for a Davinci Linux kernel with KGDB. I downloaded and successfully built 2.6.31 that has this support but only provides serial communication. I know that the Montavista kernel has Ethernet communication

Re: [PATCH/RFC 1/1] recover from davinci i2c time out conditions

2009-09-21 Thread Philby John
are disabled/enabled it should work for the dm644x. I took the patch from Philby and tried it on our dm6443 platform (on a 2.6.28 kernel) and it appears to work for the problem we have when the i2c appears to lock up. Craig On Wednesday 22 July 2009 5:14:35 am Philby John

Re: [PATCH/RFC 1/1] recover from davinci i2c time out conditions

2009-07-22 Thread Philby John
On Wed, 2009-07-22 at 04:03 -0700, Nitin Mahajan wrote: Hello, - Original Message From: Philby John pj...@in.mvista.com To: linux-...@vger.kernel.org Cc: kh...@linux-fr.org; davinci-linux-open-source@linux.davincidsp.com Sent: Wednesday, July 15, 2009 13:04:27 Subject

RE: [PATCH 0/2] davinci i2c fixes for 2.6.31

2009-07-15 Thread Philby John
Hello Murali, I will send a patch out to address this problem. Regards, Philby On Wed, 2009-07-08 at 10:25 -0500, Karicheri, Muralidharan wrote: Hi Kevin, When we do a video loopback with MT9T031, we get i2c timeouts when application is killed using Cntrl C. Is it being

[PATCH/RFC 0/1] recover from davinci i2c time out conditions

2009-07-15 Thread Philby John
This patch address several timeout problems that have been reported like the one below. The kernel must be robust enough to handle such timeouts without having to reboot the system manually. This patch has only been tested on a DM355 hence extensive testing is required on other davinci's as well.

[PATCH/RFC 1/1] recover from davinci i2c time out conditions

2009-07-15 Thread Philby John
From dbe7e824d576636bb15b82a20fd2557fddc9a8f7 Mon Sep 17 00:00:00 2001 From: Philby John pj...@in.mvista.com Date: Tue, 14 Jul 2009 21:46:47 +0530 Subject: [PATCH] Reset i2c bus to come out of time out conditions Get out of i2c time out condition by resetting the i2c bus. The kernel must

Re: how can i use spi in dm355?

2009-06-23 Thread Philby John
zuowenping, You need to modify the arch/arm/mach-davinci/davinci_spi_platform.c struct spi_board_info dm6467_spi_board_info[], .modalias = DAVINCI_SPI_EEPROM_NAME, to .modalias = spidev. Also you must enable CONFIG_SPI_SPIDEV. After that the kernel will detect the device as spidev0 and

Re: Re: how can i use spi in dm355?

2009-06-23 Thread Philby John
__ 发件人: Philby John 发送时间: 2009-06-23 14:51:50 收件人: zuowenping 抄送: davinci-linux-open-source 主题: Re: how can i use spi in dm355? zuowenping, You need to modify the arch/arm/mach-davinci/davinci_spi_platform.c

Re: Problem with YAFFS2 on LargePage NAND

2009-04-13 Thread Philby John
Hello Zhang, I think you need to change the option in struct nand_davinci_platform_data nand_data, .ecc_mode = NAND_ECC_SOFT, to use s/w ECC. Regards, Philby On Thu, 2009-04-09 at 10:33 +0800, shaofeng zhang wrote: Hi Johns, I had read your message from the email list, and I want to

Re: Problem with YAFFS2 on LargePage NAND

2009-03-26 Thread Philby John
in the configration of the MV linux kernel. So, WIll you give me some tips about the NAND configration in the MV linux? Such as the kernel configration, the NAND OOB info, the NAND ECC info, or the process of the BBT building. Thank you. Best Wishes, Zhang 2009/3/23 Philby John pj

Re: Problem with YAFFS2 on LargePage NAND

2009-03-23 Thread Philby John
the offset to the start of your nand fs and the size of your fs (mtdblock4) eg: nand erase 0x240 0x5e0 This will clear all your previous factory marked bbt entries, so use this at your discretion. Regards, Philby 2009/3/19 Philby John pj...@in.mvista.com Zhang

RE: Problem with YAFFS2 on LargePage NAND

2009-03-19 Thread Philby John
Zhang, You could try defining YAFFS_IGNORE_TAGS_ECC in fs/yaffs2/yaffs_ecc.h and give it a shot. If this works it would mean, h/w ECC uses up the OOB spare area leaving no space for YAFFS2 to mark bad blocks hence showing 100% usage. Regards, Philby On Wed, 2009-03-18 at 12:55 -0500,

Re: flash_eraseall and mount a mtd ,it show 100% used,why?

2009-02-13 Thread Philby John
zuowenping, What's the flash device you are using, its page size, spare byte usage, bus width etc? Here is what you could try. 1)Try using jffs2 and see if the problem occurs. If not then its a yaffs2 specific issue, which I suspect. 2)Type the following commands in the same order in your UBoot

Re: Re: flash_eraseall and mount a mtd ,it show 100% used,why?

2009-02-13 Thread Philby John
__ 发件人: Philby John 发送时间: 2009-02-13 16:52:57 收件人: zuowenping 抄送: davinci-linux-open-source 主题: Re: flash_eraseall and mount a mtd ,it show 100% used,why? zuowenping, What's the flash device you are using, its page size, spare byte usage, bus width etc? Here

Re: flash_eraseall and mount a nand flash ,it show 100% used,why?

2009-02-13 Thread Philby John
Hello, On Fri, 2009-02-13 at 19:17 +0800, zuowenping wrote: # cat /proc/yaffs YAFFS built:Feb 2 2008 23:56:53 $Id: yaffs_fs.c,v 1.33 2005/10/27 22:24:04 marty Exp $ $Id: yaffs_guts.c,v 1.22 2005/10/13 02:17:00 charles Exp $ nFreeChunks 768 nPageWrites 0

Re: Query reg generating an event in DM6467 for every 5 min

2009-01-20 Thread Philby John
On Tue, 2009-01-20 at 23:33 +0900, kirthika varadarajan wrote: I am writing a simple application in which i need to generate an event for every 5 min. I just created a thread inside the thread i need to create an event for every 5 min. I refered to DM6467, there the timers are in kernel

Re: DM355 EVM NAND reloading with a BDI2000

2008-12-01 Thread Philby John
Excellent, Thank you. Philby On Mon, 2008-12-01 at 11:10 -0600, Jeff Cooper wrote: I've added an article to the Developer Wiki on how to reload a DM355 EVM board using a BDI2000. I've had a request for this information and thought it would be a good idea to make it general knowledge. The

RE: [PATCH v5 09/10] ARM: DaVinci: serial mis-behavior on dm646x

2008-11-14 Thread Philby John
Sudhakar, I could not verify the error message too much work for irq xx when running tack on a DM6467. Could you please specify the exact command line parameters/test to run, inorder to reproduce this error. Thanks and Regards, Philby On Fri, 2008-11-14 at 09:57 +0530,