From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp116.sbc.mail.sp1.yahoo.com (smtp116.sbc.mail.sp1.yahoo.com [69.147.64.89]) by ozlabs.org (Postfix) with SMTP id 1EED3DE161 for ; Fri, 24 Apr 2009 16:20:34 +1000 (EST) From: David Brownell To: Arnav Das Subject: Re: general SPI question (WAS: [PATCH v6] spi: Add PPC4xx SPI driver) Date: Thu, 23 Apr 2009 23:20:30 -0700 References: <1231411250-25380-1-git-send-email-sr@denx.de> <200904221300.39747.david-b@pacbell.net> <8ee9e87c0904232032sc7ef5e7ibf058618fca8c1a0@mail.gmail.com> In-Reply-To: <8ee9e87c0904232032sc7ef5e7ibf058618fca8c1a0@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Message-Id: <200904232320.30609.david-b@pacbell.net> Cc: linuxppc-dev@ozlabs.org, Stefan Roese , spi-devel-general@lists.sourceforge.net List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thursday 23 April 2009, Arnav Das wrote: > i am a newbie Lesson #1: make sure your Subject: lines match the message topic (I did a partial repair) and don't post to the wrong list (e.g. PPC lists for OMAP questions). > and am doing a project on beagle board(running > omap3530). i am interfacing an adc(ads7886) to the beagleboard via > spi. need to know how the spi works Read the ads7886 data sheet, in this case. It uses a subset of SPI ... no input commands, just a 12-bit sample returned each time chipselect pulses. > and how a module can access the > spi registers of the omap. if someones already made an adc driver can > they mail me? Use drivers/spi/omap2_mcspi.c on OMAP3 boards, at least to start with. If you want streaming conversions you may want to use different modes than are currently supported by that driver. - Dave