Devicetree
 help / color / mirror / Atom feed
From: Bjorn Andersson <andersson@kernel.org>
To: Monish Chunara <monish.chunara@oss.qualcomm.com>
Cc: dmitry.baryshkov@oss.qualcomm.com, konradybcio@kernel.org,
	 robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
	mani@kernel.org,  linux-arm-msm@vger.kernel.org,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	 sarthak.garg@oss.qualcomm.com,
	pradeep.pragallapati@oss.qualcomm.com,
	 nitin.rawat@oss.qualcomm.com, shiraz.hashim@oss.qualcomm.com
Subject: Re: [PATCH] arm64: dts: qcom: lemans: Add SDHCI support for SD card via overlay
Date: Fri, 4 Dec 2026 17:14:11 -0600	[thread overview]
Message-ID: <axNIbTPcuRaMRryH@zenbook> (raw)
In-Reply-To: <20261203111625.1526521-1-monish.chunara@oss.qualcomm.com>

On Thu, Dec 03, 2026 at 04:46:25PM +0530, Monish Chunara wrote:
> Enable the SDHCI controller for SD card on the LeMans Draco EVK using a
> device tree overlay. Add the fixed vmmc supply, the GPIO-controlled
> vqmmc supply that switches between 1.8V and 2.95V, and the card-detect
> and SD mode pin configuration.
> 
> As on the LeMans EVK, the SoC has a single SDHC instance that can be
> routed to either the SD card slot or eMMC, so storage support is kept in
> overlays rather than the base board DT. An eMMC overlay will be added
> once hardware with eMMC populated is available.
> 

We use overlays for cases where you can plug in different daughter
cards or possibly where you have a dip-switch to select between two set
of hardware.

Your commit message doesn't indicate that your EVK is either one of
these - I'm guessing the EVK has a SD-card slot, and if so that should
be described in the dts.

Please fix your patch and/or commit message.

Thanks,
Bjorn

> Signed-off-by: Monish Chunara <monish.chunara@oss.qualcomm.com>
> ---
> This patch depends on the LeMans Draco EVK base support series:
> https://lore.kernel.org/all/20261123-lemans-draco-final-changes-bringup-v4-0-dbfc15cd0883@oss.qualcomm.com/
> ---
>  arch/arm64/boot/dts/qcom/Makefile             |  3 +
>  .../dts/qcom/lemans-draco-evk-sd-card.dtso    | 57 +++++++++++++++++++
>  arch/arm64/boot/dts/qcom/lemans-draco-evk.dts |  1 +
>  3 files changed, 61 insertions(+)
>  create mode 100644 arch/arm64/boot/dts/qcom/lemans-draco-evk-sd-card.dtso
> 
> diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile
> index e34b6cd8409e..45257b32989d 100644
> --- a/arch/arm64/boot/dts/qcom/Makefile
> +++ b/arch/arm64/boot/dts/qcom/Makefile
> @@ -72,6 +72,9 @@ lemans-draco-evk-el2-dtbs := lemans-draco-evk.dtb lemans-el2.dtbo
>  
>  dtb-$(CONFIG_ARCH_QCOM)	+= lemans-draco-evk-el2.dtb
>  
> +lemans-draco-evk-sd-card-dtbs := lemans-draco-evk.dtb lemans-draco-evk-sd-card.dtbo
> +dtb-$(CONFIG_ARCH_QCOM)	+= lemans-draco-evk-sd-card.dtb
> +
>  lemans-evk-camera-csi1-imx577-dtbs	:= lemans-evk.dtb lemans-evk-camera-csi1-imx577.dtbo
>  lemans-evk-camera-dtbs	:= lemans-evk.dtb lemans-evk-camera.dtbo
>  
> diff --git a/arch/arm64/boot/dts/qcom/lemans-draco-evk-sd-card.dtso b/arch/arm64/boot/dts/qcom/lemans-draco-evk-sd-card.dtso
> new file mode 100644
> index 000000000000..e81bc933df31
> --- /dev/null
> +++ b/arch/arm64/boot/dts/qcom/lemans-draco-evk-sd-card.dtso
> @@ -0,0 +1,57 @@
> +// SPDX-License-Identifier: BSD-3-Clause
> +/*
> + * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
> + */
> +
> +/dts-v1/;
> +/plugin/;
> +
> +#include <dt-bindings/gpio/gpio.h>
> +
> +&{/} {
> +	vmmc_sdc: regulator-vmmc-sdc {
> +		compatible = "regulator-fixed";
> +		regulator-name = "vmmc_sdc";
> +
> +		regulator-min-microvolt = <2950000>;
> +		regulator-max-microvolt = <2950000>;
> +	};
> +
> +	vreg_sdc: regulator-vreg-sdc {
> +		compatible = "regulator-gpio";
> +
> +		regulator-name = "vreg_sdc";
> +		regulator-type = "voltage";
> +		regulator-min-microvolt = <1800000>;
> +		regulator-max-microvolt = <2950000>;
> +
> +		gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
> +		states = <1800000 1>, <2950000 0>;
> +
> +		startup-delay-us = <100>;
> +	};
> +};
> +
> +&tlmm {
> +	sd_cd: sd-cd-state {
> +		pins = "gpio59";
> +		function = "gpio";
> +		bias-pull-up;
> +	};
> +};
> +
> +&sdhc {
> +	vmmc-supply = <&vmmc_sdc>;
> +	vqmmc-supply = <&vreg_sdc>;
> +
> +	pinctrl-0 = <&sdc_default>, <&sd_cd>;
> +	pinctrl-1 = <&sdc_sleep>, <&sd_cd>;
> +	pinctrl-names = "default", "sleep";
> +
> +	bus-width = <4>;
> +	cd-gpios = <&tlmm 59 GPIO_ACTIVE_LOW>;
> +	no-mmc;
> +	no-sdio;
> +
> +	status = "okay";
> +};
> diff --git a/arch/arm64/boot/dts/qcom/lemans-draco-evk.dts b/arch/arm64/boot/dts/qcom/lemans-draco-evk.dts
> index 00a0a4315bf3..14b8fdefd443 100644
> --- a/arch/arm64/boot/dts/qcom/lemans-draco-evk.dts
> +++ b/arch/arm64/boot/dts/qcom/lemans-draco-evk.dts
> @@ -16,6 +16,7 @@ / {
>  	aliases {
>  		ethernet0 = &ethernet0;
>  		ethernet1 = &ethernet1;
> +		mmc1 = &sdhc;
>  		serial1 = &uart17;
>  	};
>  
> -- 
> 2.34.1
> 

      reply	other threads:[~2026-12-04 23:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-03 11:16 [PATCH] arm64: dts: qcom: lemans: Add SDHCI support for SD card via overlay Monish Chunara
2026-12-04 23:14 ` Bjorn Andersson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=axNIbTPcuRaMRryH@zenbook \
    --to=andersson@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dmitry.baryshkov@oss.qualcomm.com \
    --cc=konradybcio@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mani@kernel.org \
    --cc=monish.chunara@oss.qualcomm.com \
    --cc=nitin.rawat@oss.qualcomm.com \
    --cc=pradeep.pragallapati@oss.qualcomm.com \
    --cc=robh@kernel.org \
    --cc=sarthak.garg@oss.qualcomm.com \
    --cc=shiraz.hashim@oss.qualcomm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox