From: sashiko-bot@kernel.org
To: "Iker Pedrosa" <ikerpedrosam@gmail.com>
Cc: robh@kernel.org, conor+dt@kernel.org, krzk+dt@kernel.org,
devicetree@vger.kernel.org
Subject: Re: [PATCH v9 5/8] riscv: dts: spacemit: k1: add SD card controller and pinctrl support
Date: Tue, 12 May 2026 02:47:09 +0000 [thread overview]
Message-ID: <20260512024710.63A20C2BCB0@smtp.kernel.org> (raw)
In-Reply-To: <20260511-orangepi-sd-card-uhs-v9-5-ae48c0b2b2cf@gmail.com>
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Low] DT Node Sorting Violation in k1.dtsi
- [Low] Hardware Semantic Mismatch / Undocumented Hardware Quirk
--
commit b041436345c6321304b2ed59c04953c7c67e6e5f
Author: Iker Pedrosa <ikerpedrosam@gmail.com>
riscv: dts: spacemit: k1: add SD card controller and pinctrl support
This commit adds the SD card controller infrastructure for the SpacemiT
K1 SoC. It includes the sdhci0 controller definition along with the
corresponding mmc1 pinctrl configurations for standard and UHS modes.
> Add sdhci0 controller definition with clocks, resets and interrupts
> Add mmc1_cfg pinctrl for 3.3V standard SD operation
Does this hardware route the SDH0 controller logic to the MMC1 physical
pads?
Since the patch defines the sdhci0 controller (using base address
0xd4280000, CLK_SDH0, and RESET_SDH0) but adds pinctrl configurations
referencing mmc1_* pins, it appears there might be a cross-routing
hardware quirk.
Could this counter-intuitive hardware behavior be explicitly documented
in the commit message or through inline comments to prevent future
maintainability confusion?
> diff --git a/arch/riscv/boot/dts/spacemit/k1.dtsi b/arch/riscv/boot/dts/spacemit/k1.dtsi
> index 24becab4c9594..6ded5c06b7975 100644
> --- a/arch/riscv/boot/dts/spacemit/k1.dtsi
> +++ b/arch/riscv/boot/dts/spacemit/k1.dtsi
[ ... ]
> @@ -1226,6 +1226,19 @@ emmc: mmc@d4281000 {
> interrupts = <101>;
> status = "disabled";
> };
> +
> + sdhci0: mmc@d4280000 {
This isn't a bug, but should the sdhci0 node be placed before the
emmc node?
Device tree conventions dictate that nodes should be ordered by their
unit-address in ascending order, so mmc@d4280000 would typically come
before mmc@d4281000 in the storage-bus node.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260511-orangepi-sd-card-uhs-v9-0-ae48c0b2b2cf@gmail.com?part=5
next prev parent reply other threads:[~2026-05-12 2:47 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-11 8:53 [PATCH v9 0/8] riscv: spacemit: enable SD card support with UHS modes for OrangePi RV2 Iker Pedrosa
2026-05-11 8:53 ` [PATCH v9 1/8] dt-bindings: mmc: spacemit,sdhci: add pinctrl support for voltage switching Iker Pedrosa
2026-05-12 1:01 ` sashiko-bot
2026-05-11 8:53 ` [PATCH v9 2/8] mmc: sdhci-of-k1: enable essential clock infrastructure for SD operation Iker Pedrosa
2026-05-12 1:13 ` sashiko-bot
2026-05-11 8:53 ` [PATCH v9 3/8] mmc: sdhci-of-k1: add regulator and pinctrl voltage switching support Iker Pedrosa
2026-05-12 2:01 ` sashiko-bot
2026-05-11 8:53 ` [PATCH v9 4/8] mmc: sdhci-of-k1: add comprehensive SDR tuning support Iker Pedrosa
2026-05-11 8:54 ` [PATCH v9 5/8] riscv: dts: spacemit: k1: add SD card controller and pinctrl support Iker Pedrosa
2026-05-12 2:47 ` sashiko-bot [this message]
2026-05-11 8:54 ` [PATCH v9 6/8] riscv: dts: spacemit: k1-orangepi-rv2: add SD card support with UHS modes Iker Pedrosa
2026-05-12 3:20 ` sashiko-bot
2026-05-11 8:54 ` [PATCH v9 7/8] riscv: dts: spacemit: k1-bananapi-f3: " Iker Pedrosa
2026-05-11 16:55 ` Aurelien Jarno
2026-05-12 3:32 ` sashiko-bot
2026-05-12 5:43 ` Yixun Lan
2026-05-12 17:03 ` Aurelien Jarno
2026-05-11 8:54 ` [PATCH v9 8/8] riscv: dts: spacemit: k1-musepi-pro: " Iker Pedrosa
2026-05-11 11:43 ` Andre Heider
2026-05-12 3:48 ` sashiko-bot
2026-05-12 5:20 ` Yixun Lan
2026-05-11 15:40 ` [PATCH v9 0/8] riscv: spacemit: enable SD card support with UHS modes for OrangePi RV2 Ulf Hansson
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=20260512024710.63A20C2BCB0@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=ikerpedrosam@gmail.com \
--cc=krzk+dt@kernel.org \
--cc=robh@kernel.org \
--cc=sashiko@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