blob: 882728d541361e8cf7290f29e6a99353f35e4a50 [file] [log] [blame]
Abdellatif El Khlifi6db33c22023-04-17 10:11:53 +01001Specifying NVMXIP information for devices
2======================================
3
4QSPI XIP flash device nodes
5---------------------------
6
7Each flash device should have its own node.
8
9Each node must specify the following fields:
10
111)
12 compatible = "nvmxip,qspi";
13
14This allows to bind the flash device with the nvmxip_qspi driver
15If a platform has its own driver, please provide your own compatible
16string.
17
182)
Abdellatif El Khlifi6b005872023-04-17 10:11:55 +010019 reg = /bits/ 64 <0x08000000 0x00200000>;
Abdellatif El Khlifi6db33c22023-04-17 10:11:53 +010020
21The start address and size of the flash device. The values give here are an
22example (when the cell size is 2).
23
24When cell size is 1, the reg field looks like this:
25
26 reg = <0x08000000 0x00200000>;
27
283)
29
30 lba_shift = <9>;
31
32The number of bit shifts used to calculate the size in bytes of one block.
33In this example the block size is 1 << 9 = 2 ^ 9 = 512 bytes
34
354)
36
37 lba = <4096>;
38
39The number of blocks.
40
41Example of multiple flash devices
42----------------------------------------------------
43
44 nvmxip-qspi1@08000000 {
45 compatible = "nvmxip,qspi";
Abdellatif El Khlifi6b005872023-04-17 10:11:55 +010046 reg = /bits/ 64 <0x08000000 0x00200000>;
Abdellatif El Khlifi6db33c22023-04-17 10:11:53 +010047 lba_shift = <9>;
48 lba = <4096>;
49 };
50
51 nvmxip-qspi2@08200000 {
52 compatible = "nvmxip,qspi";
Abdellatif El Khlifi6b005872023-04-17 10:11:55 +010053 reg = /bits/ 64 <0x08200000 0x00100000>;
Abdellatif El Khlifi6db33c22023-04-17 10:11:53 +010054 lba_shift = <9>;
55 lba = <2048>;
56 };