From 27fa6d9163e04d3f04b163308e326158bd4700cf Mon Sep 17 00:00:00 2001 From: Mykola Kvach Date: Wed, 12 Jul 2023 10:04:05 +0300 Subject: [PATCH] samples: littlefs: add support for H3ULCB and Salvator XS M3 Add support of R-Car H3ULCB and Salvator XS M3 boards to littlefs sample. Signed-off-by: Mykola Kvach --- .../boards/rcar_h3ulcb_r8a77951_a57.conf | 17 +++++++++++++++++ .../boards/rcar_h3ulcb_r8a77951_a57.overlay | 8 ++++++++ .../fs/littlefs/boards/rcar_salvator_xs.conf | 17 +++++++++++++++++ .../fs/littlefs/boards/rcar_salvator_xs.overlay | 8 ++++++++ samples/subsys/fs/littlefs/sample.yaml | 2 ++ 5 files changed, 52 insertions(+) create mode 100644 samples/subsys/fs/littlefs/boards/rcar_h3ulcb_r8a77951_a57.conf create mode 100644 samples/subsys/fs/littlefs/boards/rcar_h3ulcb_r8a77951_a57.overlay create mode 100644 samples/subsys/fs/littlefs/boards/rcar_salvator_xs.conf create mode 100644 samples/subsys/fs/littlefs/boards/rcar_salvator_xs.overlay diff --git a/samples/subsys/fs/littlefs/boards/rcar_h3ulcb_r8a77951_a57.conf b/samples/subsys/fs/littlefs/boards/rcar_h3ulcb_r8a77951_a57.conf new file mode 100644 index 00000000000..f2dffe4fe09 --- /dev/null +++ b/samples/subsys/fs/littlefs/boards/rcar_h3ulcb_r8a77951_a57.conf @@ -0,0 +1,17 @@ +# +# Copyright (c) 2023 EPAM Systems +# +# SPDX-License-Identifier: Apache-2.0 +# +CONFIG_MAIN_STACK_SIZE=4096 +CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=8192 +CONFIG_FS_LITTLEFS_FC_HEAP_SIZE=8192 + +CONFIG_DISK_ACCESS=y +CONFIG_DISK_DRIVERS=y +CONFIG_DISK_DRIVER_MMC=y + +CONFIG_FS_LITTLEFS_BLK_DEV=y +CONFIG_APP_LITTLEFS_STORAGE_BLK_SDMMC=y + +CONFIG_FS_LITTLEFS_FMP_DEV=n diff --git a/samples/subsys/fs/littlefs/boards/rcar_h3ulcb_r8a77951_a57.overlay b/samples/subsys/fs/littlefs/boards/rcar_h3ulcb_r8a77951_a57.overlay new file mode 100644 index 00000000000..9442e02b45f --- /dev/null +++ b/samples/subsys/fs/littlefs/boards/rcar_h3ulcb_r8a77951_a57.overlay @@ -0,0 +1,8 @@ +/* SPDX-License-Identifier: Apache-2.0 */ + +&emmc2 { + disk { + status = "okay"; + }; + status = "okay"; +}; diff --git a/samples/subsys/fs/littlefs/boards/rcar_salvator_xs.conf b/samples/subsys/fs/littlefs/boards/rcar_salvator_xs.conf new file mode 100644 index 00000000000..f2dffe4fe09 --- /dev/null +++ b/samples/subsys/fs/littlefs/boards/rcar_salvator_xs.conf @@ -0,0 +1,17 @@ +# +# Copyright (c) 2023 EPAM Systems +# +# SPDX-License-Identifier: Apache-2.0 +# +CONFIG_MAIN_STACK_SIZE=4096 +CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=8192 +CONFIG_FS_LITTLEFS_FC_HEAP_SIZE=8192 + +CONFIG_DISK_ACCESS=y +CONFIG_DISK_DRIVERS=y +CONFIG_DISK_DRIVER_MMC=y + +CONFIG_FS_LITTLEFS_BLK_DEV=y +CONFIG_APP_LITTLEFS_STORAGE_BLK_SDMMC=y + +CONFIG_FS_LITTLEFS_FMP_DEV=n diff --git a/samples/subsys/fs/littlefs/boards/rcar_salvator_xs.overlay b/samples/subsys/fs/littlefs/boards/rcar_salvator_xs.overlay new file mode 100644 index 00000000000..9442e02b45f --- /dev/null +++ b/samples/subsys/fs/littlefs/boards/rcar_salvator_xs.overlay @@ -0,0 +1,8 @@ +/* SPDX-License-Identifier: Apache-2.0 */ + +&emmc2 { + disk { + status = "okay"; + }; + status = "okay"; +}; diff --git a/samples/subsys/fs/littlefs/sample.yaml b/samples/subsys/fs/littlefs/sample.yaml index b78a070f1c9..89ffe9f16ae 100644 --- a/samples/subsys/fs/littlefs/sample.yaml +++ b/samples/subsys/fs/littlefs/sample.yaml @@ -20,6 +20,8 @@ tests: - mimxrt1160_evk/mimxrt1166/cm7 - lpcxpresso55s69/lpc55s69/cpu0 - mr_canhubk3 + - rcar_h3ulcb/r8a77951/a57 + - rcar_salvator_xs - stm32f429i_disc1 - stm32f746g_disco - stm32h747i_disco/stm32h747xx/m7