Re: [PATCH 4/4] riscv: dts: spacemit: k3: Set CD pin bias
From: Troy Mitchell
Date: Fri Nov 27 2026 - 01:10:27 EST
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@xxxxxxxxxx>
>
> ---
> 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@xxxxxxxxxxxxxxxxxx>
--
Troy Mitchell
Attachment:
signature.asc
Description: PGP signature