From: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
To: William Bright <william.bright@imd-tec.com>,
Bjorn Andersson <andersson@kernel.org>,
Konrad Dybcio <konradybcio@kernel.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>
Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, Ram Boukobza <ram@imd-tec.com>,
Tendai Makumire <tendai.makumire@imd-tec.com>
Subject: Re: [PATCH v2] arm64: dts: qcom: sm8550: add SDHC4 controller node
Date: Thu, 4 Jun 2026 19:01:22 +0300 [thread overview]
Message-ID: <e0731edc-81da-429a-a12e-a1d1b75f9544@linaro.org> (raw)
In-Reply-To: <20260427-sm8550-sdhc4-support-v2-1-a4241f43ecd5@imd-tec.com>
On 4/27/26 14:24, William Bright wrote:
> Add the SDC4 SDHCI controller node for the SM8550 SoC.
>
> SMMU stream ID 0x80 was sourced from the UEFI bootloader IORT tables,
> as SDCC stream IDs are not documented in the register reference manual.
> Unlike SDC2, the data path is routed via aggre1_noc, matching
> MASTER_SDCC_4 in drivers/interconnect/qcom/sm8550.c.
>
> The SDHCI capabilities register on this SoC advertises SDR104
> and SDR50 but these UHS-I modes are broken on SDHC4.
How do you know that these modes are broken in hardware and not
caused by something else?
It was stated before, but it was proven to be invalid as the statement.
> Mask them via sdhci-caps-mask, this keeps the bus in HS mode,
> which initialises reliably.
>
> Tested on the IMDT QCS8550 SBC. This board is not currently
> supported in-tree.
>
> Co-developed-by: Tendai Makumire <tendai.makumire@imd-tec.com>
> Signed-off-by: Tendai Makumire <tendai.makumire@imd-tec.com>
> Signed-off-by: William Bright <william.bright@imd-tec.com>
> ---
> Changes in v2:
> - Drop qcom,dll-config and qcom,ddr-config; these properties are not
> valid for this SDC instance (Konrad Dybcio)
> - Reduce the OPP table to a single 75 MHz / low_svs entry matching the
> SDCC4 operating point on this SoC (Konrad Dybcio)
> - Forbid SDR104/SDR50 via sdhci-caps-mask, matching the previously
> existing sdhc_2 workaround in the same file.
> The SDHCI capabilities register on this SoC advertises SDR50/SDR104
> modes that are broken on sdhc_4; without masking them the MMC
> core selects SDR50 and fails DLL tuning with
> -ETIMEDOUT during SDIO card initialisation.
Which one SDIO card do you test?
> - Rework the commit message to reflect the above understanding and
> drop the "root cause not yet determined" note
> - Drop self Tested-by tag (Konrad Dybcio)
> - Link to v1: https://patch.msgid.link/20260423-sm8550-sdhc4-support-v1-1-93fd81fea5d9@imd-tec.com
>
> To: Bjorn Andersson <andersson@kernel.org>
> To: Konrad Dybcio <konradybcio@kernel.org>
> To: Rob Herring <robh@kernel.org>
> To: Krzysztof Kozlowski <krzk+dt@kernel.org>
> To: Conor Dooley <conor+dt@kernel.org>
> Cc: linux-arm-msm@vger.kernel.org
> Cc: devicetree@vger.kernel.org
> Cc: linux-kernel@vger.kernel.org
> ---
> arch/arm64/boot/dts/qcom/sm8550.dtsi | 40 ++++++++++++++++++++++++++++++++++++
> 1 file changed, 40 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/qcom/sm8550.dtsi b/arch/arm64/boot/dts/qcom/sm8550.dtsi
> index 912525e9bca6..07161a873b2d 100644
> --- a/arch/arm64/boot/dts/qcom/sm8550.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sm8550.dtsi
> @@ -3280,6 +3280,46 @@ opp-202000000 {
> };
> };
>
> + sdhc_4: mmc@8844000 {
> + compatible = "qcom,sm8550-sdhci", "qcom,sdhci-msm-v5";
> + reg = <0 0x08844000 0 0x1000>;
> +
> + interrupts = <GIC_SPI 261 IRQ_TYPE_LEVEL_HIGH 0>,
> + <GIC_SPI 227 IRQ_TYPE_LEVEL_HIGH 0>;
> + interrupt-names = "hc_irq", "pwr_irq";
> +
> + clocks = <&gcc GCC_SDCC4_AHB_CLK>,
> + <&gcc GCC_SDCC4_APPS_CLK>,
> + <&bi_tcxo_div2>;
> + clock-names = "iface", "core", "xo";
> + iommus = <&apps_smmu 0x80 0>;
> + power-domains = <&rpmhpd RPMHPD_CX>;
> + operating-points-v2 = <&sdhc4_opp_table>;
> +
> + interconnects = <&aggre1_noc MASTER_SDCC_4 QCOM_ICC_TAG_ALWAYS
> + &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>,
> + <&gem_noc MASTER_APPSS_PROC QCOM_ICC_TAG_ACTIVE_ONLY
> + &config_noc SLAVE_SDCC_4 QCOM_ICC_TAG_ACTIVE_ONLY>;
> + interconnect-names = "sdhc-ddr", "cpu-sdhc";
> + bus-width = <4>;
> + max-sd-hs-hz = <37500000>;
> + dma-coherent;
> +
> + /* Forbid SDR104/SDR50 broken hw! */
This is copied from somewhere else, while virtually it's unconfirmed,
if this SD host controller is broken or not...
> + sdhci-caps-mask = <0x3 0>;
> +
> + status = "disabled";
> +
> + sdhc4_opp_table: opp-table {
> + compatible = "operating-points-v2";
> +
> + opp-75000000 {
> + opp-hz = /bits/ 64 <75000000>;
> + required-opps = <&rpmhpd_opp_low_svs>;
> + };
> + };
> + };
> +
> iris: video-codec@aa00000 {
> compatible = "qcom,sm8550-iris";
>
--
Best wishes,
Vladimir
next prev parent reply other threads:[~2026-06-04 16:01 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-27 11:24 [PATCH v2] arm64: dts: qcom: sm8550: add SDHC4 controller node William Bright
2026-06-04 14:42 ` William Bright
2026-06-04 16:01 ` Vladimir Zapolskiy [this message]
2026-06-09 16:21 ` William Bright
2026-06-10 8:21 ` Vladimir Zapolskiy
2026-06-10 9:59 ` William Bright
2026-06-11 7:48 ` Vladimir Zapolskiy
2026-06-12 8:47 ` William Bright
2026-06-12 9:11 ` Vladimir Zapolskiy
2026-06-12 14:56 ` Tendai Makumire
2026-06-30 11:09 ` Konrad Dybcio
2026-06-30 12:41 ` Vladimir Zapolskiy
2026-07-01 9:16 ` Konrad Dybcio
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=e0731edc-81da-429a-a12e-a1d1b75f9544@linaro.org \
--to=vladimir.zapolskiy@linaro.org \
--cc=andersson@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ram@imd-tec.com \
--cc=robh@kernel.org \
--cc=tendai.makumire@imd-tec.com \
--cc=william.bright@imd-tec.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