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

From DAVE Developer's Wiki
Jump to: navigation, search
 
Line 6: Line 6:
 
!style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#73B2C7; padding:5px; color:white"|Notes
 
!style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#73B2C7; padding:5px; color:white"|Notes
 
|-
 
|-
|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#ededed; padding:5px; color:#000000"|2023/01/23
+
|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|2024/01/23
|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#ededed; padding:5px; color:#000000"|DESK-XZ7-L-1.0.1 release
+
|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|DESK-XZ7-L-1.0.1 release
 
|-
 
|-
 
|}
 
|}
 
<section end=History/>
 
<section end=History/>
 +
__FORCETOC__
 
<section begin=Body/>
 
<section begin=Body/>
  
== Quad-SPI NOR flash memory ==
+
== Peripheral NOR ==
  
 
=== Device tree configuration ===
 
=== Device tree configuration ===
  
This configuration work for Bora, Boralite and BoraX platforms.
+
Here below an example of device tree for the ''Quad-SPI NOR flash'' configuration used on standard DAVE's kit for the [[BORA SOM | BORA]], [[BORA Xpress SOM| BORA Xpress]] and [[BORA Lite SOM | BORA Lite]]:
 
 
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 43: Line 42:
 
...
 
...
 
</pre>
 
</pre>
 +
===Accessing the peripheral ===
  
 
====Linux messages at boot time====
 
====Linux messages at boot time====
 
* bootlog message
 
  
 
<pre class="workstation-terminal">
 
<pre class="workstation-terminal">
Line 56: Line 54:
 
</pre>
 
</pre>
  
* mtd partitions
+
==== Check the mtd partitions ====
  
 
<pre class="workstation-terminal">
 
<pre class="workstation-terminal">
Line 65: Line 63:
 
mtd2: 1be00000 00020000 "rootfs"
 
mtd2: 1be00000 00020000 "rootfs"
 
</pre>
 
</pre>
 
  
 
<section end=Body/>
 
<section end=Body/>
  
----
+
[[Category:BORA]] [[Category:BORA Xpress]] [[Category:BORA Lite]]
 
 
[[Category:BORA]]
 

Latest revision as of 09:08, 26 January 2024

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



Peripheral NOR[edit | edit source]

Device tree configuration[edit | edit source]

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

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>;
    };
};
...
...

Accessing the peripheral[edit | edit source]

Linux messages at boot time[edit | edit source]

[    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"

Check the mtd partitions[edit | edit source]

root@boralite:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 01600000 00020000 "bootbin"
mtd1: 00040000 00020000 "ubootenv"
mtd2: 1be00000 00020000 "rootfs"