From nobody Fri Jun 12 13:55:57 2026 Received: from hall.aurel32.net (hall.aurel32.net [195.154.119.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3813F3264ED; Thu, 14 May 2026 16:04:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.154.119.183 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778774677; cv=none; b=WW/YySavGlLbLRonWzHcJrMWqBHSYniHSKnEIvzV6GtizAaHEk7xMz9MVYILe2XRDatpBPtPoJBDtrSyeSG3kOd4/TIeNPI4xFNgf7ObcaPFWg/AsF7c+l/lgABDcF5T4mdoRpnSJZoZ07tCv+vG9qMkhm+EAQex/ZLG3nCjjig= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778774677; c=relaxed/simple; bh=eu3v3I361q2EV1iS1kJRe54qVoxVJi+BB6/PgoCfGkE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=uuWLEikwGkRnkhbLK/CzbVbue79RHy7RCmDl+Krk5Lz6s/PvGgVE0GPzN0y0uflhxnbKvrhOyyBt4H9taB0NbhHY9rmz7ZcE8HsUN8LkanQGuLUeqv9LPl7n2OwWChJQdy1URSmRb2+FXBBDG1oxK/dYfgEUCepnFZjowvV794M= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=aurel32.net; spf=pass smtp.mailfrom=aurel32.net; dkim=pass (2048-bit key) header.d=aurel32.net header.i=@aurel32.net header.b=DT70ziJu; arc=none smtp.client-ip=195.154.119.183 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=aurel32.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=aurel32.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=aurel32.net header.i=@aurel32.net header.b="DT70ziJu" 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=sqRxMWMXlSnZN0jD0+5LubNrtpBuXqfyan8I6F7qG0c=; b=DT70ziJu/3UUj2Pji9ORK5HhLG bAhTe0+36Ce0cTWrZ28/9ufa/TftuKG9moM/2IO25vBVgzLwNKPuQ44IjxWYlHBzDpFzarCsol3TH BuQm0mJzZ/jpuH+hd32eWhQi/go0cWbEOfaScObYd8jnKiurL/cRh22OcgNIPU43vDmKi6PPy6oxj wGXr/5LzMY7ydU4mEMDG3mvJWICwK8fKKjIbKyfa3XFz4bufQO2ZwrYaMIaLZABWt4FxnMQGuy4df UsNX3WF0FAhFZjOhpHkp6aTr6upPxaAHwpGBUsiAZqmOpHCgKMAi6WhWd31SS2qwyHGHUlqdvQDaT JQInceTg==; 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 1wNYXy-00000007W2C-0qnA; Thu, 14 May 2026 18:04:26 +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 , Javier Martinez Canillas 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 SPACEMIT SoC Support), spacemit@lists.linux.dev (open list:RISC-V SPACEMIT SoC Support) Subject: [PATCH 1/4] riscv: dts: spacemit: set console baud rate on Milk-V Jupiter Date: Thu, 14 May 2026 17:56:21 +0200 Message-ID: <20260514160356.1642075-2-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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Because the default console's baud rate is not set, defconfig kernels do not have any serial output on this platform. Set the baud rate to 115200, matching what is used by U-Boot etc on this platform. See-also: 24c12ca43b12c ("dts: spacemit: set console baud rate on bpif3") Fixes: 5b90a3d6092d9 ("riscv: dts: spacemit: Add Milk-V Jupiter board devic= e tree") Signed-off-by: Aurelien Jarno --- arch/riscv/boot/dts/spacemit/k1-milkv-jupiter.dts | 2 +- 1 file changed, 1 insertion(+), 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 95c35154da96d..9b1dfddf2bac5 100644 --- a/arch/riscv/boot/dts/spacemit/k1-milkv-jupiter.dts +++ b/arch/riscv/boot/dts/spacemit/k1-milkv-jupiter.dts @@ -21,7 +21,7 @@ aliases { }; =20 chosen { - stdout-path =3D "serial0"; + stdout-path =3D "serial0:115200n8"; }; =20 leds { --=20 2.53.0 From nobody Fri Jun 12 13:55:57 2026 Received: from hall.aurel32.net (hall.aurel32.net [195.154.119.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 387C032861E; Thu, 14 May 2026 16:04:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.154.119.183 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778774677; cv=none; b=BqwvIhEX7attKm9KjmAcoS7+uzIfZ7abDC+zQM6eKuIQb4qzdDZwQfx787y15kyJgnEhUNm6LV8oqLT/HsdCZNM469sqMVp1Q5stYf0sh54OCS6YQbeFEz7XKPJwe4Cxf1qOt+bbaAQb8VduLGTLwhDkQUt8UNVT33PqMrxBVlk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778774677; c=relaxed/simple; bh=rrOdW8qoKUlykOXMeQf5zPkX1i0Yd/XA5CBLnoxNjPk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=A6osiL5bQCkZXTauGAJP2Mn9L7Ntla6IFEHxYuCF476E0+GduxhEIc4mACJmnntGcE8ulnDDNJPNyVntksdp4TeRGIlzowQkzHfk7f7afIoSDPJgX0j5kcxdkuF/TDJwaiMQzV126qX88iSjmM6kRZgnVeOGaClgLtQr5C69L1k= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=aurel32.net; spf=pass smtp.mailfrom=aurel32.net; dkim=pass (2048-bit key) header.d=aurel32.net header.i=@aurel32.net header.b=yZhIZyts; arc=none smtp.client-ip=195.154.119.183 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=aurel32.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=aurel32.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=aurel32.net header.i=@aurel32.net header.b="yZhIZyts" 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=qYt71o3PtWGLZ9GuEhxacyBLBwWKBmBbuhWalc9UlZ4=; b=yZhIZytsB1xa3pNk94EnYHoiXl BMHabjc6SKLtP8yT4m87SwMe5IY+R57HSh1hnJDfhYyg6mSZ3Gs+kpnx3ZeyIpQQP0J0YEK7uRZOI lEZXdzw0pEk7Xt5eP0vAp4DlQGPQgPlAhMzG3DQB9aRLhtJlE4VvgvihOCIO2xPTzS1BG8KH3B47k 0MmjM1vJ3emDDr2yEHfowgSKClWTg2Gmk/7zX3Bec4FHZAgULWMCx9GGhQ8iXMHgFEjB/YBACtBCJ O7X54FdP97POO84EwtHQXV1f9/iuoXnJYwuTnGxElfJsljGTWCJOnnpzAfO7DVRDnvhUmavP2JYhy z4CkQRBg==; 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 1wNYXy-00000007W2E-3auH; Thu, 14 May 2026 18:04:26 +0200 From: Aurelien Jarno To: linux-kernel@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Yixun Lan 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 SPACEMIT SoC Support), spacemit@lists.linux.dev (open list:RISC-V SPACEMIT SoC Support) Subject: [PATCH 2/4] riscv: dts: spacemit: sort aliases on Milk-V Jupiter Date: Thu, 14 May 2026 17:56:22 +0200 Message-ID: <20260514160356.1642075-3-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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Before adding more aliases, just sort them. Signed-off-by: Aurelien Jarno --- arch/riscv/boot/dts/spacemit/k1-milkv-jupiter.dts | 2 +- 1 file changed, 1 insertion(+), 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 9b1dfddf2bac5..450d28e438293 100644 --- a/arch/riscv/boot/dts/spacemit/k1-milkv-jupiter.dts +++ b/arch/riscv/boot/dts/spacemit/k1-milkv-jupiter.dts @@ -15,9 +15,9 @@ / { aliases { ethernet0 =3D ð0; ethernet1 =3D ð1; - serial0 =3D &uart0; i2c2 =3D &i2c2; i2c8 =3D &i2c8; + serial0 =3D &uart0; }; =20 chosen { --=20 2.53.0 From nobody Fri Jun 12 13:55:57 2026 Received: from hall.aurel32.net (hall.aurel32.net [195.154.119.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 381CB3264FD; Thu, 14 May 2026 16:04:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.154.119.183 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778774676; cv=none; b=HYvUmQ/GvLwSWMkxhoMQVSNBzd9YZuVcnpSKWeu6BUQnpfyGKEoDxUHEW+Nm2HwPzsHUT5VtOuqlaqFnjBakhsEL7gY16KLqqfuE0t0KvYGBXr311NJl/scQHUQdYgz6YUL2ZTgIp+jEzmpmBXKjp2Kg+uYE3RN2uS9hzYD1ngA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778774676; c=relaxed/simple; bh=SDBMuQKwD535Qqg1XjqjuYM6h0x6PydibQyyVhZd9LM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=oSatRzBGXSgz6Bpt77u+9RtF+o9J67c0CtocyYsKf/OktamSh1Cb0Ub+6+cj/zOR3rx7sDd7tLYTO73aIz89PIzgkbY+kG5S4VM8yicQpISSjIn/Rz1ZdUG2GpzoyehoGcLB5zFD8ftT+hzpR6mmK3EyBQ197WOVXb/HAAQQFvI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=aurel32.net; spf=pass smtp.mailfrom=aurel32.net; dkim=pass (2048-bit key) header.d=aurel32.net header.i=@aurel32.net header.b=DgBxONhy; arc=none smtp.client-ip=195.154.119.183 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=aurel32.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=aurel32.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=aurel32.net header.i=@aurel32.net header.b="DgBxONhy" 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=MDcF53V9v5HqtxunpienYMcM0tRyYISFa1MdRC1QzVQ=; b=DgBxONhy/TY6ZRn+5OyMN1kj3x bW5DyDiWmAfvdOr3j/NToJdpSwi2LERqUXuSZAoW0dD0PQypa5V0E2zxdjSJY2xnIoFe1zOnAp7KZ gBNoy95/V2OqOen/T0lNrSML/nPe4B+zsuDlxWLmghUNuEhsQNLHhQRaiWi2LTBq00IyszLXaaPX+ 7d3PEbAEPitrp2xl1f769C18OzeQGJwdogP3kMi0cAj1h0Lj/TZo5OcxH0HjyUeeu/LWphhW/A1I1 VpQN4J5EmLWF5Z6wqIh/WQq6EAUDL9NKt6zS7ifl0iR+apvgVBIhczvagBJBB2zvmaD3/qB9V5YRS 0reKX3Pg==; 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 1wNYXz-00000007W2G-2Go9; Thu, 14 May 2026 18:04:27 +0200 From: Aurelien Jarno To: linux-kernel@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Yixun Lan 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 3/4] riscv: dts: spacemit: enable eMMC on Milk-V Jupiter Date: Thu, 14 May 2026 17:56:23 +0200 Message-ID: <20260514160356.1642075-4-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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The Milk-V Jupiter board has a connector for an eMMC module. Add an entry for it in the device tree and alias it mmc0. As it is not populated by default, do no mark it as non-removable. Signed-off-by: Aurelien Jarno --- arch/riscv/boot/dts/spacemit/k1-milkv-jupiter.dts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/riscv/boot/dts/spacemit/k1-milkv-jupiter.dts b/arch/riscv= /boot/dts/spacemit/k1-milkv-jupiter.dts index 450d28e438293..b9b8ddc8e7fb0 100644 --- a/arch/riscv/boot/dts/spacemit/k1-milkv-jupiter.dts +++ b/arch/riscv/boot/dts/spacemit/k1-milkv-jupiter.dts @@ -17,6 +17,7 @@ aliases { ethernet1 =3D ð1; i2c2 =3D &i2c2; i2c8 =3D &i2c8; + mmc0 =3D &emmc; serial0 =3D &uart0; }; =20 @@ -138,6 +139,15 @@ &cpu_7 { cpu-supply =3D <&buck1_3v45>; }; =20 +&emmc { + bus-width =3D <8>; + mmc-hs400-1_8v; + mmc-hs400-enhanced-strobe; + no-sd; + no-sdio; + status =3D "okay"; +}; + ð0 { phy-handle =3D <&rgmii0>; phy-mode =3D "rgmii-id"; --=20 2.53.0 From nobody Fri Jun 12 13:55:57 2026 Received: from hall.aurel32.net (hall.aurel32.net [195.154.119.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 97178324B2C; Thu, 14 May 2026 16:04:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.154.119.183 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778774677; cv=none; b=Hn5mKvVanZIAZXw1Hs17o91IVJm0sC7rCsyZ4hs+wEmE5qqTY3naYP6dpQChRPm6U5WPSFBbEPcgwCWsqV9ae5e6s5FtoexHDsHRsUjuoXU0kX2zGr7kOLsyDN3wsV+a/j0eslU52q+EzmernYzo5Mgn8D7QEy57qKjOJFJfZGk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778774677; c=relaxed/simple; bh=OgPBsHavjym0+x+rjSIurOxX5deKRNYa9aAUPWIZttk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=AVG4zifrd9MWhrJ1EQOIO/CG01ZCMZpCXbZNwWNPYwe0E36a5rtt6DVll0Gi7BujKUXq8LlsNXl8KsbYbr1o6rtrk9opDXTjXbt6CmG6Tn0BF2Z1iqNDBZE/3Ero45KZpVGP3S1y1K5ZGWUkQb0H2uhfxIHfFAmuRp31nISXhvc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=aurel32.net; spf=pass smtp.mailfrom=aurel32.net; dkim=pass (2048-bit key) header.d=aurel32.net header.i=@aurel32.net header.b=rBQRMD17; arc=none smtp.client-ip=195.154.119.183 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=aurel32.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=aurel32.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=aurel32.net header.i=@aurel32.net header.b="rBQRMD17" 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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 =3D &i2c2; i2c8 =3D &i2c8; mmc0 =3D &emmc; + mmc1 =3D &sdhci0; serial0 =3D &uart0; }; =20 @@ -282,7 +283,7 @@ buck6 { regulator-always-on; }; =20 - aldo1 { + aldo1: aldo1 { regulator-min-microvolt =3D <500000>; regulator-max-microvolt =3D <3400000>; regulator-boot-on; @@ -417,6 +418,24 @@ uboot@a00000 { }; }; =20 +&sdhci0 { + pinctrl-names =3D "default", "uhs"; + pinctrl-0 =3D <&mmc1_cfg>; + pinctrl-1 =3D <&mmc1_uhs_cfg>; + bus-width =3D <4>; + cd-gpios =3D <&gpio K1_GPIO(80) (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; + no-mmc; + no-sdio; + disable-wp; + cap-sd-highspeed; + vmmc-supply =3D <&buck4_3v3>; + vqmmc-supply =3D <&aldo1>; + sd-uhs-sdr25; + sd-uhs-sdr50; + sd-uhs-sdr104; + status =3D "okay"; +}; + &uart0 { pinctrl-names =3D "default"; pinctrl-0 =3D <&uart0_2_cfg>; --=20 2.53.0