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:
HaiLong Yang 2023-11-30 17:25:43 +08:00 committed by Fabio Baltieri
parent ba476c4b8a
commit f5e871d5e0
7 changed files with 83 additions and 3 deletions

View File

@ -16,6 +16,7 @@ supported:
- counter
- dac
- dma
- flash
- gpio
- pwm
- spi

View File

@ -14,6 +14,7 @@ toolchain:
supported:
- counter
- dac
- flash
- gpio
- i2c
- pwm

View File

@ -10,10 +10,11 @@ flash: 128
toolchain:
- zephyr
supported:
- uart
- dma
- flash
- gpio
- pwm
- watchdog
- dma
- spi
- uart
- watchdog
vendor: gd

View 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";
};

View 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";
};

View 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";
};

View File

@ -92,3 +92,8 @@ tests:
- atsamd20_xpro
- atsamr21_xpro
- atsame54_xpro
drivers.flash.common.gd32:
platform_allow:
- gd32vf103v_eval
- gd32a503v_eval
- gd32f470i_eval