From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Gardiner Subject: Re: How to put extra clock cycles on i2c cavinci, problems on omapl138 (logic pd som) Date: Thu, 17 Mar 2011 10:36:35 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: In-Reply-To: Sender: linux-i2c-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Bastian.Ruppert-qHSRieSIjQqELgA04lAiVw@public.gmane.org Cc: davinci-linux-open-source-VycZQUHpC/PFrsHnngEfi1aTQe2KTcn/@public.gmane.org, Jon Povey , khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org, linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, "Nori, Sekhar" , pjohn-k0rHJ+Hhz/SB+jHODAdFcQ@public.gmane.org List-Id: linux-i2c@vger.kernel.org On Thu, Mar 17, 2011 at 10:13 AM, wrote: > [...] >> I wonder if there is YA hardware problem with i2c on the LogicPD >> boards. I've noticed that when I don't have the UBI board connected >> then I don't get the controller timeouts. >> > > I have some effects here, too. > We have a i2c repeater solded on our board (PCA9515AD). With this repeater > > i can reproduce the errer pretty fast. > Without this repeater solded on, the mean time before failure is much > higher. > > I can produce the error pretty fast with the ts_test tool. Without any > userland > tool using the touchscreen info or with the tool evtest, i can see the i2c > > action on the oscilloscope but it is hard to produce the error. > What does this indicate to? > Is it possible that userland can influence the kernel driver timing to > promote > the error? I don't think that userland can influence the kernel driver timing; based on my understanding of the driver [1] polling occurs from the moment the device is probe()'d. Are you modprob'ing the driver right before ts_test? Where can I see the ts_test source? >> Have you tried using the bitbanging i2c driver? I suppose that using >> the bitbanging i2c driver would be too much CPU overhead for polling >> your touchscreen... >> > > Yes, the bitbanging driver gives me "boiled NACK" errors or so sometimes, > but the system do not stall. (In my opinion, bitbanging is not the elegant > way > to do i2c). > >> Have you asked about how to implement this FDF-SCL-toggle method on >> the e2e forums? > > No, i did not. Ok. I'll post then. Best Regards, Ben Gardiner [1] http://lxr.linux.no/linux+v2.6.38/drivers/input/touchscreen/tps6507x-ts.c --- Nanometrics Inc. http://www.nanometrics.ca