1sample:
2  name: MSPI Flash Sample
3tests:
4  sample.drivers.mspi.timing_scan.flash:
5    tags:
6      - mspi
7    filter: dt_compat_enabled("ambiq,mspi-device")
8    harness: console
9    harness_config:
10      type: multi_line
11      ordered: true
12      regex:
13        - "<inf> mspi_ambiq_timing_scan: TxNeg=0, RxNeg=0, RxCap=0, Turnaround=[0-9]*"
14        - "<inf> mspi_ambiq_timing_scan:     TxDQSDelay: [0-9]*, RxDQSDelay Scan = 0x[0-9]*,(.*)"
15        - "<inf> mspi_ambiq_timing_scan: Selected setting: TxNeg=0, RxNeg=0, RxCap=0, (.*)"
16    platform_allow:
17      - apollo510_evb
18    integration_platforms:
19      - apollo510_evb
20    depends_on: mspi
21    extra_configs:
22      - CONFIG_FLASH=y
23      - CONFIG_FLASH_INIT_PRIORITY=50
24      - CONFIG_FLASH_MSPI_XIP_READ=y
25      - CONFIG_MSPI_AMBIQ_TIMING_SCAN_BUFFER_SIZE=8192
26      - CONFIG_MSPI_AMBIQ_TIMING_SCAN_DATA_SIZE=131072
27
28  sample.drivers.mspi.timing_scan.memc:
29    tags:
30      - mspi
31    filter: dt_compat_enabled("ambiq,mspi-device")
32    harness: console
33    harness_config:
34      type: multi_line
35      ordered: true
36      regex:
37        - "<inf> mspi_ambiq_timing_scan: TxNeg=0, RxNeg=0, RxCap=0, Turnaround=[0-9]*"
38        - "<inf> mspi_ambiq_timing_scan:     TxDQSDelay: [0-9]*, RxDQSDelay Scan = 0x[0-9]*,(.*)"
39        - "<inf> mspi_ambiq_timing_scan: Selected setting: TxNeg=0, RxNeg=0, RxCap=0, (.*)"
40    platform_allow:
41      - apollo510_evb
42    integration_platforms:
43      - apollo510_evb
44    depends_on: mspi
45    extra_configs:
46      - CONFIG_MEMC=y
47      - CONFIG_MEMC_INIT_PRIORITY=50
48