CONFIG_ZYNQMP_QSPI CONFIG_SPI_FLASH_BAR CONFIG_DM_SPI_FLASH CONFIG_SPI_FLASH |
CONFIG_ZYNQ_QSPI=y CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_BAR=y |
&&qspi { status = "okay"; flash@0 { compatible = "m25p80"; /* Micron MT25QU512ABB8ESF */ #address-cells = <1>; #size-cells = <1>; reg = <0x0>; spi-tx-bus-width = <1>; spi-rx-bus-width = <4>; spi-max-frequency = <108000000>; /* Based on DC1 spec */ partition@qspi-fsbl-uboot { /* for testing purpose */ label = "qspi-fsbl-uboot"; reg = <0x0 0x100000>; }; partition@qspi-linux { /* for testing purpose */ label = "qspi-linux"; reg = <0x100000 0x500000>; }; partition@qspi-device-tree { /* for testing purpose */ label = "qspi-device-tree"; reg = <0x600000 0x20000>; }; partition@qspi-rootfs { /* for testing purpose */ label = "qspi-rootfs"; reg = <0x620000 0x5E0000>; }; }; }; |
&&qspi { status = "okay"; is-dual = <0>; num-cs = <1>; flash@0 { compatible = "n25q128a11"; reg = <0x0>; spi-tx-bus-width = <1>; spi-rx-bus-width = <4>; spi-max-frequency = <50000000>; #address-cells = <1>; #size-cells = <1>; partition@qspi-fsbl-uboot { label = "qspi-fsbl-uboot"; reg = <0x0 0x100000>; }; partition@qspi-linux { label = "qspi-linux"; reg = <0x100000 0x500000>; }; partition@qspi-device-tree { label = "qspi-device-tree"; reg = <0x600000 0x20000>; }; partition@qspi-rootfs { label = "qspi-rootfs"; reg = <0x620000 0x5E0000>; }; partition@qspi-bitstream { label = "qspi-bitstream"; reg = <0xC00000 0x400000>; }; }; }; |
Zynq> sf probe SF: Deteced s25fl064l with page size 256 Bytes, erase size 64 KiB, total 8 MiB Zynq> sf erase 0 100000 SF: 1048576 bytes @ 0x0 Erased: OK Zynq> mw.b 100000 ff 100000 Zynq> sf write 100000 0 100000 device 0 offset 0x0, size 0x100000 SF: 1048576 bytes @ 0x0 Written: OK Zynq> sf read 200000 0 100000 device 0 offset 0x0, size 0x100000 SF: 1048576 bytes @ 0x0 Read: OK Zynq> cmp.b 100000 200000 100000 Total of 1048576 byte(s) were the same |