From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 60C9BCD4851 for ; Thu, 14 May 2026 16:04:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=W+fnKKQW4N1tzjRkMkQsnRdUoPJ5FfqSFdi7VJc9dfU=; b=NHpN9GQ/Xofi0H H2VEmW5KJx4Mh9zJDhD7tnOHUw7cR6gNPCo6LkQgW0IKxeG3xbbKQCWrq676IXLGTG79vlBtg6OjI 4yRYn5a9f82LcKFvtn2Oa4hmHXLE97Y3tB+KN79O0qSY1++ksGmY1gXhfxDpvL9f1ix8wkBi4bDYZ qQY16zdrBaQzCFOhiH1huVsbhVZQHwpUtKptP8sRKQi82c6OH8yuB0I/zRGhYYZbY0HmgHgatVHg5 V8kG3Er/iFjhek5cPL7FWur3LU7m3nZ+K6kZgTaxFKoB9z3E5F9vWBGRgnINsC7mEazGa1Upe0wpo HajLSi8t7IDRxN+XuLFg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wNYYA-00000005zEP-1Wuz; Thu, 14 May 2026 16:04:38 +0000 Received: from hall.aurel32.net ([2001:bc8:30d7:100::1]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wNYY7-00000005zBT-47KU for linux-riscv@lists.infradead.org; Thu, 14 May 2026 16:04:37 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=aurel32.net ; s=202004.hall; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Content-Type:From:Reply-To: Subject:Content-ID:Content-Description:X-Debbugs-Cc; bh=uCwQ6g58jzW8Lt/Ec4TlnL0981ISSt8S6/Z77+D9r7I=; b=rBQRMD17Kim5nM0CBalzqAXKvh rhZlAc0VlEg446v7ASPmyzWa//1Ok4PIBhP+e+aA9jG0PAtlDQBB/Et1MG+G8RK3oOEZio/PQJOtY lKwy83VvhjFTkftxxIEzP7szn2SIuivmkqrdzxJEBqRmM7PyNWQEWMFsUQeGWOvKOF3Vz8tf2XyEt 70/wg5qy7OAbwOZhDni/B42c+w3EWkwGoLlooFw/UymYAueNOoprDb4e+KW0QREI/eemVHuvHmg1I ObqgnU8QWqVpiUV+pA/Criy1ZarVEXuHgLajW+mm/ZAAM05+4lqLEXagS8HpuTXSud9ZrVdHOKsm8 8KmC1FOA==; Received: from authenticated user by hall.aurel32.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wNYY0-00000007W2z-2OsU; Thu, 14 May 2026 18:04:28 +0200 From: Aurelien Jarno To: linux-kernel@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Yixun Lan , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti Cc: Aurelien Jarno , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-riscv@lists.infradead.org (open list:RISC-V ARCHITECTURE), spacemit@lists.linux.dev (open list:RISC-V SPACEMIT SoC Support) Subject: [PATCH 4/4] riscv: dts: spacemit: enable SD card support on Milk-V Jupiter Date: Thu, 14 May 2026 17:56:24 +0200 Message-ID: <20260514160356.1642075-5-aurelien@aurel32.net> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260514160356.1642075-1-aurelien@aurel32.net> References: <20260514160356.1642075-1-aurelien@aurel32.net> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260514_090436_021607_F934642A X-CRM114-Status: UNSURE ( 9.07 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Add complete SD card controller support with UHS high-speed modes. - Enable sdhci0 controller with 4-bit bus width - Configure card detect GPIO with pull-up - Connect vmmc-supply to buck4 for 3.3V card power - Connect vqmmc-supply to aldo1 for 1.8V/3.3V I/O switching - Add dual pinctrl states for voltage-dependent pin configuration - Support UHS-I SDR25, SDR50, and SDR104 modes - Alias it as mmc1 Signed-off-by: Aurelien Jarno --- .../boot/dts/spacemit/k1-milkv-jupiter.dts | 21 ++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/arch/riscv/boot/dts/spacemit/k1-milkv-jupiter.dts b/arch/riscv/boot/dts/spacemit/k1-milkv-jupiter.dts index b9b8ddc8e7fb0..7cf77437e0c2d 100644 --- a/arch/riscv/boot/dts/spacemit/k1-milkv-jupiter.dts +++ b/arch/riscv/boot/dts/spacemit/k1-milkv-jupiter.dts @@ -18,6 +18,7 @@ aliases { i2c2 = &i2c2; i2c8 = &i2c8; mmc0 = &emmc; + mmc1 = &sdhci0; serial0 = &uart0; }; @@ -282,7 +283,7 @@ buck6 { regulator-always-on; }; - aldo1 { + aldo1: aldo1 { regulator-min-microvolt = <500000>; regulator-max-microvolt = <3400000>; regulator-boot-on; @@ -417,6 +418,24 @@ uboot@a00000 { }; }; +&sdhci0 { + pinctrl-names = "default", "uhs"; + pinctrl-0 = <&mmc1_cfg>; + pinctrl-1 = <&mmc1_uhs_cfg>; + bus-width = <4>; + cd-gpios = <&gpio K1_GPIO(80) (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; + no-mmc; + no-sdio; + disable-wp; + cap-sd-highspeed; + vmmc-supply = <&buck4_3v3>; + vqmmc-supply = <&aldo1>; + sd-uhs-sdr25; + sd-uhs-sdr50; + sd-uhs-sdr104; + status = "okay"; +}; + &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_2_cfg>; -- 2.53.0 _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv