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.

AM5728: Issue while connecting normal SPI device to qspi

Part Number: AM5728

Hi All

We are working on a custom board based on GPEVM and using processor SDK linux. We have connected a normal SPI based Graphic LCD on the qSPI pins. And we are trying to read/write various registers through SPIDEV library. This is our device tree entry:-

&qspi {
        status = "okay";
        spi-max-frequency = <20000000>;
        spidev_lcd@0 {
                compatible = "rohm,dh2228fv";
                spi-max-frequency = <10000000>;
                reg = <0x0>;
        };
};

But we are always getting the following error:

SPI can't send SPI_IOC_MESSAGE : Invalid argument

We were able to run the same LCD over through normal SPI pins using SPIDEV library on AM5728IDK board on SPI2 controller.

So my question is :

  1. Can we use these qSPI pins in normal SPI mode?
  2. If yes, then what kind of changes needed in software for above purpose?
  3. If no, then if i use GPIOs to make a SPI through bitbanging, then what can be the max clock of this bitbanged SPI?

Thanks & regards

Amritpreet Singh