Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Monish Chunara" <monish.chunara@oss.qualcomm.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH V2 3/3] arm64: dts: qcom: lemans-evk: Add SDHCI support for eMMC via overlay
Date: Wed, 25 Nov 2026 08:36:43 +0000	[thread overview]
Message-ID: <sashiko-outbox-232916@kernel.org> (raw)
In-Reply-To: <20261125082055.488583-4-monish.chunara@oss.qualcomm.com>

Thank you for your contribution! Sashiko AI review found 3 potential
issues to consider:
- [High] arm64: dts: qcom: lemans-evk-emmc: broken overlay root and
  dummy regulators
- [Low] arm64: dts: qcom: lemans-evk-emmc: drive-strength on input-only
  sdc1_rclk
- [Low] arm64: dts: qcom: lemans-evk-emmc: unused header includes and
  style issues
--

commit 0884fd1ba1dd2afefa178620baee944918f3c9b0
Author: Monish Chunara <monish.chunara@oss.qualcomm.com>

arm64: dts: qcom: lemans-evk: Add SDHCI support for eMMC via overlay

This commit adds a devicetree overlay to enable the SDHCI controller for
eMMC on the lemans EVK board and wires it into the build.

> diff --git a/arch/arm64/boot/dts/qcom/lemans-evk-emmc.dtso b/arch/arm64/boot/dts/qcom/lemans-evk-emmc.dtso
> new file mode 100644
> index 0000000000000..52739d39a1ff8
> --- /dev/null
> +++ b/arch/arm64/boot/dts/qcom/lemans-evk-emmc.dtso
> @@ -0,0 +1,64 @@
> +// SPDX-License-Identifier: BSD-3-Clause
> +/*
> + * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
> + */
> +
> +/dts-v1/;
> +/plugin/;
> +
> +#include <dt-bindings/gpio/gpio.h>
> +#include <dt-bindings/clock/qcom,rpmh.h>
> +#include <dt-bindings/clock/qcom,sa8775p-gcc.h>

[Severity: Low]
This isn't a bug, but none of these three dt-bindings headers are used in
this file.  Also, qcom,dll-config below uses uppercase hex digits instead
of lowercase <0x000f64ec>, and the subnodes under &tlmm are indented with
spaces rather than tabs.

> +
> +/ {
> +	vmmc_sdc1: regulator-l8c {
> +		compatible = "regulator-fixed";
> +		regulator-name = "vreg-sdc1";
> +
> +		regulator-min-microvolt = <2960000>;
> +		regulator-max-microvolt = <2960000>;
> +	};
> +
> +	vqmmc_sdc1: regulator-s4a {
> +		compatible = "regulator-fixed";
> +		regulator-name = "vqmmc-sdc1";
> +
> +		regulator-min-microvolt = <1800000>;
> +		regulator-max-microvolt = <1800000>;
> +	};
> +};
> +
> +&sdhc {
> +	vmmc-supply = <&vmmc_sdc1>;
> +	vqmmc-supply = <&vqmmc_sdc1>;

[Severity: High]
Does using / { ... }; in a /plugin/; overlay cause fdtoverlay to drop
regulator-l8c and regulator-s4a, and shouldn't &sdhc reference the
existing RPMH regulators &vreg_l8c and &vreg_s4a from lemans-evk.dts
instead?

In a /plugin/; overlay, dtc only wraps nodes targeted via a reference such
as &{/} in a fragment@N/__overlay__ node.  Nodes placed under / { ... };
sit at the root of the .dtbo without an __overlay__ child, so fdtoverlay
skips them when building lemans-evk-emmc.dtb and leaves vmmc-supply and
vqmmc-supply with dangling phandles (and runtime overlay application via
of_overlay_fdt_apply() fails with -ENODEV).  In addition, lemans-evk.dts
already defines the real RPMH PMIC regulators vreg_l8c and vreg_s4a under
&apps_rsc; defining dummy regulator-fixed nodes prevents sdhci_msm from
voting for or controlling the PMIC rails.

[ ... ]

> +&tlmm {
> +        sdc_rclk: sdc1-rclk-state {
> +                pins = "sdc1_rclk";
> +                bias-pull-down;
> +        };
> +
> +        sdc_rclk_sleep: sdc1-rclk-sleep-state {
> +                pins = "sdc1_rclk";
> +                drive-strength = <2>;
> +                bias-bus-hold;
> +        };
> +};

[Severity: Low]
Should drive-strength be removed from sdc_rclk_sleep?

sdc1_rclk is an input-only return clock strobe pin with no hardware
drive-strength field.  In drivers/pinctrl/qcom/pinctrl-sa8775p.c:

drivers/pinctrl/qcom/pinctrl-sa8775p.c:sa8775p_groups[] {
	...
	[150] = SDC_QDSD_PINGROUP(sdc1_rclk, 0x199000, 15, 0),
	[151] = SDC_QDSD_PINGROUP(sdc1_clk, 0x199000, 13, 6),
	[152] = SDC_QDSD_PINGROUP(sdc1_cmd, 0x199000, 11, 3),
	[153] = SDC_QDSD_PINGROUP(sdc1_data, 0x199000, 9, 0),
	...
}

Because sdc1_rclk shares control register 0x199000 with the other SDC1
pins and has drv_bit set to 0, configuring drive-strength on sdc1_rclk
writes to bits [2:0] of 0x199000, which is sdc1_data's drive-strength
field.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261125082055.488583-1-monish.chunara@oss.qualcomm.com?part=3

      reply	other threads:[~2026-11-25  8:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-25  8:20 [PATCH V2 0/3] arm64: dts: qcom: lemans-evk: Update SDHC storage support via overlays Monish Chunara
2026-11-25  8:20 ` [PATCH V2 1/3] arm64: dts: qcom: lemans-evk: Move SD card support to overlay Monish Chunara
2026-11-25  8:20 ` [PATCH V2 2/3] arm64: dts: qcom: lemans: Add CQE register region for SDHC Monish Chunara
2026-11-25  8:20 ` [PATCH V2 3/3] arm64: dts: qcom: lemans-evk: Add SDHCI support for eMMC via overlay Monish Chunara
2026-11-25  8:36   ` sashiko-bot [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=sashiko-outbox-232916@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=monish.chunara@oss.qualcomm.com \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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