Difference between revisions of "DESK-XZ7-L/Peripherals/NOR"

From DAVE Developer's Wiki
Jump to: navigation, search
(Created page with "<section begin=History/> {| style="border-collapse:collapse; " !colspan="4" style="width:100%; text-align:left"; border-bottom:solid 2px #ededed"|History |- !style="border-le...")
 
Line 13: Line 13:
 
<section begin=Body/>
 
<section begin=Body/>
  
== QuadSPI NOR flash memory ==
+
== Quad-SPI NOR flash memory ==
  
 
=== Device tree configuration ===
 
=== Device tree configuration ===
Line 19: Line 19:
 
This configuration work for Bora, Boralite and BoraX platforms.
 
This configuration work for Bora, Boralite and BoraX platforms.
  
Here below an example of device tree configuration used on standard DAVE's kit for the Bora, Boralite and BoraX ''QuadSPI NOR flash'':
+
Here below an example of device tree configuration used on standard DAVE's kit for the Bora, Boralite and BoraX ''Quad-SPI NOR flash'':
  
 
From <code>bora.dtsi</code>:
 
From <code>bora.dtsi</code>:
Line 47: Line 47:
  
 
* bootlog message
 
* bootlog message
 +
 
<pre class="workstation-terminal">
 
<pre class="workstation-terminal">
 
[    0.509067] spi-nor spi0.0: found s25fl256s1, expected s25fl128s1
 
[    0.509067] spi-nor spi0.0: found s25fl256s1, expected s25fl128s1

Revision as of 13:52, 24 January 2024

History
Issue Date Notes
2023/01/23 DESK-XZ7-L-1.0.1 release


Quad-SPI NOR flash memory[edit | edit source]

Device tree configuration[edit | edit source]

This configuration work for Bora, Boralite and BoraX platforms.

Here below an example of device tree configuration used on standard DAVE's kit for the Bora, Boralite and BoraX Quad-SPI NOR flash:

From bora.dtsi:

...
...
&qspi {
    flash0: flash@0 {
        // we need to use 128Mbit (16MiB) device compatibile even if
        // the real hardware has a 256Mbit (32MiB) device because of
        // Zynq QSPI controller limits
        compatible = "spansion,s25fl128s1", "jedec,spi-nor";
        #address-cells = <1>;
        #size-cells = <1>;
        reg = <0>;
        spi-tx-bus-width = <1>;
        spi-rx-bus-width = <4>;
        spi-max-frequency = <25000000>;
    };
};
...
...

Linux messages at boot time[edit | edit source]

  • bootlog message
[    0.509067] spi-nor spi0.0: found s25fl256s1, expected s25fl128s1
[    0.515401] spi-nor spi0.0: s25fl256s1 (32768 Kbytes)
[    0.520482] 1 fixed-partitions partitions found on MTD device spi0.0
[    0.526863] Creating 1 MTD partitions on "spi0.0":
[    0.531648] 0x000000000000-0x000002000000 : "boot"
  • mtd partitions
root@boralite:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 01600000 00020000 "bootbin"
mtd1: 00040000 00020000 "ubootenv"
mtd2: 1be00000 00020000 "rootfs"