Skip to content

Commit

Permalink
drivers: sdhc: Add overlay for SDHC driver on RA8
Browse files Browse the repository at this point in the history
Add overlay to confirm SDHC driver on RA8

Signed-off-by: Phi Tran <[email protected]>
  • Loading branch information
Phi Tran authored and quytranpzz committed Nov 13, 2024
1 parent e218cb3 commit 1280afe
Show file tree
Hide file tree
Showing 36 changed files with 423 additions and 0 deletions.
1 change: 1 addition & 0 deletions samples/subsys/fs/fs_sample/boards/ek_ra8d1.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONFIG_DISK_DRIVER_SDMMC=y
19 changes: 19 additions & 0 deletions samples/subsys/fs/fs_sample/boards/ek_ra8d1.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
* Copyright (c) 2024 Renesas Electronics Corporation
* SPDX-License-Identifier: Apache-2.0
*/

/ {
aliases {
sdhc1 = &sdhc1;
};
};

&sdhc1 {
status = "okay";
sdmmc {
compatible = "zephyr,sdmmc-disk";
disk-name = "SD";
status = "okay";
};
};
1 change: 1 addition & 0 deletions samples/subsys/fs/fs_sample/boards/ek_ra8m1.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONFIG_DISK_DRIVER_SDMMC=y
19 changes: 19 additions & 0 deletions samples/subsys/fs/fs_sample/boards/ek_ra8m1.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
* Copyright (c) 2024 Renesas Electronics Corporation
* SPDX-License-Identifier: Apache-2.0
*/

/ {
aliases {
sdhc0 = &sdhc0;
};
};

&sdhc0 {
status = "okay";
sdmmc {
compatible = "zephyr,sdmmc-disk";
disk-name = "SD";
status = "okay";
};
};
1 change: 1 addition & 0 deletions samples/subsys/fs/fs_sample/boards/mck_ra8t1.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONFIG_DISK_DRIVER_SDMMC=y
19 changes: 19 additions & 0 deletions samples/subsys/fs/fs_sample/boards/mck_ra8t1.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
* Copyright (c) 2024 Renesas Electronics Corporation
* SPDX-License-Identifier: Apache-2.0
*/

/ {
aliases {
sdhc0 = &sdhc0;
};
};

&sdhc0 {
status = "okay";
sdmmc {
compatible = "zephyr,sdmmc-disk";
disk-name = "SD";
status = "okay";
};
};
1 change: 1 addition & 0 deletions tests/drivers/disk/disk_access/boards/ek_ra8d1.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONFIG_DISK_DRIVER_SDMMC=y
19 changes: 19 additions & 0 deletions tests/drivers/disk/disk_access/boards/ek_ra8d1.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
* Copyright (c) 2024 Renesas Electronics Corporation
* SPDX-License-Identifier: Apache-2.0
*/

/ {
aliases {
sdhc1 = &sdhc1;
};
};

&sdhc1 {
status = "okay";
sdmmc {
compatible = "zephyr,sdmmc-disk";
disk-name = "SD";
status = "okay";
};
};
1 change: 1 addition & 0 deletions tests/drivers/disk/disk_access/boards/ek_ra8m1.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONFIG_DISK_DRIVER_SDMMC=y
19 changes: 19 additions & 0 deletions tests/drivers/disk/disk_access/boards/ek_ra8m1.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
* Copyright (c) 2024 Renesas Electronics Corporation
* SPDX-License-Identifier: Apache-2.0
*/

/ {
aliases {
sdhc0 = &sdhc0;
};
};

&sdhc0 {
status = "okay";
sdmmc {
compatible = "zephyr,sdmmc-disk";
disk-name = "SD";
status = "okay";
};
};
1 change: 1 addition & 0 deletions tests/drivers/disk/disk_access/boards/mck_ra8t1.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONFIG_DISK_DRIVER_SDMMC=y
19 changes: 19 additions & 0 deletions tests/drivers/disk/disk_access/boards/mck_ra8t1.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
* Copyright (c) 2024 Renesas Electronics Corporation
* SPDX-License-Identifier: Apache-2.0
*/

/ {
aliases {
sdhc0 = &sdhc0;
};
};

&sdhc0 {
status = "okay";
sdmmc {
compatible = "zephyr,sdmmc-disk";
disk-name = "SD";
status = "okay";
};
};
1 change: 1 addition & 0 deletions tests/drivers/disk/disk_performance/boards/ek_ra8d1.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONFIG_DISK_DRIVER_SDMMC=y
19 changes: 19 additions & 0 deletions tests/drivers/disk/disk_performance/boards/ek_ra8d1.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
* Copyright (c) 2024 Renesas Electronics Corporation
* SPDX-License-Identifier: Apache-2.0
*/

/ {
aliases {
sdhc1 = &sdhc1;
};
};

&sdhc1 {
status = "okay";
sdmmc {
compatible = "zephyr,sdmmc-disk";
disk-name = "SD";
status = "okay";
};
};
1 change: 1 addition & 0 deletions tests/drivers/disk/disk_performance/boards/ek_ra8m1.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONFIG_DISK_DRIVER_SDMMC=y
19 changes: 19 additions & 0 deletions tests/drivers/disk/disk_performance/boards/ek_ra8m1.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
* Copyright (c) 2024 Renesas Electronics Corporation
* SPDX-License-Identifier: Apache-2.0
*/

/ {
aliases {
sdhc0 = &sdhc0;
};
};

&sdhc0 {
status = "okay";
sdmmc {
compatible = "zephyr,sdmmc-disk";
disk-name = "SD";
status = "okay";
};
};
1 change: 1 addition & 0 deletions tests/drivers/disk/disk_performance/boards/mck_ra8t1.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONFIG_DISK_DRIVER_SDMMC=y
19 changes: 19 additions & 0 deletions tests/drivers/disk/disk_performance/boards/mck_ra8t1.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
* Copyright (c) 2024 Renesas Electronics Corporation
* SPDX-License-Identifier: Apache-2.0
*/

/ {
aliases {
sdhc0 = &sdhc0;
};
};

&sdhc0 {
status = "okay";
sdmmc {
compatible = "zephyr,sdmmc-disk";
disk-name = "SD";
status = "okay";
};
};
4 changes: 4 additions & 0 deletions tests/subsys/fs/ext2/boards/ek_ra8d1.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
CONFIG_DISK_DRIVERS=y
CONFIG_DISK_DRIVER_SDMMC=y
CONFIG_DISK_DRIVER_RAM=n
CONFIG_FLASH=n
27 changes: 27 additions & 0 deletions tests/subsys/fs/ext2/boards/ek_ra8d1.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/*
* Copyright (c) 2024 Renesas Electronics Corporation
* SPDX-License-Identifier: Apache-2.0
*/

/ {
aliases {
sdhc1 = &sdhc1;
};
};

&sdhc1 {
status = "okay";
sdmmc {
compatible = "zephyr,sdmmc-disk";
disk-name = "SD";
status = "okay";
partition {
compatible = "fixed-partitions";
#address-cells = <1>;
#size_cells = <1>;
slot1_partition: partition@0 {
reg = <0x00000000 0x800000>;
};
};
};
};
4 changes: 4 additions & 0 deletions tests/subsys/fs/ext2/boards/ek_ra8m1.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
CONFIG_DISK_DRIVERS=y
CONFIG_DISK_DRIVER_SDMMC=y
CONFIG_DISK_DRIVER_RAM=n
CONFIG_FLASH=n
27 changes: 27 additions & 0 deletions tests/subsys/fs/ext2/boards/ek_ra8m1.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/*
* Copyright (c) 2024 Renesas Electronics Corporation
* SPDX-License-Identifier: Apache-2.0
*/

/ {
aliases {
sdhc0 = &sdhc0;
};
};

&sdhc0 {
status = "okay";
sdmmc {
compatible = "zephyr,sdmmc-disk";
disk-name = "SD";
status = "okay";
partition {
compatible = "fixed-partitions";
#address-cells = <1>;
#size_cells = <1>;
slot1_partition: partition@0 {
reg = <0x00000000 0x800000>;
};
};
};
};
4 changes: 4 additions & 0 deletions tests/subsys/fs/ext2/boards/mck_ra8t1.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
CONFIG_DISK_DRIVERS=y
CONFIG_DISK_DRIVER_SDMMC=y
CONFIG_DISK_DRIVER_RAM=n
CONFIG_FLASH=n
27 changes: 27 additions & 0 deletions tests/subsys/fs/ext2/boards/mck_ra8t1.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/*
* Copyright (c) 2024 Renesas Electronics Corporation
* SPDX-License-Identifier: Apache-2.0
*/

/ {
aliases {
sdhc0 = &sdhc0;
};
};

&sdhc0 {
status = "okay";
sdmmc {
compatible = "zephyr,sdmmc-disk";
disk-name = "SD";
status = "okay";
partition {
compatible = "fixed-partitions";
#address-cells = <1>;
#size_cells = <1>;
slot1_partition: partition@0 {
reg = <0x00000000 0x800000>;
};
};
};
};
10 changes: 10 additions & 0 deletions tests/subsys/fs/fat_fs_api/boards/ek_ra8d1.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
CONFIG_DISK_ACCESS=y
CONFIG_DISK_DRIVER_SDMMC=y
CONFIG_FAT_FILESYSTEM_ELM=y
CONFIG_GPIO=y
CONFIG_MAIN_STACK_SIZE=4096
CONFIG_LOG=y

CONFIG_DISK_DRIVER_RAM=n
CONFIG_DISK_DRIVER_FLASH=n
CONFIG_FS_FATFS_HAS_RTC=n
19 changes: 19 additions & 0 deletions tests/subsys/fs/fat_fs_api/boards/ek_ra8d1.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
* Copyright (c) 2024 Renesas Electronics Corporation
* SPDX-License-Identifier: Apache-2.0
*/

/ {
aliases {
sdhc1 = &sdhc1;
};
};

&sdhc1 {
status = "okay";
sdmmc {
compatible = "zephyr,sdmmc-disk";
disk-name = "SD";
status = "okay";
};
};
10 changes: 10 additions & 0 deletions tests/subsys/fs/fat_fs_api/boards/ek_ra8m1.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
CONFIG_DISK_ACCESS=y
CONFIG_DISK_DRIVER_SDMMC=y
CONFIG_FAT_FILESYSTEM_ELM=y
CONFIG_GPIO=y
CONFIG_MAIN_STACK_SIZE=4096
CONFIG_LOG=y

CONFIG_DISK_DRIVER_RAM=n
CONFIG_DISK_DRIVER_FLASH=n
CONFIG_FS_FATFS_HAS_RTC=n
19 changes: 19 additions & 0 deletions tests/subsys/fs/fat_fs_api/boards/ek_ra8m1.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
* Copyright (c) 2024 Renesas Electronics Corporation
* SPDX-License-Identifier: Apache-2.0
*/

/ {
aliases {
sdhc0 = &sdhc0;
};
};

&sdhc0 {
status = "okay";
sdmmc {
compatible = "zephyr,sdmmc-disk";
disk-name = "SD";
status = "okay";
};
};
10 changes: 10 additions & 0 deletions tests/subsys/fs/fat_fs_api/boards/mck_ra8t1.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
CONFIG_DISK_ACCESS=y
CONFIG_DISK_DRIVER_SDMMC=y
CONFIG_FAT_FILESYSTEM_ELM=y
CONFIG_GPIO=y
CONFIG_MAIN_STACK_SIZE=4096
CONFIG_LOG=y

CONFIG_DISK_DRIVER_RAM=n
CONFIG_DISK_DRIVER_FLASH=n
CONFIG_FS_FATFS_HAS_RTC=n
19 changes: 19 additions & 0 deletions tests/subsys/fs/fat_fs_api/boards/mck_ra8t1.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
* Copyright (c) 2024 Renesas Electronics Corporation
* SPDX-License-Identifier: Apache-2.0
*/

/ {
aliases {
sdhc0 = &sdhc0;
};
};

&sdhc0 {
status = "okay";
sdmmc {
compatible = "zephyr,sdmmc-disk";
disk-name = "SD";
status = "okay";
};
};
2 changes: 2 additions & 0 deletions tests/subsys/sd/sdmmc/boards/ek_ra8d1.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CONFIG_DISK_DRIVER_SDMMC=y
CONFIG_DISK_ACCESS=y
Loading

0 comments on commit 1280afe

Please sign in to comment.