<div dir="ltr"><div>Hi, <br></div><div>First, let me explain what I would like to achieve. <br></div><div>I'm using the NXP LS1028a CPU, which will be used as a base for our SoM. <br></div><div>This CPU features two types of SPI controllers:</div><div>- 1 FlexSPI (cabable of Single/Dual/Quad/Octal mode)<br></div><div>- 3 traditional SPIs</div><div>Because of the design of our SoM all traditional SPIs are not available (designed to be used for other needs), so the only one left is FlexSPI.</div><div>This FlexSPI will be used to communicate with 3 different things:</div><div>- SPI NOR Flash</div><div>- SPI NOR Flash</div><div>- Hilsher netX90</div><div>As far as I understand FlexSPI is designed to work with Flash-like devices, which are obviously Flash memories. Each time one wants to send something over this FlexSPI it puts the data on the bus like this:</div><div>- opcode | addr | dummy | data <br></div><div><br></div><div>So communication with Flash memories won't be a problem. The problem I see is the communication with this Hilsher thing. Fortunately, we can put on the Hilsher our own FW that will handle SPI communication. So my idea was to:</div><div>- develop a FW designed for Hilsher that will behave like a Flash device</div><div>- develop a driver on the Linux side that will use this FlexSPI controller to communicate with Hisler in a Flash (thus FlexSPI) compatible manner.</div><div><br></div><div>However, I'm not sure how I should go about this. I checked and e.g. driver that we use to communicate with SPI NOR Flash (jedec,spi-nor) uses something like spi-nor which in turn uses a driver spi-mem. <br></div><div>Obviously, I get that the spi-nor is designed to work with SPI NOR flashes so that's not the way I'm going to go, however, I'm curious about this spi-mem thing. <br></div><div>Is this spi-mem designed to work with devices that are like memory-mapped but not necessarily flash memories?<br></div><div><br></div><div>What would you advise in this case? <br></div><div><br></div><div>BR <br></div><div>Patrick<br></div></div>