Skip to content

Commit 7330fbf

Browse files
Raffael Rostagnocfriedt
authored andcommitted
boards: esp32s3_eye: Add SDHC support
Add SDHC support to esp32s3_eye. Signed-off-by: Raffael Rostagno <[email protected]>
1 parent c1d305e commit 7330fbf

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

boards/espressif/esp32s3_eye/esp32s3_eye-pinctrl.dtsi

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,15 @@
5050
input-enable;
5151
bias-disable;
5252
};
53+
};
5354

55+
sdhc0_default: sdhc0_default {
56+
group1 {
57+
pinmux = <SDHC0_CMD_GPIO38>,
58+
<SDHC0_CLKOUT_GPIO39>,
59+
<SDHC0_DATA0_GPIO40>;
60+
bias-pull-up;
61+
output-high;
62+
};
5463
};
5564
};

boards/espressif/esp32s3_eye/esp32s3_eye_procpu.dts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
watchdog0 = &wdt0;
2222
sw0 = &button0;
2323
led0 = &green_led;
24+
sdhc0 = &sdhc0;
2425
};
2526

2627
chosen {
@@ -32,6 +33,7 @@
3233
zephyr,bt-hci = &esp32_bt_hci;
3334
zephyr,display = &st7789v;
3435
zephyr,camera = &lcd_cam;
36+
zephyr,sdhc = &sdhc0;
3537
};
3638

3739
buttons {
@@ -208,3 +210,20 @@
208210
&wifi {
209211
status = "okay";
210212
};
213+
214+
&sdhc {
215+
sdhc0: sdhc@0 {
216+
status = "okay";
217+
218+
pinctrl-0 = <&sdhc0_default>;
219+
pinctrl-names = "default";
220+
max-bus-freq = <52000000>;
221+
bus-width = <1>;
222+
223+
mmc {
224+
compatible = "zephyr,sdmmc-disk";
225+
disk-name = "SD";
226+
status = "okay";
227+
};
228+
};
229+
};

boards/espressif/esp32s3_eye/esp32s3_eye_procpu.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ supported:
1414
- watchdog
1515
- entropy
1616
- pwm
17+
- sdhc
1718
- dma
1819
- input
1920
- video

0 commit comments

Comments
 (0)