zephyr/samples/drivers/spi_flash/sample.yaml
Erwan Gouriou e2ff107cf2 samples: spi_flash: Add compatibility with st,stm32-qspi-nor
Enable using st,stm32-qspi-nor compatible driver for this
sample.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2021-01-15 10:29:30 -05:00

25 lines
706 B
YAML

sample:
name: SPI Flash Sample
tests:
sample.drivers.spi.flash:
tags: spi flash
filter: dt_compat_enabled("jedec,spi-nor") or dt_compat_enabled("st,stm32-qspi-nor")
harness: console
harness_config:
type: multi_line
ordered: true
regex:
- "Test 1: Flash erase"
- "Flash erase succeeded!"
- "Test 2: Flash write"
- "Attempting to write 4 bytes"
- "Data read matches data written. Good!!"
depends_on: spi
sample.drivers.spi.flash_dpd:
tags: spi flash
filter: dt_compat_enabled("jedec,spi-nor")
build_only: true
extra_configs:
- CONFIG_SPI_NOR_IDLE_IN_DPD=y
depends_on: spi