Skip to content

Commit 8e48fa1

Browse files
quytranpzzkartben
authored andcommitted
boards: shields: Add support for pmod sd
Add support for Pmod SD and support overlay for EK-RA8M1, EK-RA8D1 to use with Pmod Signed-off-by: Quy Tran <quy.tran.pz@renesas.com>
1 parent 149d23d commit 8e48fa1

File tree

7 files changed

+94
-0
lines changed

7 files changed

+94
-0
lines changed

boards/renesas/ek_ra8d1/ek_ra8d1.dts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,3 +298,5 @@ zephyr_lcdif: &lcdif {
298298
zephyr_mipi_dsi: &mipi_dsi {};
299299

300300
renesas_mipi_i2c: &iic1{};
301+
302+
pmod_sd_shield: &sdhc1 {};

boards/renesas/ek_ra8m1/ek_ra8m1.dts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,3 +347,5 @@ pmod_header: &pmod1_header {};
347347
interrupts = <89 12>;
348348
status = "okay";
349349
};
350+
351+
pmod_sd_shield: &sdhc0 {};

boards/shields/pmod_sd/Kconfig.shield

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Copyright (c) 2024 Renesas Electronics Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config SHIELD_PMOD_SD
5+
def_bool $(shields_list_contains,pmod_sd)
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/*
2+
* Copyright (c) 2024 Renesas Electronics Corporation
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
&pmod_sd_shield {
7+
interrupt-names = "accs", "card", "dma-req";
8+
interrupts = <60 12>, <61 12>, <62 12>;
9+
pinctrl-0 = <&sdhc1_default>;
10+
};

boards/shields/pmod_sd/doc/index.rst

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
.. _pmod_sd:
2+
3+
Digilent Pmod SD
4+
################
5+
6+
Overview
7+
********
8+
9+
The Digilent Pmod SD (Revision B) allows system boards to read from and write to SD cards.
10+
11+
Features
12+
********
13+
14+
- Full-sized SD card slot
15+
- Store and access large amounts of date from your system board
16+
- No limitation on file system or memory size of SD card used
17+
- 1-bit and 4-bit communication
18+
- 12-pin Pmod port with SPI interface
19+
20+
Programming
21+
***********
22+
23+
Set ``--shield pmod_sd`` when you invoke ``west build``. For example:
24+
25+
.. zephyr-app-commands::
26+
:zephyr-app: tests/drivers/disk/disk_access
27+
:board: ek_ra8m1
28+
:shield: pmod_sd
29+
:goals: build
30+
31+
Pinout
32+
======
33+
34+
.. figure:: pmod_sd_pins.webp
35+
:align: center
36+
:alt: PMOD SD Pinout
37+
38+
PMOD SD Pinout (Credit: Digilent)
39+
40+
References
41+
**********
42+
43+
- `Pmod SD product page`_
44+
- `Pmod SD reference manual`_
45+
- `Pmod SD schematic`_
46+
47+
.. _Pmod SD product page:
48+
https://digilent.com/shop/pmod-sd-full-sized-sd-card-slot/
49+
50+
.. _Pmod SD reference manual:
51+
https://digilent.com/reference/pmod/pmodsd/reference-manual
52+
53+
.. _Pmod SD schematic:
54+
https://digilent.com/reference/_media/reference/pmod/pmodsd/pmodsd_sch.pdf
9.95 KB
Binary file not shown.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/*
2+
* Copyright (c) 2024 Renesas Electronics Corporation
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
/ {
7+
aliases {
8+
sdhc0 = &pmod_sd_shield;
9+
};
10+
};
11+
12+
&pmod_sd_shield {
13+
pinctrl-0 = <&sdhc0_default>;
14+
pinctrl-names = "default";
15+
status = "okay";
16+
sdmmc {
17+
compatible = "zephyr,sdmmc-disk";
18+
disk-name = "SD";
19+
status = "okay";
20+
};
21+
};

0 commit comments

Comments
 (0)