[PATCH] mtd: spi-nor: add support for Winbond W25Q512JV

Tudor.Ambarus at microchip.com Tudor.Ambarus at microchip.com
Tue Mar 9 07:53:59 GMT 2021


On 3/8/21 8:03 PM, David Bauer wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
> 
> Hi Tudor,
> 
> On 3/8/21 6:50 AM, Tudor.Ambarus at microchip.com wrote:
>> On 2/13/21 5:10 PM, David Bauer wrote:
>>> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
>>>
>>> The Winbond W25Q512JV is a 512mb SPI-NOR chip. It supports 4K
>>> sectors as well as block protection and Dual-/Quad-read.
>>>
>>> Tested on: Ubiquiti UniFi 6 LR
>>>
>>> Signed-off-by: David Bauer <mail at david-bauer.net>
>>
>> David, I'll take Shuhao's patch because he sent it first:
>> https://patchwork.ozlabs.org/project/linux-mtd/patch/20210208075303.4200-1-shuhao.mai.1990@gmail.com/
> 
> Fine with me, I have not found this patch :)
> 
>>
>> Would you make an incremental patch on top op Shuhao's, to add the
>> locking support?
> 
> Sure, It's necessary for the board (UniFi 6 LR), as the bootloader locks the flash on boot.

Is it necessary to unlock the flash at boot time?
You can unlock the flash from user-space, using mtd-utils.

Have you tried to lock/unlock portions of the flash using mtd-utils,
and check if what was locked corresponds to what the datasheet indicates?

> 
> I'll send a new patch for the lock support.
> 
Great, thanks!
ta


More information about the linux-mtd mailing list