test: flash: add gd32 boards
This add gd32vf103v_eval, gd32a503v_eval and gd32f470i_eval boards to
flash common test.
Boards | Flash Type
-------------------------------
gd32vf103v_eval | gd32 fmc v1
gd32a503v_eval | gd32 fmc v2
gd32f470i_eval | gd32 fmc v3
Signed-off-by: HaiLong Yang <hailong.yang@brainco.cn>
This commit is contained in:
parent
ba476c4b8a
commit
f5e871d5e0
@ -16,6 +16,7 @@ supported:
|
||||
- counter
|
||||
- dac
|
||||
- dma
|
||||
- flash
|
||||
- gpio
|
||||
- pwm
|
||||
- spi
|
||||
|
||||
@ -14,6 +14,7 @@ toolchain:
|
||||
supported:
|
||||
- counter
|
||||
- dac
|
||||
- flash
|
||||
- gpio
|
||||
- i2c
|
||||
- pwm
|
||||
|
||||
@ -10,10 +10,11 @@ flash: 128
|
||||
toolchain:
|
||||
- zephyr
|
||||
supported:
|
||||
- uart
|
||||
- dma
|
||||
- flash
|
||||
- gpio
|
||||
- pwm
|
||||
- watchdog
|
||||
- dma
|
||||
- spi
|
||||
- uart
|
||||
- watchdog
|
||||
vendor: gd
|
||||
|
||||
24
tests/drivers/flash/common/boards/gd32a503v_eval.overlay
Normal file
24
tests/drivers/flash/common/boards/gd32a503v_eval.overlay
Normal file
@ -0,0 +1,24 @@
|
||||
/*
|
||||
* Copyright (c) 2023, BrainCo Inc.
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
&flash0 {
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
/* Set 4KB of storage at the border of bank0(256KB) and bank1(128KB). */
|
||||
storage_partition: partition@3f800 {
|
||||
label = "storage";
|
||||
reg = <0x0003f800 DT_SIZE_K(4)>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
/* To avoid test on nor_flash, disable it. */
|
||||
&nor_flash {
|
||||
status = "disabled";
|
||||
};
|
||||
24
tests/drivers/flash/common/boards/gd32f470i_eval.overlay
Normal file
24
tests/drivers/flash/common/boards/gd32f470i_eval.overlay
Normal file
@ -0,0 +1,24 @@
|
||||
/*
|
||||
* Copyright (c) 2023, BrainCo Inc.
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
&flash0 {
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
/* Set 512KB of storage at the end of 3072KB flash */
|
||||
storage_partition: partition@280000 {
|
||||
label = "storage";
|
||||
reg = <0x00280000 DT_SIZE_K(512)>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
/* To avoid test on nor_flash, disable it. */
|
||||
&nor_flash {
|
||||
status = "disabled";
|
||||
};
|
||||
24
tests/drivers/flash/common/boards/gd32vf103v_eval.overlay
Normal file
24
tests/drivers/flash/common/boards/gd32vf103v_eval.overlay
Normal file
@ -0,0 +1,24 @@
|
||||
/*
|
||||
* Copyright (c) 2023, BrainCo Inc.
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
&flash0 {
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
/* Set 2KB of storage at the end of 128KB flash */
|
||||
storage_partition: partition@1f800 {
|
||||
label = "storage";
|
||||
reg = <0x0001f800 DT_SIZE_K(2)>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
/* To avoid test on nor_flash, disable it. */
|
||||
&nor_flash {
|
||||
status = "disabled";
|
||||
};
|
||||
@ -92,3 +92,8 @@ tests:
|
||||
- atsamd20_xpro
|
||||
- atsamr21_xpro
|
||||
- atsame54_xpro
|
||||
drivers.flash.common.gd32:
|
||||
platform_allow:
|
||||
- gd32vf103v_eval
|
||||
- gd32a503v_eval
|
||||
- gd32f470i_eval
|
||||
|
||||
Loading…
Reference in New Issue
Block a user