Topics

W25Qxx extern Flash


Gaspard Rigolot <gaspard.rigolot@...>
 

Hello,

I currently work on custom board with Zephyr and W25Q80 extern flash memory.
I see that zephyr already got driver for W25QXX and yaml for W25Q16 but driver use some define like DT_WINBOND_W25Q16. So my yaml w25q80 can't work with zephyr driver without modifications. I propose to develop a generic yaml w25qxx.yaml and modify zephyr driver to be generic too. Second solution : one driver and yaml for each component.
The difference between q80 and q16 is the size of flash, define in kconfig not in dts.

Do you think the first solution is good?
 

Regards,



Tom Burdick
 

I actually need this same exact driver with a different size myself. This sounds like a good solution to me.

On Tue, Sep 17, 2019 at 8:10 AM Gaspard Rigolot <gaspard.rigolot@...> wrote:
Hello,

I currently work on custom board with Zephyr and W25Q80 extern flash memory.
I see that zephyr already got driver for W25QXX and yaml for W25Q16 but driver use some define like DT_WINBOND_W25Q16. So my yaml w25q80 can't work with zephyr driver without modifications. I propose to develop a generic yaml w25qxx.yaml and modify zephyr driver to be generic too. Second solution : one driver and yaml for each component.
The difference between q80 and q16 is the size of flash, define in kconfig not in dts.

Do you think the first solution is good?
 

Regards,



Peter A. Bigot
 

W25* flash should already be supported with the `jedec,spi_nor` driver.  The nxp_rt1064 target uses a W25Q32 device with that driver.
 
IMO we should get rid of w25q16 as it confuses things.
 
Peter