Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: qcom: msm8974-klte: Add support for SD card

The Samsung Galaxy S5 (klte), has 3 SDHCI nodes used for internal
storage, WiFi, external SD card slot. The external SD card slot is
similar to the internal storage.

Signed-off-by: Iskren Chernev <iskren.chernev@gmail.com>
Link: https://lore.kernel.org/r/20200920144859.813032-8-iskren.chernev@gmail.com
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>

authored by

Iskren Chernev and committed by
Bjorn Andersson
5434dcef 19524d5b

+43 -1
+43 -1
arch/arm/boot/dts/qcom-msm8974-samsung-klte.dts
··· 12 12 13 13 aliases { 14 14 serial0 = &blsp1_uart1; 15 + sdhc1 = &sdhc_1; /* SDC1 eMMC slot */ 16 + sdhc2 = &sdhc_2; /* SDC2 SD card slot */ 15 17 }; 16 18 17 19 chosen { ··· 163 161 pma8084_l21: l21 { 164 162 regulator-min-microvolt = <2950000>; 165 163 regulator-max-microvolt = <2950000>; 164 + 165 + regulator-allow-set-load; 166 + regulator-system-load = <200000>; 166 167 }; 167 168 168 169 pma8084_l22: l22 { ··· 354 349 }; 355 350 }; 356 351 352 + sdhc2_pin_a: sdhc2-pin-active { 353 + clk-cmd-data { 354 + pins = "gpio35", "gpio36", "gpio37", "gpio38", 355 + "gpio39", "gpio40"; 356 + function = "sdc3"; 357 + drive-strength = <8>; 358 + bias-disable; 359 + }; 360 + }; 361 + 362 + sdhc2_cd_pin: sdhc2-cd { 363 + pins = "gpio62"; 364 + function = "gpio"; 365 + 366 + drive-strength = <2>; 367 + bias-disable; 368 + }; 369 + 357 370 sdhc3_pin_a: sdhc3-pin-active { 358 371 clk { 359 372 pins = "sdc2_clk"; ··· 445 422 }; 446 423 }; 447 424 448 - sdhci@f9824900 { 425 + sdhc_1: sdhci@f9824900 { 449 426 status = "ok"; 450 427 451 428 vmmc-supply = <&pma8084_l20>; ··· 456 433 457 434 pinctrl-names = "default"; 458 435 pinctrl-0 = <&sdhc1_pin_a>; 436 + }; 437 + 438 + sdhc_2: sdhci@f9864900 { 439 + status = "ok"; 440 + 441 + max-frequency = <100000000>; 442 + 443 + vmmc-supply = <&pma8084_l21>; 444 + vqmmc-supply = <&pma8084_l13>; 445 + 446 + bus-width = <4>; 447 + 448 + /* cd-gpio is intentionally disabled. If enabled, an SD card 449 + * present during boot is not initialized correctly. Without 450 + * cd-gpios the driver resorts to polling, so hotplug works. 451 + */ 452 + pinctrl-names = "default"; 453 + pinctrl-0 = <&sdhc2_pin_a /* &sdhc2_cd_pin */>; 454 + // cd-gpios = <&msmgpio 62 GPIO_ACTIVE_LOW>; 459 455 }; 460 456 461 457 sdhci@f98a4900 {