Skip to content

Commit 03110f1

Browse files
walidbadarkartben
authored andcommitted
boards: esp32_cam: remove unused SD card detect pin and fix LED polarity
The ESP32-CAM board does not connect the SD card detect pin, so the SDHC0_CD_GPIO21 pinmux configuration has been removed. This commit also updates the status LED to use active-low for correct operation. Signed-off-by: Muhammad Waleed Badar <walid.badar@gmail.com>
1 parent 194fb3a commit 03110f1

File tree

2 files changed

+4
-15
lines changed

2 files changed

+4
-15
lines changed

boards/aithinker/esp32_cam/esp32_cam-pinctrl.dtsi

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,4 @@
4343
output-low;
4444
};
4545
};
46-
47-
sdhc0_default: sdhc0_default {
48-
group1 {
49-
pinmux = <SDHC0_CD_GPIO21>;
50-
bias-pull-up;
51-
output-high;
52-
};
53-
};
5446
};

boards/aithinker/esp32_cam/esp32_cam_procpu.dts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@
1919
led0 = &led0;
2020
led1 = &led1;
2121
watchdog0 = &wdt0;
22-
sdhc0 = &sdhc0;
22+
sdhc0 = &sdhc1;
2323
};
2424

2525
leds {
2626
compatible = "gpio-leds";
2727

2828
led0: led_0 {
29-
gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>;
29+
gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
3030
label = "Status LED";
3131
};
3232

@@ -43,7 +43,7 @@
4343
zephyr,flash = &flash0;
4444
zephyr,code-partition = &slot0_partition;
4545
zephyr,bt-hci = &esp32_bt_hci;
46-
zephyr,sdhc = &sdhc0;
46+
zephyr,sdhc = &sdhc1;
4747
};
4848
};
4949

@@ -108,12 +108,9 @@
108108
};
109109

110110
&sdhc {
111-
sdhc0: sdhc@0 {
111+
sdhc1: sdhc@1 {
112112
status = "okay";
113113

114-
pinctrl-0 = <&sdhc0_default>;
115-
pinctrl-names = "default";
116-
power-delay-ms = <100>;
117114
max-bus-freq = <52000000>;
118115
bus-width = <4>;
119116

0 commit comments

Comments
 (0)