Skip to content

Commit e4dd3ba

Browse files
soburikartben
authored andcommitted
boards: m5stack: cores3: Add TF-Card slot configuration
Adding TF-Card slot configuration. Adding SPI CS configurations. Reserving id-0 for TFT. Signed-off-by: TOKITA Hiroshi <[email protected]>
1 parent 815d669 commit e4dd3ba

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

boards/m5stack/m5stack_cores3/m5stack_cores3_procpu_common.dtsi

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
i2c-1 = &i2c1;
3030
watchdog0 = &wdt0;
3131
rtc = &bm8563_rtc;
32+
sdhc0 = &sd0;
3233
};
3334
};
3435

@@ -106,6 +107,22 @@
106107
status = "okay";
107108
pinctrl-0 = <&spim2_default>;
108109
pinctrl-names = "default";
110+
clock-frequency = <20000000>;
111+
cs-gpios = <&gpio0 3 GPIO_ACTIVE_LOW>, /* LCD */
112+
<&gpio0 4 GPIO_ACTIVE_LOW>; /* TF-CARD */
113+
114+
sd0: sd@1 {
115+
compatible = "zephyr,sdhc-spi-slot";
116+
reg = <1>;
117+
status = "okay";
118+
spi-max-frequency = <20000000>;
119+
mmc {
120+
compatible = "zephyr,sdmmc-disk";
121+
disk-name = "SD";
122+
status = "okay";
123+
};
124+
125+
};
109126
};
110127

111128
&twai {

0 commit comments

Comments
 (0)