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.

PROCESSOR-SDK-DRA8X-TDA4X: J721E - Do we have a Generic OSPI linux driver?

Part Number: PROCESSOR-SDK-DRA8X-TDA4X

Hi All,

We are developing a J721E based custom board for one of our customer for validating their Octal RAM and Octal Flash device.
As per Processor SDK Linux documentation 3.3.4.21. OSPI/QSPI, cadence-quadspi.c OSPI driver does not support interfacing with non flash SPI slaves.
I would like to know if there is a generic OSPI linux driver (like spi-ti-qspi.c) available for J721E?

Regards,

Amarnath MB

  • Hello Amarnath,

    What is the use case? Before giving suggestions i would like to know the exact use case you
    are looking for. Why are you using Octal RAM for Linux?

    Regards,
    Keerthy

  • Hello Keerthy,

    What is the use case? Before giving suggestions i would like to know the exact use case you
    are looking for
    >> We need to validate the Octal RAM and Octal Flash device in 8D-8D-8D mode (R/W),
          before these can be introduced to market. Customer has specific requirement to
          validate the OSPI Flash device for Erase opcodes (21h, 5Ch, DCh), Program opcodes
          (12h, 84h, 8Eh) and Read opcodes (0bh, 0Ch, 8Bh, CBh, 9Dh, 7Ch, FDh, CCh).   

    Why are you using Octal RAM for Linux?
    >> Can you please elaborate?

    Regards,
    Amarnath MB

  • Hi Amarnath,

    I shared your use case with our SPI expert. The driver with which you could experiment
    is: drivers/mtd/spi-nor/spi-nor.c.

    That is the closest to what can be used to try our your use case. Hope you can resolve the
    thread.

    - Keerthy

  • Hello Keerthy,

    I can use drivers/mtd/spi-nor/spi-nor.c to configure OSPI NOR Flash for
    above mentioned opcodes. But i can't use spi-nor.c to communicate with Octal RAM
    device since the OSPI controller configurations are done as part of the cadence-quadspi.c.

    As per Processor SDK Linux documentation 3.3.4.21. OSPI/QSPI it is mentioned that
    "Driver does not support Octal or Quad mode writes.", then in what mode does  
    cadence-quadspi.c writes data into Flash?

    Regards,
    Amarnath MB

  • Hi Amarnath,

    Linux(not just SDK) does not support octal writes. Octal RAM is also not supported by linux.
    (We don't have it on TDA4VM either).

    Octal writes for nor flash will be added in 7.1 SDK. At present no support. Please resolve this
    thread if you have no further questions.

    Best Regards,
    Keerthy

  • Hello Keerthy,

    Does the J721E on-board OSPI controller support non Flash devices?
    As per 12.3.2.1 OSPI Overview of SPRUIL1A.pdf it is mentioned that
    "The Octal Serial Peripheral Interface (OSPI) module is a kind of
    Serial Peripheral Interface (SPI) module which allows single, dual,
    quad or octal read and write access to external flash devices."

    When can we expect the 7.1 SDK release?

    Regards,
    Amarnath MB

  • Hello Amarnath,

    To answer you question on OSPI controller supporting non-flash devices.
    It all depends on the non-flash device. It might not work with a touchscreen but
    it may work with octal RAM but no support from software on that is planned.

    Also 7.1 SDK should be around Octber beginning.

    Hope this answers all of your questions.

    Best Regards,
    Keerthy