File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed
doc/services/storage/disk Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,16 @@ Both standard and high-capacity SD cards are supported.
23
23
FAT filesystems are not power safe so the filesystem may become
24
24
corrupted if power is lost or if the card is removed.
25
25
26
+ SD Memory Card subsystem
27
+ ========================
28
+
29
+ Zephyr supports SD memory cards via the disk driver API, or via the SDMMC
30
+ subsystem. This subsystem can be used transparently via the disk driver API,
31
+ but also supports direct block level access to cards. The SDMMC subsystem
32
+ interacts with the :ref: `sd host controller api <sdhc_api >` to communicate
33
+ with attached SD cards.
34
+
35
+
26
36
SD Card support via SPI
27
37
=======================
28
38
@@ -37,10 +47,15 @@ at 24 MHz once the SD card has been initialized:
37
47
cs-gpios = <&porta 27 GPIO_ACTIVE_LOW>;
38
48
39
49
sdhc0: sdhc@0 {
40
- compatible = "zephyr,mmc -spi-slot";
50
+ compatible = "zephyr,sdhc -spi-slot";
41
51
reg = <0>;
42
52
status = "okay";
43
- label = "SDHC0";
53
+ label = "SDHC_0";
54
+ mmc {
55
+ compatible = "zephyr,sdmmc-disk";
56
+ status = "okay";
57
+ label = "SDMMC_0";
58
+ };
44
59
spi-max-frequency = <24000000>;
45
60
};
46
61
};
You can’t perform that action at this time.
0 commit comments