sample:
  name: JESD216 Sample
common:
  tags:
    - spi
    - flash
  harness: console
  harness_config:
    type: multi_line
    ordered: true
    regex:
      - "sfdp-bfp ="
      - "jedec-id ="
tests:
  sample.drivers.jesd216:
    platform_exclude:
      - hifive1
      - hifive_unleashed/fu540/e51
      - hifive_unleashed/fu540/u54
      - hifive_unmatched/fu740/s7
      - hifive_unmatched/fu740/u74
      - mimxrt1170_evk/mimxrt1176/cm7
      - mimxrt1170_evk/mimxrt1176/cm4
    filter: dt_compat_enabled("jedec,spi-nor")
    depends_on: spi
  sample.drivers.jesd216.nrf52840dk_spi:
    extra_args:
      - DTC_OVERLAY_FILE=boards/nrf52840dk_nrf52840_spi.overlay
    platform_allow: nrf52840dk/nrf52840
    integration_platforms:
      - nrf52840dk/nrf52840
  sample.drivers.stm32.jesd216:
    filter: dt_compat_enabled("st,stm32-xspi-nor")
      or dt_compat_enabled("st,stm32-ospi-nor")
      or dt_compat_enabled("st,stm32-qspi-nor")
    depends_on: spi
