DESK-XZU-L/Peripherals/NOR

From DAVE Developer's Wiki
Jump to: navigation, search
History
Issue Date Notes
2026/06/26 DESK-XZU-L-2.x.x 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 ONDA and ONDA Plus.

From onda.dtsi:

...
...
&qspi {
        #address-cells = <1>;
        #size-cells = <0>;
        flash0: flash@0 {
                compatible = "issi,is25wp128", "jedec,spi-nor";
                reg = <0x0>, <0x1>;
                parallel-memories = /bits/ 64 <0x1000000 0x1000000>;
                spi-tx-bus-width = <4>;
                spi-rx-bus-width = <4>;
                #address-cells = <1>;
                #size-cells = <1>;
                spi-max-frequency = <25000000>;
        };
};
...
...

Accessing the peripheral[edit | edit source]

Linux messages at boot time[edit | edit source]

[    2.499052] spi-nor spi0.0: is25wp128 (32768 Kbytes)

Check the mtd partitions[edit | edit source]

root@onda:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 02000000 00020000 "spi0.0"