• Shaik Sajida Bhanu's avatar
    mtd: spi-nor: winbond: add support for W25Q512NW-IM · 89051ff5
    Shaik Sajida Bhanu authored
    Add support for winbond W25Q512NW-IM chip.
    
    Below are the tests done:
    
    1. Verified flashing binary image on spi card using flashrom tool.
    2. Verified OTP support, below are the test results:
    
     localhost / # cat
     /sys/bus/platform/devices/soc\@0/88dc000.spi/spi_master/spi16/
     spi16.0/spi-nor/jedec_id
     ef8020
    
     localhost / # cat
     /sys/bus/platform/devices/soc\@0/88dc000.spi/spi_master/spi16/
     spi16.0/spi-nor/manufacturer
     winbond
    
     localhost / # cat
     /sys/bus/platform/devices/soc\@0/88dc000.spi/spi_master/spi16/
     spi16.0/spi-nor/partname
     w25q512nwm
    
     localhost / # hexdump
     /sys/bus/platform/devices/soc\@0/88dc000.spi/spi_master/sp
     i16/spi16.0/spi-nor/sfdp
     0000000 4653 5044 0106 ff01 0600 1001 0080 ff00
     0000010 0084 0201 00d0 ff00 ffff ffff ffff ffff
     0000020 6800 6c65 6f6c 7720 726f 646c ffff ffff
     0000030 ffff ffff ffff ffff ffff ffff ffff ffff
     *
     0000080 20e5 fffb ffff 1fff eb44 6b08 3b08 bb42
     0000090 fffe ffff ffff 0000 ffff eb40 200c 520f
     00000a0 d810 0000 0233 00a6 e781 d914 63e9 3376
     00000b0 757a 757a bdf7 5cd5 f719 ff5d 70e9 a5f9
     00000c0 ffff ffff ffff ffff ffff ffff ffff ffff
     00000d0 0aff fff0 ff21 ffdc
     00000d8
    
     localhost / # md5sum
     /sys/bus/platform/devices/soc\@0/88dc000.spi/spi_master/spi
     16/spi16.0/spi-nor/sfdp
     106d89d6c049110bc94c01517cb4ce24
     /sys/bus/platform/devices/soc@0/88dc000.spi/
     spi_master/spi16/spi16.0/spi-nor/sfdp
    Signed-off-by: default avatarShaik Sajida Bhanu <quic_c_sbhanu@quicinc.com>
    Signed-off-by: default avatarPratyush Yadav <p.yadav@ti.com>
    Reviewed-by: default avatarDoug Anderson <dianders@chromium.org>
    Reviewed-by: default avatarMichael Walle <michael@walle.cc>
    Link: https://lore.kernel.org/r/1651234239-32217-1-git-send-email-quic_c_sbhanu@quicinc.com
    89051ff5
winbond.c 7.54 KB