Skip to content

Commit 7374678

Browse files
danieldegrassecarlescufi
authored andcommitted
boards: nxp: vmu_rt1170: fix SD card pin control setup
Fix SD card pinctrl setup for the VMU RT1170 board. The following changes were made: - use the "cd-gpios" property over detecting the card using the USDHC card detect register. This should be more reliable. - bias the clk pin high. This matches setup for the RT1170 EVK SD pinctrl. - remove the drive strength setting for SD pins to align with the pinctrl settings for low speed SD mode (50 MHz) on the RT1170 EVK. Signed-off-by: Daniel DeGrasse <[email protected]>
1 parent 7f82b6a commit 7374678

File tree

2 files changed

+3
-13
lines changed

2 files changed

+3
-13
lines changed

boards/nxp/vmu_rt1170/vmu_rt1170-pinctrl.dtsi

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -344,20 +344,9 @@
344344
<&iomuxc_gpio_sd_b1_02_usdhc1_data0>,
345345
<&iomuxc_gpio_sd_b1_03_usdhc1_data1>,
346346
<&iomuxc_gpio_sd_b1_04_usdhc1_data2>,
347-
<&iomuxc_gpio_sd_b1_05_usdhc1_data3>;
347+
<&iomuxc_gpio_sd_b1_05_usdhc1_data3>,
348+
<&iomuxc_gpio_sd_b1_01_usdhc1_clk>;
348349
bias-pull-up;
349-
drive-strength = "high";
350-
slew-rate = "fast";
351-
input-enable;
352-
};
353-
group1 {
354-
pinmux = <&iomuxc_gpio_sd_b1_01_usdhc1_clk>;
355-
drive-strength = "high";
356-
slew-rate = "fast";
357-
};
358-
group2 {
359-
pinmux = <&iomuxc_gpio_ad_32_usdhc1_cd_b>;
360-
bias-pull-down;
361350
input-enable;
362351
};
363352
};

boards/nxp/vmu_rt1170/vmu_rt1170_mimxrt1176_cm7.dts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,7 @@
402402
status = "okay";
403403
no-1-8-v;
404404
pwr-gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>;
405+
cd-gpios = <&gpio3 31 (GPIO_ACTIVE_LOW | GPIO_PULL_DOWN)>;
405406
sdmmc {
406407
compatible = "zephyr,sdmmc-disk";
407408
status = "okay";

0 commit comments

Comments
 (0)