Skip to content

Commit 35133c8

Browse files
peng1 chennashif
authored andcommitted
spi/qspi: add a testcase to test spi api for microchip board.
test write and read data with flash device using spi single, dual, quad and octal mode. Signed-off-by: peng1 chen <[email protected]>
1 parent da37260 commit 35133c8

File tree

6 files changed

+701
-0
lines changed

6 files changed

+701
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
3+
cmake_minimum_required(VERSION 3.13.1)
4+
5+
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
6+
project(qspi)
7+
8+
target_sources(app PRIVATE src/main.c)
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Build test for:
2+
Microchip mec15xxevb_assy6853 qspi driver test.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/*
2+
* Copyright (c) 2020 Intel Corporation
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&spi0 {
8+
status = "okay";
9+
port_sel = <0>;
10+
chip_select = <0>;
11+
lines = <4>;
12+
};
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
CONFIG_SPI=y
2+
CONFIG_ZTEST=y
3+
CONFIG_TEST_USERSPACE=y

0 commit comments

Comments
 (0)