This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/AM5728: SPI communication

Part Number: AM5728
Other Parts Discussed in Thread: TMDSEVM572X

Tool/software: Linux

Hi,

I am interfacing 2 SPI devices with AM5728.which are connected to same SPI bus.Device 1 is having driver and Device 2 is not having any device specific driver. i want to access them one after the other.

Is it possible to access the device 2 which is not having any driver?

whether the device 1 which is having the driver will always make bus busy?

If the device 1  occupies the bus from driver i will not be able to access the device 2 .Is there any way to access the device 2?

Regards,

Vijay

  • Hi Vijay,

    Do you use AM572x TI PSDK Linux? If yes, which version?

    Do you use AM572x TI board (TMDSEVM572X or TMDXIDK5728) or custom board?

    Regards,
    Pavel
  • Vijay kumar said:
    Is it possible to access the device 2 which is not having any driver?

    I think this is possible. In situations where a premade SPI driver doesn’t exist or a user wants a simple means to send and receive SPI messages the spidev driver can be used.

    Vijay kumar said:
    whether the device 1 which is having the driver will always make bus busy?

    No, I don't think so. In multichannel master mode, the AM572x McSPI module support round-robin list of active channels scheduled for transmission and/or reception. Check AM572x TRM sections:

    24.4.4.3.1 Master Mode Features

    24.4.4.3.2 Master Transmit-and-Receive Mode (Full Duplex)

    Regards,
    Pavel

  • Hi Pavel,
    we are using Ti SDK version 04.00.01.06.

    no we are not using AM572x Ti board it is custom board.

    regards,
    Vijay
  • Vijay,

    Please refer to my answers provided in the below e2e post:

    e2e.ti.com/.../2720936

    If you have no more questions related to the subject, please close/verify/resolve the below thread.

    Regards,
    Pavel