Skip to content

Commit ce7fa7b

Browse files
committed
samples: drivers: add samples for microchip qspi
Add jesd216 test case for microchip_sama7g5_qspi device (qspi1) on sama7g54-curiosity board. Add spi-flash test case for microchip_sama7g5_qspi device (qspi1) on sama7g54-curiosity board. Signed-off-by: Li Bin <bin.li@microchip.com>
1 parent 30b460f commit ce7fa7b

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

samples/drivers/jesd216/src/main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@
4242
#define FLASH_NODE DT_COMPAT_GET_ANY_STATUS_OKAY(renesas_rza2m_qspi_spibsc)
4343
#elif DT_HAS_COMPAT_STATUS_OKAY(sifli_sf32lb_mpi_qspi_nor)
4444
#define FLASH_NODE DT_COMPAT_GET_ANY_STATUS_OKAY(sifli_sf32lb_mpi_qspi_nor)
45+
#elif DT_HAS_COMPAT_STATUS_OKAY(microchip_sama7g5_qspi_flash)
46+
#define FLASH_NODE DT_COMPAT_GET_ANY_STATUS_OKAY(microchip_sama7g5_qspi_flash)
4547
#else
4648
#error Unsupported flash driver
4749
#define FLASH_NODE DT_INVALID_NODE

samples/drivers/spi_flash/src/main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@
7070
#define SPI_FLASH_COMPAT nxp_xspi_nor
7171
#elif DT_HAS_COMPAT_STATUS_OKAY(nxp_imx_flexspi_nor)
7272
#define SPI_FLASH_COMPAT nxp_imx_flexspi_nor
73+
#elif DT_HAS_COMPAT_STATUS_OKAY(microchip_sama7g5_qspi_flash)
74+
#define SPI_FLASH_COMPAT microchip_sama7g5_qspi_flash
7375
#else
7476
#define SPI_FLASH_COMPAT invalid
7577
#endif

0 commit comments

Comments
 (0)