From bcdb3a171e0fbfd10322b64f5feb82ff438cc0f2 Mon Sep 17 00:00:00 2001 From: Tran Van Quy Date: Mon, 18 Nov 2024 09:44:16 +0700 Subject: [PATCH] tests: disk: Add overlay to support tests/samples on RA8 Support sdhc tests/samples on Renesas RA8 boards Signed-off-by: Tran Van Quy --- tests/subsys/fs/ext2/boards/ek_ra8d1.overlay | 17 +++++++++++++++++ tests/subsys/fs/ext2/boards/ek_ra8m1.overlay | 17 +++++++++++++++++ tests/subsys/fs/ext2/boards/mck_ra8t1.overlay | 17 +++++++++++++++++ tests/subsys/fs/fat_fs_api/boards/ek_ra8d1.conf | 4 ++++ tests/subsys/fs/fat_fs_api/boards/ek_ra8m1.conf | 4 ++++ .../subsys/fs/fat_fs_api/boards/mck_ra8t1.conf | 4 ++++ 6 files changed, 63 insertions(+) create mode 100644 tests/subsys/fs/ext2/boards/ek_ra8d1.overlay create mode 100644 tests/subsys/fs/ext2/boards/ek_ra8m1.overlay create mode 100644 tests/subsys/fs/ext2/boards/mck_ra8t1.overlay create mode 100644 tests/subsys/fs/fat_fs_api/boards/ek_ra8d1.conf create mode 100644 tests/subsys/fs/fat_fs_api/boards/ek_ra8m1.conf create mode 100644 tests/subsys/fs/fat_fs_api/boards/mck_ra8t1.conf diff --git a/tests/subsys/fs/ext2/boards/ek_ra8d1.overlay b/tests/subsys/fs/ext2/boards/ek_ra8d1.overlay new file mode 100644 index 000000000000000..1bc83251dd838f0 --- /dev/null +++ b/tests/subsys/fs/ext2/boards/ek_ra8d1.overlay @@ -0,0 +1,17 @@ +/* + * Copyright (c) 2024 Renesas Electronics Corporation + * SPDX-License-Identifier: Apache-2.0 + */ + +&sdhc1 { + sdmmc { + partition { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size_cells = <1>; + slot1_partition: partition@0 { + reg = <0x00000000 0x800000>; + }; + }; + }; +}; diff --git a/tests/subsys/fs/ext2/boards/ek_ra8m1.overlay b/tests/subsys/fs/ext2/boards/ek_ra8m1.overlay new file mode 100644 index 000000000000000..6546b3a960e61cb --- /dev/null +++ b/tests/subsys/fs/ext2/boards/ek_ra8m1.overlay @@ -0,0 +1,17 @@ +/* + * Copyright (c) 2024 Renesas Electronics Corporation + * SPDX-License-Identifier: Apache-2.0 + */ + +&sdhc0 { + sdmmc { + partition { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size_cells = <1>; + slot1_partition: partition@0 { + reg = <0x00000000 0x800000>; + }; + }; + }; +}; diff --git a/tests/subsys/fs/ext2/boards/mck_ra8t1.overlay b/tests/subsys/fs/ext2/boards/mck_ra8t1.overlay new file mode 100644 index 000000000000000..6546b3a960e61cb --- /dev/null +++ b/tests/subsys/fs/ext2/boards/mck_ra8t1.overlay @@ -0,0 +1,17 @@ +/* + * Copyright (c) 2024 Renesas Electronics Corporation + * SPDX-License-Identifier: Apache-2.0 + */ + +&sdhc0 { + sdmmc { + partition { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size_cells = <1>; + slot1_partition: partition@0 { + reg = <0x00000000 0x800000>; + }; + }; + }; +}; diff --git a/tests/subsys/fs/fat_fs_api/boards/ek_ra8d1.conf b/tests/subsys/fs/fat_fs_api/boards/ek_ra8d1.conf new file mode 100644 index 000000000000000..75e72b5e9610f70 --- /dev/null +++ b/tests/subsys/fs/fat_fs_api/boards/ek_ra8d1.conf @@ -0,0 +1,4 @@ +CONFIG_MAIN_STACK_SIZE=4096 +CONFIG_DISK_DRIVER_RAM=n +CONFIG_DISK_DRIVER_FLASH=n +CONFIG_FS_FATFS_HAS_RTC=n diff --git a/tests/subsys/fs/fat_fs_api/boards/ek_ra8m1.conf b/tests/subsys/fs/fat_fs_api/boards/ek_ra8m1.conf new file mode 100644 index 000000000000000..75e72b5e9610f70 --- /dev/null +++ b/tests/subsys/fs/fat_fs_api/boards/ek_ra8m1.conf @@ -0,0 +1,4 @@ +CONFIG_MAIN_STACK_SIZE=4096 +CONFIG_DISK_DRIVER_RAM=n +CONFIG_DISK_DRIVER_FLASH=n +CONFIG_FS_FATFS_HAS_RTC=n diff --git a/tests/subsys/fs/fat_fs_api/boards/mck_ra8t1.conf b/tests/subsys/fs/fat_fs_api/boards/mck_ra8t1.conf new file mode 100644 index 000000000000000..75e72b5e9610f70 --- /dev/null +++ b/tests/subsys/fs/fat_fs_api/boards/mck_ra8t1.conf @@ -0,0 +1,4 @@ +CONFIG_MAIN_STACK_SIZE=4096 +CONFIG_DISK_DRIVER_RAM=n +CONFIG_DISK_DRIVER_FLASH=n +CONFIG_FS_FATFS_HAS_RTC=n