• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Embedded Software » Linux » Linux forum » dm8168 spi help
Share
Linux
  • Forum
Options
  • Subscribe via RSS

Forums

dm8168 spi help

This question is not answered
Rodrigo Rengifo
Posted by Rodrigo Rengifo
on May 02 2012 20:11 PM
Intellectual410 points

Hi,

We're using the dm8168 alongside with the z3 for our device.  I'm currently trying to get the spi to work for communication with our fpga.  The board spi is the master and the fpga would be the slave.  I'm having trouble setting it up.  I know the driver is added in the kernel but when i boot i don't see any information regarding the spi.  I fell like i need to edit the board file but i'm unclear on how to go about adding the flash.  In the board file there's a section talking about the spi flash which is partitioned in 4 different ways.  Our fpga slave device is connected using cs0.  I've looked at the pinmux values and they all seem to be correct based on our connections.  

I also tried running the spidev_test but it didn't work.  I believe that's due to the fact that our device isn't set up properly in the board file.  Can anyone help guide me in the right direction to solve this problem?

Thanks,

Rodrigo

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Rodrigo Rengifo
    Posted by Rodrigo Rengifo
    on May 02 2012 20:14 PM
    Intellectual410 points

    Sorry i miss typed a word in the previous post...

    Hi,

    We're using the dm8168 alongside with the z3 for our device.  I'm currently trying to get the spi to work for communication with our fpga.  The board spi is the master and the fpga would be the slave.  I'm having trouble setting it up.  I know the driver is added in the kernel but when i boot i don't see any information regarding the spi.  I fell like i need to edit the board file but i'm unclear on how to go about adding the spi.  In the board file there's a section talking about the spi flash which is partitioned in 4 different ways.  Our fpga slave device is connected using cs0.  I've looked at the pinmux values and they all seem to be correct based on our connections.  

    I also tried running the spidev_test but it didn't work.  I believe that's due to the fact that our device isn't set up properly in the board file.  Can anyone help guide me in the right direction to solve this problem?

    Thanks,

    Rodrigo

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Anil
    Posted by Anil
    on May 08 2012 02:09 AM
    Expert6655 points

    Hi Rodrigo,

    You can refer this portion of user guide

    http://processors.wiki.ti.com/index.php/DM81xx_AM38xx_PSP_McSPI_Driver_Guide#Porting_to_custom_hardware

    Regards

    AnilKumar

    Please mark this Forum post as answered via the Verify Answer button below if it helps answer your question.  Thanks!

    SPI PSP dm8168
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Rodrigo Rengifo
    Posted by Rodrigo Rengifo
    on May 09 2012 13:57 PM
    Intellectual410 points

    HI AnilKumar,

    I looked at the link provided and have some questions related to it.

    I looked inside of board-ti8168evm.c and there is no device array named ti8168_evm_spi_info  but there isti816x_spi_slave_info array which i think is what it refers to.  I'm a little confuse on what is meant by ensure that num_chipselect member of the platform data for the corresponding SPI master means.  I tried looking in the file for num_chipselect and found nothing so I was hoping you could clarify this.

    Lastly i'm not too sure on what most of the values mean that will be going within the spi structure.  

        • modalias so this seems to be the spi driver for the master.  I our case is an altera fpga that we want to communicate with, does this mean i need to implement my own driver?  If so where would i do it?  If not is there a driver that is generic to spi functionality?
        • platform_data I'm not sure what this is supposed to be.
        • controller_data This is not too clear, can you clarify please?
        • bus_num I'll have to look at the schematic to see what this is connected to.
        • chip_select We are using chip select 0 for this spi interface
        • max_speed_hz I'm not sure what we have decided on yet but this should be easy to determine
    Thanks for you help,
    Rodrigo
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Rodrigo Rengifo
    Posted by Rodrigo Rengifo
    on May 15 2012 20:46 PM
    Intellectual410 points

    Hi,

    I got the spi to show up in the file system, ls dev/spidev1.0.  I have been trying to use this driver but i'm not having any luck with this.  I made sure the user mode spi device driver support.  I have been trying to use spidev_test.c or spidev_fdx.c and neither one of the drivers seems to work.  I tried doing echo 1 > dev/spidev1.0 and neither one of these seems to make the spi MOSI value change.  I've looked at this with an oscilloscope and I see the chip select change, the clock change and even a value I send back from the spi slave, but never the value i'm sending through the MOSI pin.  Any ideas on what could be the problem for this?  I'm trying to avoid having to write my own driver if one is out that we could use.

    Thanks,

    Rodrigo

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Jason Radtke
    Posted by Jason Radtke
    on May 21 2012 16:02 PM
    Prodigy50 points

    Rodrigo and I are using an older version of the PSP (04.00.01.13).

    I see from the Release Notes that there is an outstanding issue related to SPI.  Where can I find more details about issue SDOCM00085072 to determine if this is the cause of our problem.

    http://processors.wiki.ti.com/index.php/DM816x_AM389x_PSP_04.00.01.13_Release_Notes

    SDOCM00085072

    No SPI software support (including SPI boot) for DM8168 Rev H EVM.

    There is no workaround as of now. The SPI part used in this revision of EVM is different from the ones used in the earlier EVMs.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use