Skip to content

Commit 6302455

Browse files
Santhosh Kumar Kjeevantelukula
authored andcommitted
docs(linux): linux: qspi: Add OSPI documentation for AM62Lx
The OSPI NOR and QSPI NAND documentation is missing for the new AM62Lx EVM. So, add the flash details in Linux documentation. Signed-off-by: Santhosh Kumar K <[email protected]>
1 parent 526dfbe commit 6302455

File tree

1 file changed

+89
-0
lines changed
  • source/linux/Foundational_Components/Kernel/Kernel_Drivers

1 file changed

+89
-0
lines changed

source/linux/Foundational_Components/Kernel/Kernel_Drivers/QSPI.rst

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,16 @@ controllers work only in master mode.
3131
| AM62x LP SK | OSPI NAND | :file:`drivers/spi/spi-cadence-quadspi.c` |
3232
+-------------+------------+-------------------------------------------+
3333

34+
.. ifconfig:: CONFIG_part_variant in ('AM62LX')
35+
36+
+-------------+------------+------------------------------------+
37+
| SoC Family | Capability | Driver |
38+
+=============+============+====================================+
39+
| | OSPI NOR | :file:`drivers/spi/cadence_qspi.c` |
40+
+ AM62Lx EVM +------------+------------------------------------+
41+
| | QSPI NAND | :file:`drivers/spi/cadence_qspi.c` |
42+
+-------------+------------+------------------------------------+
43+
3444
.. ifconfig:: CONFIG_part_variant in ('AM62AX')
3545

3646
+------------+------------+-------------------------------------------+
@@ -324,6 +334,85 @@ refer to :file:`Documentation/devicetree/bindings/mtd/jedec,spi-nor.yaml`,
324334
};
325335
};
326336
337+
.. ifconfig:: CONFIG_part_variant in ('AM62LX')
338+
339+
The following is an example device-tree node for an OSPI NOR device
340+
341+
.. code-block:: dts
342+
343+
&ospi0 {
344+
345+
flash@0{
346+
compatible = "jedec,spi-nor";
347+
reg = <0x0>;
348+
spi-tx-bus-width = <8>;
349+
spi-rx-bus-width = <8>;
350+
spi-max-frequency = <25000000>;
351+
cdns,tshsl-ns = <60>;
352+
cdns,tsd2d-ns = <60>;
353+
cdns,tchsh-ns = <60>;
354+
cdns,tslch-ns = <60>;
355+
cdns,read-delay = <4>;
356+
357+
partitions {
358+
compatible = "fixed-partitions";
359+
#address-cells = <1>;
360+
#size-cells = <1>;
361+
bootph-all;
362+
363+
partition@0 {
364+
label = "ospi.tiboot3";
365+
reg = <0x00 0x80000>;
366+
};
367+
368+
partition@80000 {
369+
label = "ospi.tispl";
370+
reg = <0x80000 0x200000>;
371+
};
372+
373+
// other partitions
374+
};
375+
};
376+
};
377+
378+
The following is an example device-tree node for an QSPI NAND device
379+
380+
.. code-block:: dts
381+
382+
&ospi0 {
383+
384+
flash@0 {
385+
compatible = "spi-nand";
386+
reg = <0x0>;
387+
spi-tx-bus-width = <4>;
388+
spi-rx-bus-width = <4>;
389+
spi-max-frequency = <25000000>;
390+
cdns,tshsl-ns = <60>;
391+
cdns,tsd2d-ns = <60>;
392+
cdns,tchsh-ns = <60>;
393+
cdns,tslch-ns = <60>;
394+
cdns,read-delay = <2>;
395+
396+
partitions {
397+
compatible = "fixed-partitions";
398+
#address-cells = <1>;
399+
#size-cells = <1>;
400+
401+
partition@0 {
402+
label = "ospi_nand.tiboot3";
403+
reg = <0x0 0x80000>;
404+
};
405+
406+
partition@80000 {
407+
label = "ospi_nand.tispl";
408+
reg = <0x80000 0x200000>;
409+
};
410+
411+
// other partitions
412+
};
413+
};
414+
};
415+
327416
Flash properties:
328417

329418
1. **compatible:** specifies the compatible string for the device, the

0 commit comments

Comments
 (0)