From nobody Mon May 25 03:33:12 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 81CD7303A07; Tue, 19 May 2026 04:15:17 +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=1779164120; cv=none; b=tLI3fpnCteVKjN4tAnemJgnSxkPJJCn3Z9jn6n1RfAQbEV0DXIzjMJkC+otF6NyH7XOBqRPFuSu5Rb6gI5OYh/viLVypEIxZSwpzIpqmFRNcTQu9ELadDTChj7xq6v5IaE8G45Ho9oF8tozrv1OHpZyJ/+r/r86OzO+kLryPdOw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779164120; c=relaxed/simple; bh=F+/hp7xOqsoQQNdBKjJcH1yFFL3aFA1na8KJNQt0n5A=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=hrFe5iGlC9Nhqnjvz/ganS7ETicPFwu78HU4CfV8dObc4N319CnLW4sB6hTMjfW9HIarXQKJhfcFfK/0yFi1+sT5SL5zzvs+IhwTtO1VAOpvuXzoz60/+CoKLnmHJgE4/OO/kLAyDC/axlCP7rzvpiErZJ0Vp3sHQfKndvbTSlU= 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=DICVQVIR; 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="DICVQVIR" 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=q92OjoForvj8MezGB26uKy2lPZ5V2E2aoUdpVR5SCfs=; b=DICVQVIR50AeqPnQXMAV/1pqoy CgaxOumlMpGqrMIfvabXugeS5wCtFTvPglfgo9ROPQkSqTD/4roJOkoDIm8+NUmDB0sFJhGFJJ2A9 aQxos0r8bbghSnJZedM91aqnJ+Fry5kWLRcmfJcJESr290o7rzr1ryAt6kGHCspQJFyfHwqbG21s0 vEyJl5MX6cTfCAJd3E27ukVWD5pd6rdZsHBPoaPlqPEPXrWPb12AQKODCsm+anWDDZQ+RYGQVMtx9 3+YMq8o0yuIvoNN8sd4XTs77Var/pcyQk4D/s5imUxpcy91xLrr3r4JhAN5s2K7X+p9mJfK6+7w+B FjoXj+lQ==; 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 1wPBrH-000000032lg-0QAR; Tue, 19 May 2026 06:15:07 +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 , 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 v2 1/5] riscv: dts: spacemit: set console baud rate on Milk-V Jupiter Date: Tue, 19 May 2026 06:12:35 +0200 Message-ID: <20260519041458.3287843-2-aurelien@aurel32.net> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260519041458.3287843-1-aurelien@aurel32.net> References: <20260519041458.3287843-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 Reviewed-by: Yixun Lan --- arch/riscv/boot/dts/spacemit/k1-milkv-jupiter.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) v2: no changes 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 Mon May 25 03:33:12 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 7CE933019D8; Tue, 19 May 2026 04:15:17 +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=1779164120; cv=none; b=GaPmYPWDz4G6Y5XgCbWR/yQt+1qO8fb7G4xCRaCWcxOBboECHCgjiBu4QWtbeO6BAvJiPfWWcDCMiDEAFrjtUfPqBzxIyaBSz1lCRUp3kyIcnm+nSRud9e/jKinhebOvgGlUP17zFkoajPVUQuA7IYCvZcRYa+J1oXsTzGY92fM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779164120; c=relaxed/simple; bh=RWTtVrJ3gnjuLqtGO7opyK1BnPDwtAJds8oUZHuN+A4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=q07x0mwvwHiJLy81XuPcny9Pne/WNJQ/1ywC+pCSh3QDMq0hA22DlXusLDHap3q9KHmYF6rzwNhS/MoLLQIAFK8ItniG0Es0rFq9gCGY95raV7HaSrwW0onjAXDJm6Jcuwbl6nO+h+PDnZZ3tHw4ydVcE7kMTd4DN+W0Xy4wMak= 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=bzPpiXxM; 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="bzPpiXxM" 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=N6k65rkOQSpxXsiGmmr6MSpGtXWt3QYbbvQ6NvIvOA0=; b=bzPpiXxMTC3/BmfdpMyoRF05AZ PIuWYy5YaMm04MsNErTvnV/zcfKEsKFmmVZUn3pSh8N4S5WEW7B3l9O+xRoXR+2N1oC0xYVdoD5Ja 6Q1MtzY3qr6PC7Jqoo7G+HT1soh453rxlWCiMM4RdLbCGB+pDKFZff6qlBHGpNrlfb6PzBf9VVqcY bGEhBD/wq3Y8qPbsc1Z27Qj451wfqREh6iXk91+sCkxw571zb3BiMi6eoarj49PsehWeLbAgKTSKh e263QFxTMm26a3vQD13+HmDBKwejoCvMhs84kG7zQ57MZxoIW0fN/HGHtU7wKgjb++Grzd5ViKi/m zU3APD6A==; 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 1wPBrH-000000032li-2EfV; Tue, 19 May 2026 06:15:07 +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 v2 2/5] riscv: dts: spacemit: sort aliases on Milk-V Jupiter Date: Tue, 19 May 2026 06:12:36 +0200 Message-ID: <20260519041458.3287843-3-aurelien@aurel32.net> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260519041458.3287843-1-aurelien@aurel32.net> References: <20260519041458.3287843-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 Reviewed-by: Yixun Lan --- arch/riscv/boot/dts/spacemit/k1-milkv-jupiter.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) v2: no changes 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 Mon May 25 03:33:12 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 4B0432DB788; Tue, 19 May 2026 04:15:16 +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=1779164119; cv=none; b=h1t33sX+wkpVcEYP1sYp2BHHHkRFIZp170gcNnVH/PYkXrdEziKWn23e1w/FVoMGVmKF6owY7ERoOyn1i4S19AcOrhxd2TsNG3LkZ6/oojmYbQf+67+B5iNmQiBgzxQwnohj4XGbfyXbxeV/XpNvSvhP0cIkXw+yX/3e/xv/bKY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779164119; c=relaxed/simple; bh=asI8ZbDIJHUG5wKZDIpeF1hkiDkz88ritF48j7lXBJQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=nZ6JN2rhCUZC/m2Nw6BZOsKATsKwU5ojKg+Wz/gfo/GW5bZEr/UrpYijLMW/LanloMfKUvSh9bU1Kee05FXg0IKhTitVPd0g4MIVtvCh2tNI4bs+LKP5KScuSR9X2wCC1YOCgdB/a+Ji1x5E19x6YTNSeX4KUVGi+0FjRjv3yp4= 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=uBTcsGjQ; 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="uBTcsGjQ" 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=mSw2a+RDrVOcV8ZSoq/p8SdqL+RrV1G3jvfZ9SHsGmw=; b=uBTcsGjQWTryN5hW5QQx9lIae3 5HgW4XWxajw8+zGNsQ8U8IRDrPF4eoX9TecZO8udDoDJBj9c+NiekFZ+VQAoCzqA7A3N0TbmmSEq3 hUf9RptC/tapKqdf1SAq8W3OWL761YmXvKcVlqWRhBahn0A0OvvkWp4+PlDV65ryWa+W13kTCViN3 nzs3vNmVZQqqi1aj+RC5P0hlNjLA6W14Dre9JD/K92eEXXVCaluVI8OBkqBmHMbHWQyBbXprkaadA oIyUkF9FcvK2EX9wT3R/CtYu6XZMqoArFXuy7stc6b9P6Q0Ru7eysr8EuuFbFosXjTA1vgowR27c/ nzJQC90w==; 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 1wPBrH-000000032ll-3qar; Tue, 19 May 2026 06:15:07 +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 v2 3/5] riscv: dts: spacemit: enable eMMC on Milk-V Jupiter Date: Tue, 19 May 2026 06:12:37 +0200 Message-ID: <20260519041458.3287843-4-aurelien@aurel32.net> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260519041458.3287843-1-aurelien@aurel32.net> References: <20260519041458.3287843-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. Mark the device as non-removable as eMMC modules have no CD pin and are not supposed to be inserted or removed while the system is running. On systems without an eMMC module installed, the kernel emits the following informational message during boot: mmc0: SDHCI controller on d4281000.mmc [d4281000.mmc] using ADMA mmc0: Failed to initialize a non-removable card Signed-off-by: Aurelien Jarno Reviewed-by: Yixun Lan Tested-by: Junhui Liu --- arch/riscv/boot/dts/spacemit/k1-milkv-jupiter.dts | 11 +++++++++++ 1 file changed, 11 insertions(+) v2: Mark the eMMC as non-removable diff --git a/arch/riscv/boot/dts/spacemit/k1-milkv-jupiter.dts b/arch/riscv= /boot/dts/spacemit/k1-milkv-jupiter.dts index 450d28e438293..eb53198b95061 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,16 @@ &cpu_7 { cpu-supply =3D <&buck1_3v45>; }; =20 +&emmc { + bus-width =3D <8>; + mmc-hs400-1_8v; + mmc-hs400-enhanced-strobe; + non-removable; + no-sd; + no-sdio; + status =3D "okay"; +}; + ð0 { phy-handle =3D <&rgmii0>; phy-mode =3D "rgmii-id"; --=20 2.53.0 From nobody Mon May 25 03:33:12 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 4B1142F7F0F; Tue, 19 May 2026 04:15:16 +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=1779164120; cv=none; b=oJfjDQ/Zc6ZY7XsziH2AsBqzB/BBcRN4L8zj2MyWEbjMJlaPF6UkyqMjGlCoSMdyO4APAO/UgBiPWSy9NBKreRkXb+h/wYfXPGg8w7voumoleKLF1eCn25ybcKYKMwKc4Ccmwd/b+TvJ1QBJVq9ej2EVMjCUxbt9p+KYMf8cY1c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779164120; c=relaxed/simple; bh=1a4dLbevmVwGj8dZNzUymQK8YF1/rV8MzeI3w56WwbA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=gD+JQxTbLukEQJ4UtQP8ftwCdCHGazScoISf4A3VJwFcXqHAgSj/hS1YDZbn0gfiN1SR7fcfP+i616sSANQPvsu9zWlnR4eAkh+eciCfsbtfpoJItZMHx2Yz26aHAXFRAEu6VhZhXkguyJeU2rk11KtP7BDfI7hiWuTJsstaLgc= 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=kvY5nKqv; 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="kvY5nKqv" 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=bTJWV9aWXtI4yET6N93LcOw34KuwznQcw/HXe4c80CI=; b=kvY5nKqv0iwfbdDmsmWdZGV8cL bRo9ltIvgfnxdy6Xlsa2DN8D9ELHVBj33lQ78dStL1Qsf8nlgXyJjzwoSSITksFZSNomeKerD1hxJ 6NrrZYuiY81H+oIfjYLuQ71SMCerEqHZpHpKx0Qhyq1XhOdBI1v/eCG6MEVk9vkdugwngtxRFAjzQ iEVkO97MYP2kbbhK/X3aGQBaQdwt/FufY18C2eq6GxNi0r+OsSfq2P/56TsoD5Q8obHqH0o8+fOC4 Zr3pvY1sS7hJfnXfprwGuAEw1BeJpaUltNGSSwg4a+DJ0dwhb0hg1aXbCEaCksyM+jZRWfa/G3SCu 5DeCBolw==; 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 1wPBrI-000000032ln-1GvH; Tue, 19 May 2026 06:15:08 +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 v2 4/5] riscv: dts: spacemit: enable SD card support on Milk-V Jupiter Date: Tue, 19 May 2026 06:12:38 +0200 Message-ID: <20260519041458.3287843-5-aurelien@aurel32.net> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260519041458.3287843-1-aurelien@aurel32.net> References: <20260519041458.3287843-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 Reviewed-by: Yixun Lan Tested-by: Junhui Liu --- .../boot/dts/spacemit/k1-milkv-jupiter.dts | 21 ++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) v2: no changes diff --git a/arch/riscv/boot/dts/spacemit/k1-milkv-jupiter.dts b/arch/riscv= /boot/dts/spacemit/k1-milkv-jupiter.dts index eb53198b95061..0c13b7a401c3f 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 @@ -283,7 +284,7 @@ buck6 { regulator-always-on; }; =20 - aldo1 { + aldo1: aldo1 { regulator-min-microvolt =3D <500000>; regulator-max-microvolt =3D <3400000>; regulator-boot-on; @@ -418,6 +419,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 From nobody Mon May 25 03:33:12 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 7A2773019A6; Tue, 19 May 2026 04:15:17 +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=1779164119; cv=none; b=SLtm9BAGAy9XnnJKK3XW2Kw33yZb/YNfF/EykMythm870x8O7MbnMRSvwZDX5fiBbawKbrX8bwAlJQ1pGRR22bIAxH1HEzUgrIlXh3n6KS8+3HjYZtUhdcNnmkWgZlfHOxJAf1I4z+HrGL6WniiCy4HN1/GQZhe/kwKjbKqaaek= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779164119; c=relaxed/simple; bh=c+gAyrHj70i9gkFrUIa3zijXirDxQi6697D1H0pYrCQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=jpzRHEq0AaTyHNkEx6Ut+Mxz3/fJKiKpnRw2pauJlo41y8brupkl8z6hYQUTX6pGUpGOQ+XygltCP+5ah56HABcGFFohtQ3WoMgWJLYnYZ5FEKz3c1vC1mEoXA7jqvnwKi6raRgtU1wGYXbB7xGumsbnzCxFMcNnpZhSbPSOnk4= 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=A8mZW7ub; 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="A8mZW7ub" 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=LHwopLNH6+0n7dTSPaR+y20Y2iaeT0pnt+ZZ6F9ZDBs=; b=A8mZW7ubbr+bLe4+DH0LMbRiqj hbsrwqje7gspxP/hUukuZyiD92rLRMo+SEizhBg24YHTGOv/sS6d7jEI7z49nDG15w5ELenpBHhyX +NihrYwxfnfko6Rokm4GCKjiFu77hAxMVyiWBgFGklzyjRefdJfcLZs1eKpiFBjT7va349fMg6kCN exH9Ye1Oh+pChjLrPROaBGGEya/lDva2xfX6IAanCpQn/0cv1z45pEKR3rNHvZQiU7QHIh58u3+mu dF0N3hJuztvioTZltTmN9twZFzReuKFa0uVkWlXWy1JYdlGFPYFZGgN6yiTh8m6rOTjQGxtT06uap FjTmaKPA==; 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 1wPBrI-000000032lx-2eD4; Tue, 19 May 2026 06:15:08 +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 , Javier Martinez Canillas , Aurelien Jarno Cc: 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 v2 5/5] riscv: dts: spacemit: fix uboot partition offset on Milk-V Jupiter Date: Tue, 19 May 2026 06:12:39 +0200 Message-ID: <20260519041458.3287843-6-aurelien@aurel32.net> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260519041458.3287843-1-aurelien@aurel32.net> References: <20260519041458.3287843-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" Correct the uboot partition node name to match its actual offset. Fixes: 2829823956f0 ("riscv: dts: spacemit: enable QSPI and add SPI NOR on = Milk-V Jupiter") Signed-off-by: Aurelien Jarno Reviewed-by: Yixun Lan --- arch/riscv/boot/dts/spacemit/k1-milkv-jupiter.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) v2: new patch diff --git a/arch/riscv/boot/dts/spacemit/k1-milkv-jupiter.dts b/arch/riscv= /boot/dts/spacemit/k1-milkv-jupiter.dts index 0c13b7a401c3f..4e5f5dc69d060 100644 --- a/arch/riscv/boot/dts/spacemit/k1-milkv-jupiter.dts +++ b/arch/riscv/boot/dts/spacemit/k1-milkv-jupiter.dts @@ -412,7 +412,7 @@ env@60000 { opensbi@70000 { reg =3D <0x70000 0x30000>; }; - uboot@a00000 { + uboot@a0000 { reg =3D <0xa0000 0x760000>; }; }; --=20 2.53.0