Skip to content

Commit 18e8890

Browse files
committed
[ot] docs/opentitan: earlgrey: document SPI Passthrough flash options
Signed-off-by: Alice Ziuziakowska <[email protected]>
1 parent d3e650f commit 18e8890

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

docs/opentitan/earlgrey.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ See documentation in [`keymgr.md`](./keymgr.md).
239239
MTD bus 0 is assigned to the SPI0 Host controller and MTD bus 1 is assigned to the SPI1 Host
240240
controller. See also Embedded Flash controller section.
241241

242-
* `-global ot-earlgrey-board.spiflash<bus>=<flash_type>` should be used to instanciate a SPI
242+
* `-global ot-earlgrey-board.spiflash<bus>=<flash_type>` should be used to instantiate a SPI
243243
dataflash device of the specified type to the first device (/CS0) of the specified bus.
244244
Any SPI dataflash device supported by QEMU can be used. To list the supported devices, use
245245
`grep -F 'INFO("' hw/block/m25p80.c | cut -d'"' -f2`
@@ -258,6 +258,18 @@ See documentation in [`keymgr.md`](./keymgr.md).
258258
best SPI Host transfer performances, but decreases accuracy of the SPI Host clock settings. Time
259259
should be specified in ns, and defaults to 0 that indicates automatic SPI bus clock management.
260260

261+
### SPI Device
262+
263+
* `-global ot-earlgrey-board.spiflash_passthrough=<flash_type>` should be used to instantiate a
264+
downstream SPI dataflash device of the specified type for use by OT SPI Device in Passthrough
265+
mode. The list of supported devices is the same as for SPI Host.
266+
267+
* `-drive if=mtd,bus=3,file=<filename>,format=raw` should be used to specify a PATH to a QEMU RAW
268+
image file used as the backing storage for the downstream flash.
269+
270+
MTD bus 3 is assigned to the downstream flash device accessible through OT SPI Device in
271+
Passthrough mode. See the SPI Host and Embedded Flash sections for other bus assignments.
272+
261273
### UART
262274

263275
See documentation in [`uart.md`](./uart.md).

0 commit comments

Comments
 (0)