Skip to content

Commit d108b64

Browse files
danieldegrassedleach02
authored andcommitted
boards: lpcxpresso55s69_cpu0: enable spi mode SD card.
Enable SD card running in SPI mode, using the SD subsystem. Signed-off-by: Daniel DeGrasse <[email protected]>
1 parent a3182ce commit d108b64

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

boards/arm/lpcxpresso55s69/Kconfig.defconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ choice TFM_PROFILE_TYPE
4747
default TFM_PROFILE_TYPE_MEDIUM
4848
endchoice
4949

50+
# Enable SD subsystem driver if disk driver is required
51+
config DISK_DRIVER_SDMMC
52+
default y if DISK_DRIVERS
53+
5054
endif # BOARD_LPCXPRESSO55S69_CPU0 || BOARD_LPCXPRESSO55S69_CPU1
5155

5256
if DMA_MCUX_LPC

boards/arm/lpcxpresso55s69/lpcxpresso55s69_cpu0.dts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,18 @@
9393
status = "okay";
9494
dmas = <&dma0 2>, <&dma0 3>;
9595
dma-names = "rx", "tx";
96+
cs-gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
97+
sdhc0: sdhc0@0 {
98+
reg = <0>;
99+
compatible = "zephyr,sdhc-spi-slot";
100+
spi-max-frequency = <25000000>;
101+
label = "SDHC_0";
102+
mmc {
103+
compatible = "zephyr,sdmmc-disk";
104+
status = "okay";
105+
label = "SDMMC_0";
106+
};
107+
};
96108
};
97109

98110
&wwdt0 {

0 commit comments

Comments
 (0)