File tree Expand file tree Collapse file tree 7 files changed +94
-0
lines changed Expand file tree Collapse file tree 7 files changed +94
-0
lines changed Original file line number Diff line number Diff line change @@ -298,3 +298,5 @@ zephyr_lcdif: &lcdif {
298
298
zephyr_mipi_dsi: &mipi_dsi {};
299
299
300
300
renesas_mipi_i2c: &iic1{};
301
+
302
+ pmod_sd_shield: &sdhc1 {};
Original file line number Diff line number Diff line change @@ -347,3 +347,5 @@ pmod_header: &pmod1_header {};
347
347
interrupts = <89 12>;
348
348
status = "okay";
349
349
};
350
+
351
+ pmod_sd_shield: &sdhc0 {};
Original file line number Diff line number Diff line change
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)
Original file line number Diff line number Diff line change
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
+ };
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
+ };
You can’t perform that action at this time.
0 commit comments