From: "Troy Mitchell" <troy.mitchell@linux.spacemit.com>
To: "Yixun Lan" <dlan@kernel.org>, "Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Paul Walmsley" <pjw@kernel.org>,
"Palmer Dabbelt" <palmer@dabbelt.com>,
"Albert Ou" <aou@eecs.berkeley.edu>,
"Alexandre Ghiti" <alex@ghiti.fr>,
"Troy Mitchell" <troy.mitchell@linux.spacemit.com>
Cc: <devicetree@vger.kernel.org>, <linux-riscv@lists.infradead.org>,
<spacemit@lists.linux.dev>, <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 4/4] riscv: dts: spacemit: k3: Set CD pin bias
Date: Fri, 27 Nov 2026 06:10:10 +0000 [thread overview]
Message-ID: <DN5RQ489MNYL.1WRXDMIRHZK6I@linux.spacemit.com> (raw)
In-Reply-To: <20261125-09-k3-dt-minor-misc-v1-4-dd887a8eb326@kernel.org>
[-- Attachment #1: Type: text/plain, Size: 1208 bytes --]
On Wed Nov 25, 2026 at 7:46 AM GMT, Yixun Lan wrote:
> Explicitly configure the bias settings of the CD (Card Detect) pin
> for MicroSD card in CoM260-IFX board.
>
> During the GPIO pin request phase, the pinctrl driver disables bias
> settings in function spacemit_request_gpio(), this happens to work
> in kernel side, but doesn't for U-Boot. Adding a flag to fix this.
>
> Signed-off-by: Yixun Lan <dlan@kernel.org>
>
> ---
> K3 Use same SD card slot as K1's MusePi-PRO, which needs PULL_UP.
> ---
> arch/riscv/boot/dts/spacemit/k3-com260.dtsi | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/riscv/boot/dts/spacemit/k3-com260.dtsi b/arch/riscv/boot/dts/spacemit/k3-com260.dtsi
> index 65c6f49f8591..598a53461afc 100644
> --- a/arch/riscv/boot/dts/spacemit/k3-com260.dtsi
> +++ b/arch/riscv/boot/dts/spacemit/k3-com260.dtsi
> @@ -240,7 +240,7 @@ &sdhci0 {
> pinctrl-0 = <&mmc1_cfg>;
> pinctrl-1 = <&mmc1_uhs_cfg>;
> bus-width = <4>;
> - cd-gpios = <&gpio K3_GPIO(4) GPIO_ACTIVE_HIGH>;
> + cd-gpios = <&gpio K3_GPIO(4) (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
Reviewed-by: Troy Mitchell <troy.mitchell@linux.spacemit.com>
--
Troy Mitchell
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 273 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: "Troy Mitchell" <troy.mitchell@linux.spacemit.com>
To: "Yixun Lan" <dlan@kernel.org>, "Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Paul Walmsley" <pjw@kernel.org>,
"Palmer Dabbelt" <palmer@dabbelt.com>,
"Albert Ou" <aou@eecs.berkeley.edu>,
"Alexandre Ghiti" <alex@ghiti.fr>,
"Troy Mitchell" <troy.mitchell@linux.spacemit.com>
Cc: <devicetree@vger.kernel.org>, <linux-riscv@lists.infradead.org>,
<spacemit@lists.linux.dev>, <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 4/4] riscv: dts: spacemit: k3: Set CD pin bias
Date: Fri, 27 Nov 2026 06:10:10 +0000 [thread overview]
Message-ID: <DN5RQ489MNYL.1WRXDMIRHZK6I@linux.spacemit.com> (raw)
In-Reply-To: <20261125-09-k3-dt-minor-misc-v1-4-dd887a8eb326@kernel.org>
[-- Attachment #1.1: Type: text/plain, Size: 1208 bytes --]
On Wed Nov 25, 2026 at 7:46 AM GMT, Yixun Lan wrote:
> Explicitly configure the bias settings of the CD (Card Detect) pin
> for MicroSD card in CoM260-IFX board.
>
> During the GPIO pin request phase, the pinctrl driver disables bias
> settings in function spacemit_request_gpio(), this happens to work
> in kernel side, but doesn't for U-Boot. Adding a flag to fix this.
>
> Signed-off-by: Yixun Lan <dlan@kernel.org>
>
> ---
> K3 Use same SD card slot as K1's MusePi-PRO, which needs PULL_UP.
> ---
> arch/riscv/boot/dts/spacemit/k3-com260.dtsi | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/riscv/boot/dts/spacemit/k3-com260.dtsi b/arch/riscv/boot/dts/spacemit/k3-com260.dtsi
> index 65c6f49f8591..598a53461afc 100644
> --- a/arch/riscv/boot/dts/spacemit/k3-com260.dtsi
> +++ b/arch/riscv/boot/dts/spacemit/k3-com260.dtsi
> @@ -240,7 +240,7 @@ &sdhci0 {
> pinctrl-0 = <&mmc1_cfg>;
> pinctrl-1 = <&mmc1_uhs_cfg>;
> bus-width = <4>;
> - cd-gpios = <&gpio K3_GPIO(4) GPIO_ACTIVE_HIGH>;
> + cd-gpios = <&gpio K3_GPIO(4) (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
Reviewed-by: Troy Mitchell <troy.mitchell@linux.spacemit.com>
--
Troy Mitchell
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 273 bytes --]
[-- Attachment #2: Type: text/plain, Size: 161 bytes --]
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
next prev parent reply other threads:[~2026-11-27 6:10 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 7:46 [PATCH 0/4] riscv: dts: spacemit: Some minor improvements to K3 Yixun Lan
2026-11-25 7:46 ` Yixun Lan
2026-11-25 7:46 ` [PATCH 1/4] riscv: dts: spacemit: k3: Rename PMIC node Yixun Lan
2026-11-25 7:46 ` Yixun Lan
2026-11-27 6:03 ` Troy Mitchell
2026-11-27 6:03 ` Troy Mitchell
2026-11-25 7:46 ` [PATCH 2/4] riscv: dts: spacemit: k3: Use Pin Macro Yixun Lan
2026-11-25 7:46 ` Yixun Lan
2026-11-27 6:03 ` Troy Mitchell
2026-11-27 6:03 ` Troy Mitchell
2026-11-25 7:46 ` [PATCH 3/4] riscv: dts: spacemit: k3: Add alias for MicroSD Card Yixun Lan
2026-11-25 7:46 ` Yixun Lan
2026-11-27 6:04 ` Troy Mitchell
2026-11-27 6:04 ` Troy Mitchell
2026-11-25 7:46 ` [PATCH 4/4] riscv: dts: spacemit: k3: Set CD pin bias Yixun Lan
2026-11-25 7:46 ` Yixun Lan
2026-11-27 6:10 ` Troy Mitchell [this message]
2026-11-27 6:10 ` Troy Mitchell
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=DN5RQ489MNYL.1WRXDMIRHZK6I@linux.spacemit.com \
--to=troy.mitchell@linux.spacemit.com \
--cc=alex@ghiti.fr \
--cc=aou@eecs.berkeley.edu \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dlan@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=palmer@dabbelt.com \
--cc=pjw@kernel.org \
--cc=robh@kernel.org \
--cc=spacemit@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.