From 11c29ef01adc3acac6530e82ae60368f9db642ea Mon Sep 17 00:00:00 2001 From: Jonathan Humphreys Date: Fri, 14 Jun 2024 11:35:33 -0500 Subject: doc: board: ti: am64x: document OSPI layout Added OSPI flash layout diagram, as well as example commands to flash firmware to it. Signed-off-by: Jonathan Humphreys Reviewed-by: Tom Rini --- doc/board/ti/am64x_evm.rst | 24 ++ doc/board/ti/img/ospi_sysfw-am64.svg | 802 +++++++++++++++++++++++++++++++++++ 2 files changed, 826 insertions(+) create mode 100644 doc/board/ti/img/ospi_sysfw-am64.svg (limited to 'doc/board/ti') diff --git a/doc/board/ti/am64x_evm.rst b/doc/board/ti/am64x_evm.rst index 6ae35b3fee3..88997b6a283 100644 --- a/doc/board/ti/am64x_evm.rst +++ b/doc/board/ti/am64x_evm.rst @@ -140,6 +140,30 @@ Image formats: .. image:: img/nodm_tispl.bin.svg :alt: tispl.bin image format +OSPI: +----- +ROM supports booting from OSPI from offset 0x0. + +Flashing images to OSPI: + +Below commands can be used to download tiboot3.bin, tispl.bin, and u-boot.img, +over tftp and then flash those to OSPI at their respective addresses. + +.. prompt:: bash => + + sf probe + tftp ${loadaddr} tiboot3.bin + sf update $loadaddr 0x0 $filesize + tftp ${loadaddr} tispl.bin + sf update $loadaddr 0x100000 $filesize + tftp ${loadaddr} u-boot.img + sf update $loadaddr 0x300000 $filesize + +Flash layout for OSPI: + +.. image:: img/ospi_sysfw-am64.svg + :alt: OSPI flash partition layout + Switch Setting for Boot Mode ---------------------------- diff --git a/doc/board/ti/img/ospi_sysfw-am64.svg b/doc/board/ti/img/ospi_sysfw-am64.svg new file mode 100644 index 00000000000..f6244dce596 --- /dev/null +++ b/doc/board/ti/img/ospi_sysfw-am64.svg @@ -0,0 +1,802 @@ + + + + + + + + + + + + + + + + + + + ospi.tiboot3(1M) + + + + ospi.tiboot3(1M) + + + + + + + + + + + + + + 0x0 + + + + + 0x0 + + + + + + + + + + + + + ospi.tispl(2M) + + + + ospi.tispl(2M) + + + + + + + + + + + + + + 0x100000 + + + + + 0x100000 + + + + + + + + + + + + + ospi.u-boot(4M) + + + + ospi.u-boot(4M) + + + + + + + + + + + + + + 0x300000 + + + + + 0x300000 + + + + + + + + + + + + + ospi.env(128K) + + + + ospi.env(128K) + + + + + + + + + + + + + + 0x700000 + + + + + 0x700000 + + + + + + + + + + + + + ospi.env.backup(128K) + + + + ospi.env.backup(128K) + + + + + + + + + + + + + + 0x720000 + + + + + 0x720000 + + + + + + + + + + + + + padding(768K) + + + + padding(768K) + + + + + + + + + + + + + + 0x740000 + + + + + 0x740000 + + + + + + + + + + + + + ospi.rootfs(UBIFS) + + + + ospi.rootfs(UBIFS) + + + + + + + + + + + + + + 0x800000 + + + + + 0x800000 + + + + + + + + + + + + + ospi.phypattern(256k) + + + + ospi.phypattern(256k) + + + + + + + + + + + + + + 0x3FC0000 + + + + + 0x3FC0000 + + + + + -- cgit v1.2.3