Skip to content

Commit e74d845

Browse files
danieldegrassedleach02
authored andcommitted
doc: storage: update storage documentation for SD subsystem
add section about SD subsystem to disk documentation, and document new SDHC SPI bindings Signed-off-by: Daniel DeGrasse <[email protected]>
1 parent 8dc3d51 commit e74d845

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

doc/services/storage/disk/access.rst

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,16 @@ Both standard and high-capacity SD cards are supported.
2323
FAT filesystems are not power safe so the filesystem may become
2424
corrupted if power is lost or if the card is removed.
2525

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+
2636
SD Card support via SPI
2737
=======================
2838

@@ -37,10 +47,15 @@ at 24 MHz once the SD card has been initialized:
3747
cs-gpios = <&porta 27 GPIO_ACTIVE_LOW>;
3848
3949
sdhc0: sdhc@0 {
40-
compatible = "zephyr,mmc-spi-slot";
50+
compatible = "zephyr,sdhc-spi-slot";
4151
reg = <0>;
4252
status = "okay";
43-
label = "SDHC0";
53+
label = "SDHC_0";
54+
mmc {
55+
compatible = "zephyr,sdmmc-disk";
56+
status = "okay";
57+
label = "SDMMC_0";
58+
};
4459
spi-max-frequency = <24000000>;
4560
};
4661
};

0 commit comments

Comments
 (0)