Re: AM335x BeagleBone SPI Issues

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Tue, Dec 11, 2012 at 10:38:58AM +0000, Jack Mitchell wrote:
> On 11/12/12 10:20, Felipe Balbi wrote:
> >Hi,
> >
> >On Tue, Dec 11, 2012 at 10:17:42AM +0000, Jack Mitchell wrote:
> >
> ><big snip>
> >
> >>Shubhro, Felipe,
> >>
> >>Thank you, the reordering dma patch fixed the dma issue I was having!
> >>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 is
> >>fine, the reading from the program still shows 0x00 for all words.
> ><removed spidev_test output>
> >
> >>dmesg shows nothing of interest apart from the spi bus setting up.
> >>Any ideas?
> >>
> >>To iterate for my own sanity; I have bridged pins 18 and 21 on the P9
> >>header which should be the d0 and d1 spi data pins for spi0. This
> >>result of 0x00 usually comes from a result of not joining the pins,
> >>but I can assure you they are joined!
> >>
> >>Thank you for the help so far.
> >according to the schematics [1], those pins are muxed as UART2_TXD and
> >I2C1_SDA, have you remuxed them properly ? Can you try with pins 29 and
> >30 on the same header ? That's SPI1, so you will have to add DT data for
> >spidev on that bus too.
> >
> >[1] http://beagleboard.org/static/beaglebone/latest/Docs/Hardware/BONE_SCH.pdf
> >
> 
> No change unfortunately:
> 
> root@beaglebone:~# ./spidev
> spi mode: 0
> bits per word: 16
> max speed: 24000000 Hz (24000 KHz)
> 
> 00 00 00 00 00 00
> 00 00 00 00 00 00
> 00 00 00 00 00 00
> 00 00 00 00 00 00
> 00 00 00 00 00 00
> 00 00 00 00 00 00
> 00 00
> 
> root@beaglebone:~# ./spidev -D /dev/s
> shm/       spidev1.0  spidev2.0  stderr     stdin      stdout
> root@beaglebone:~# ./spidev -D /dev/spidev2.0
> spi mode: 0
> bits per word: 16
> max speed: 24000000 Hz (24000 KHz)
> 
> 00 00 00 00 00 00
> 00 00 00 00 00 00
> 00 00 00 00 00 00
> 00 00 00 00 00 00
> 00 00 00 00 00 00
> 00 00 00 00 00 00
> 00 00
> root@beaglebone:~#

weird... I'll try to test with my pandaboard and see what's the outcome
of that.

-- 
balbi

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux