From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jack Mitchell Subject: Re: AM335x BeagleBone SPI Issues Date: Fri, 04 Jan 2013 16:21:50 +0000 Message-ID: <50E7019E.5090109@communistcode.co.uk> References: <50C5E23D.5040605@communistcode.co.uk> <20121210135337.GA10219@arwen.pp.htv.fi> <50C5F6A8.5060701@communistcode.co.uk> <20121210145947.GK11038@arwen.pp.htv.fi> <50C5FD73.1000408@communistcode.co.uk> <20121210183500.GB14303@arwen.pp.htv.fi> <50C70846.7010207@communistcode.co.uk> <87y5h4r4ul.fsf@gmail.com> <50C75E54.2080805@communistcode.co.uk> <50C7671B.80504@communistcode.co.uk> <1357310801.23039.24.camel@coredoba.hi.pengutronix.de> Reply-To: ml@communistcode.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from eumx.net ([91.82.101.43]:42337 "EHLO eumx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754968Ab3ADQTg (ORCPT ); Fri, 4 Jan 2013 11:19:36 -0500 In-Reply-To: <1357310801.23039.24.camel@coredoba.hi.pengutronix.de> Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: =?UTF-8?B?SmFuIEzDvGJiZQ==?= Cc: Ben Gamari , balbi@ti.com, linux-omap@vger.kernel.org On 04/01/13 14:46, Jan L=C3=BCbbe wrote: > Hi, > > On Tue, 2012-12-11 at 17:02 +0000, Jack Mitchell wrote: >> On 11/12/12 16:24, Jack Mitchell wrote: >>> On 11/12/12 15:22, Ben Gamari wrote: >>>> Jack Mitchell writes: >>>>> Thank you, the reordering dma patch fixed the dma issue I was hav= ing! >>>>> However, the bad news, I now get the same results for the dma and >>>>> non-dma spidev test. While the scope shows the SPI clk and data i= s >>>>> fine, >>>>> the reading from the program still shows 0x00 for all words. >>>>> >>>> Just to make sure this has been thought of: I've seen this sort of >>>> behavior in the past when the CLK pin wasn't configured as an inpu= t. > *snip* > >> My bad! The jumper bridge had come loose, it works now! Yippee! >> >> root@beaglebone:~# ./spidev -D /dev/spidev2.0 >> spi mode: 0 >> bits per word: 16 >> max speed: 24000000 Hz (24000 KHz) >> >> FF FF FF FF FF FF >> 40 00 00 00 00 95 >> FF FF FF FF FF FF >> FF FF FF FF FF FF >> FF FF FF FF FF FF >> DE AD BE EF BA AD >> F0 0D >> root@beaglebone:~# >> >> Thanks everyone, and do I need to submit any patches to clear this a= ll up? >> >> Currently all I see is changing the clk pins from output to input (i= f >> this is a valid change?). > I just stumbled over the same problem and have not seen any patch for > this fix. Have I missed something or should I send a patch? Which wou= ld > be the correct base for such a patch? > > Regards, > Jan I didn't submit a patch for this but easily could. I was confused about= =20 what tree to base it against as at the time (may still be the same) DT=20 SPI for AM335x was not in a mainline tree. I hoped someone would pick i= t=20 up when posting DT SPI for mainline.... --=20 Jack Mitchell (jack@embed.me.uk) Embedded Systems Engineer http://www.embed.me.uk -- -- To unsubscribe from this list: send the line "unsubscribe linux-omap" i= n the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html