Hello all,
some chips from SAME70 family (J21 for example) do not have an SPI driver but use QSPI that can be run either in serial memory mode or in Master SPI mode. The config options in samv7 arch seems to be already prepared for that as SAMV7_QSPI_IS_SPI is selected for some chips but current sam_qspi.c implements only serial memory mode. There seems to be no working example of QSPI working as SPI in NuttX generally (all the implementions seems to be written just for the memory access) so I´d like to consult which implementation is prefered as I am not sure whether some similar discussions took place in the past. The QSPI would need to support the SPI interface defined in struct spi_dev_s in order to ensure compatibility with existing applications and drivers (LCD displays for example) which use SPI. The option would be to add this structure next to qspi_dev_s in arch specific drivers (in SAM case here https://github.com/apache/incubator-nuttx/blob/master/arch/arm/src/samv7/sam _qspi.c#L159) and implements the specific SPI operations (send, exchange, command/data etc.) in that file. The driver would then access either qspi_ dev_s structure or spi_dev_s structure based on the configuration option for the chip and would operate with that structure. Would this be a suitable option or were there some other plans regarding implementing SPI functions to QSPI? Thanks Best regards, Michal Lenc