[PATCH 3/3] riscv: dts: spacemit: k3-deepcomputing-fml13v05: Enable SD card support
Sandie Cao
sandie.cao at deepcomputing.io
Tue Sep 22 23:35:20 PDT 2026
Hi, Troy:
> From: "Troy Mitchell"<troy.mitchell at linux.spacemit.com>
> Date: Wed, Sep 23, 2026, 10:23
> On Tue, Sep 22, 2026 at 07:04:50PM +0800, Sandie Cao wrote:
> > @@ -184,6 +185,24 @@ &combophy {
> > [...]
> > +&sdhci0 {
> > + pinctrl-names = "default","uhs";
> > + pinctrl-0 = <&mmc1_cfg>;
> > + pinctrl-1 = <&mmc1_uhs_cfg>;
> > + bus-width = <4>;
> > + cd-gpios = <&gpio K3_GPIO(88) GPIO_ACTIVE_LOW>;
>
> Does GPIO88 have an external pull-up? The SDK DTS [1] also includes
> mmc1_cd_cfg in both pinctrl states, with a pull-up and 3.3 V configuration.
> Neither mmc1_cfg nor mmc1_uhs_cfg covers this pin. Is that configuration
> unnecessary on this board?
>
FML13V05 SD card slot is inside the board, it doesn't need cd-gpio, FML13V05 Keeps GPIO88 to low, Then SD card is always on for SD Card driver.
We check the vmmc-supply is p3v3. We have the same SDK DTS config with k3_com260[1] , so, this patch follows the SD card patch of k3_com260 dts[2].
If this is not correct, we will change it.
Link: https://github.com/spacemit-com/linux-6.18/blob/k3-br-v1.0.y/arch/riscv/boot/dts/spacemit/k3_com260.dtsi [1]
https://lore.kernel.org/all/20260610-07-k3-enable-sd-v1-1-196ae29bd091@kernel.org/ [2]
Best regards
Sandie
> > + no-mmc;
> > + no-sdio;
> > + disable-wp;
> > + cap-sd-highspeed;
> > + vmmc-supply = <&aldo4>;
> > + vqmmc-supply = <&aldo1>;
>
> Could you confirm which rail supplies the card's VDD? The SDK DTS [1]
> uses p3v3 for vmmc rather than aldo4. Does that RPMI regulator map to
> ALDO4, or is the card powered by a different rail?
>
> Link: https://github.com/spacemit-com/linux-6.18/blob/k3-br-v1.0.y/arch/riscv/boot/dts/spacemit/k3-deepcomputing-fml13v05.dts [1]
>
> --
> Troy Mitchell
>
More information about the linux-riscv
mailing list