From patchwork Sat Feb 22 13:34:15 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maud Spierings via B4 Relay X-Patchwork-Id: 13986632 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 1D57EC021B2 for ; Sat, 22 Feb 2025 13:34:36 +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:Reply-To:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References: Message-Id:MIME-Version:Subject:Date:From:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ikInCZoUzQxSPMhGJCJf4gMyyhqQ9CvSH3vysZOoi7I=; b=JI8xc67NaA2qIJ IA+Ljkxlkv9fxL66QOFYprJZ5XBZEXtQRB+0TYSunFEBV3+7q9wc8Yvudezk2qoxewyW4cTjr1bTi 3Rcm+01ElKy4pT+qF39dh77rbCqBoUovrqOrDyNYU+YUi8sKYgyKMFWOqX3TK8urqc9VnAiwJKFAB 3M0wxUzXZGBL2ThPr+ulBmimav4PLYjaJdvzJQXvYumsGcVLX5y4HH02XypUKVowIm5O4MNVRBXmD wbVI5udvTBpo6Tr8Q/k9tFCZc3H/vjlq1dsjX/JQruRerRBGd1yuPxGyeiB6Ac10ec+oOu3dS8yuG +cDShFnlex/E8in62Xxw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tlpeJ-000000085Wk-1r88; Sat, 22 Feb 2025 13:34:31 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tlpeE-000000085V0-0QEw for linux-riscv@lists.infradead.org; Sat, 22 Feb 2025 13:34:28 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id B73995C57BE; Sat, 22 Feb 2025 13:33:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 403EAC4CEE6; Sat, 22 Feb 2025 13:34:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1740231264; bh=uJsu7Z3eUyAeqRsSEQzMEzclfBBrgVv7SPl+u/ez+H4=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=FG0vd4TPsQ5uc5DbIDo/fXgZHntsMOfqtC5L6IkskdtBACdYK18mYFz6HJFIXGC/T DTWhxqBjD3DYVJCaLrX3R6xhpQhb9HoG8C4Iw3rs9AgNVzqU20lcqWRb8wXYd/rKEz v8gVmMVwbakB7meBa1rH49FISMHGAhs8xI7WBD/p4naQwm/toYiPjQgDNQ6pg4tF3D 2b+miPwE4GxEM2+y8Nb7M9ltzRiVXri7ACpYZOL2jO4o3hql8cEJidhz9VI4sZvfG7 oU844Qus8zXj4TRXqtih4ziJefnLcoDGY+lPjKUXrwdkcjMYCipG+pE3yxtVWM621N ZkvNOvifK2s6A== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2B401C021B6; Sat, 22 Feb 2025 13:34:24 +0000 (UTC) From: Maud Spierings via B4 Relay Date: Sat, 22 Feb 2025 14:34:15 +0100 Subject: [PATCH v2 1/2] riscv: dts: starfive: jh7110-common: increase mmc0 max-frequency MIME-Version: 1.0 Message-Id: <20250222-fml13v01_emmc_speed-v2-1-3ffc5b1f5663@hotmail.com> References: <20250222-fml13v01_emmc_speed-v2-0-3ffc5b1f5663@hotmail.com> In-Reply-To: <20250222-fml13v01_emmc_speed-v2-0-3ffc5b1f5663@hotmail.com> To: Conor Dooley , Emil Renner Berthing , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti Cc: linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Maud Spierings X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1740231263; l=940; i=maud_spierings@hotmail.com; s=20250222; h=from:subject:message-id; bh=9gpWZSvQty4+e5gTi1J7LPpp/QLLJlyJMT9QPxYPoKE=; b=rQTRH8W8l+k+6KB0J0uKhxBq/QXMk1rJFTrbIikh0K5xR2A2el+LTzrFxUY/2eLhWxsKKKjOe zpIVYF513UsARWE/+kqYcS0q6813bnBnPMX+/60ALoEeN0RWuHr3BK/ X-Developer-Key: i=maud_spierings@hotmail.com; a=ed25519; pk=Z2m97WkDS9Sm3JnKpIpH4JwQtLm2Yw8oFCNw6uMBqb8= X-Endpoint-Received: by B4 Relay for maud_spierings@hotmail.com/20250222 with auth_id=346 X-Original-From: Maud Spierings X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250222_053426_208780_395083E8 X-CRM114-Status: UNSURE ( 8.51 ) 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: , Reply-To: maud_spierings@hotmail.com Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org From: Maud Spierings This sdio interface is capable of more than 100 MHz as already indicated by the cap_hs200-1_8v attribute. Increase the max-frequency to 200 MHz so users of this dtsi can increase their SDIO bus speed. Signed-off-by: Maud Spierings --- arch/riscv/boot/dts/starfive/jh7110-common.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/riscv/boot/dts/starfive/jh7110-common.dtsi b/arch/riscv/boot/dts/starfive/jh7110-common.dtsi index dd2eefc295e5c8b568a02104ec2189e66b378904..19ca8dc24617c2ad565a4a9b2d9af9bd9491f22e 100644 --- a/arch/riscv/boot/dts/starfive/jh7110-common.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7110-common.dtsi @@ -258,7 +258,7 @@ &i2c6 { }; &mmc0 { - max-frequency = <100000000>; + max-frequency = <200000000>; assigned-clocks = <&syscrg JH7110_SYSCLK_SDIO0_SDCARD>; assigned-clock-rates = <50000000>; bus-width = <8>; From patchwork Sat Feb 22 13:34:16 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maud Spierings via B4 Relay X-Patchwork-Id: 13986633 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 43077C021B2 for ; Sat, 22 Feb 2025 13:34:41 +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:Reply-To:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References: Message-Id:MIME-Version:Subject:Date:From:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=aAn36goC21SYmV8q23tP8D3cfGVOFyYx87b6iXbHdOs=; b=jsGnfVBDJpWtUn X5sXKyrwm1PSo/f5PVNSSpVpTQQDerBoRP35Jxomb6IzMC6a4ltLNPG195rDkjAVZ5e+VbmldKkaf ylKlmWmlLuc6kooABysQj61vJpTkjNAyG/J9fmb+DhdTU3c27ZibwBhvGVRD81fqvT/x5w3pXXltm +H9XjCJGLjkSKF0jKncnBBpQDK79BSgB7obmCeE2JkvE7BDl84jrJcpChbRnjDs8dgRCIg2kmvnWE Z9lCfJ6IpiBtjfgtDTKQOMT2vcOzlesEYzH5PsqqC3cbISLeKZYDZChQzb+BJXiIxlY2QID6hE8ga nBd4rJLuzul7Q3kmIRXA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tlpeG-000000085Vy-3I8b; Sat, 22 Feb 2025 13:34:28 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tlpeE-000000085V1-0L2I for linux-riscv@lists.infradead.org; Sat, 22 Feb 2025 13:34:27 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 1133A5C57CD; Sat, 22 Feb 2025 13:33:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 57328C4CEE7; Sat, 22 Feb 2025 13:34:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1740231264; bh=lsXh6HepfnMc+Q/WXCkVqPl5KJ3TC9cVI9pNgzO5tzA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=sn/XfAF1WWc6JLdoK1USOIIi2YFxmwVcR0+Af3DRone6dZk/0V4bBx8zRMRQpsMks 41CGA2uhlgg8XGLAVSx7Lw8JDgPSuZlo90lCvqJ5SK4l+mrzqQ07KMdm5HvD15Q8Lx aBV3Ybrlv7Yh9Stuad9/6j+2w1uT2AVWSyq1vpFQ4Svfpc4nGpVAnXzo6OxAoHns11 Jth+F6L9S/pKapR+INq9iVIWa2u6LqbelCKUtxp8ONzXxvLmJeWs+jpD5xT26699PQ P+5bYt4DPtsaPIOvkzWQ7Ic0Aov/HuNmyONWL0bjyY0imVnweyNL8whkeOs+QHRg4p L/UJNRqhU27lg== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 49CDAC021B8; Sat, 22 Feb 2025 13:34:24 +0000 (UTC) From: Maud Spierings via B4 Relay Date: Sat, 22 Feb 2025 14:34:16 +0100 Subject: [PATCH v2 2/2] riscv: dts: starfive: fml13v01: increase eMMC bus speed MIME-Version: 1.0 Message-Id: <20250222-fml13v01_emmc_speed-v2-2-3ffc5b1f5663@hotmail.com> References: <20250222-fml13v01_emmc_speed-v2-0-3ffc5b1f5663@hotmail.com> In-Reply-To: <20250222-fml13v01_emmc_speed-v2-0-3ffc5b1f5663@hotmail.com> To: Conor Dooley , Emil Renner Berthing , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti Cc: linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Maud Spierings X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1740231263; l=1059; i=maud_spierings@hotmail.com; s=20250222; h=from:subject:message-id; bh=6oKEZmpEgAskDT6drBgPswULe7sk6pmiFucVopPkPkQ=; b=HISq9mxkhULqrOz8w55mew/rcWCHUqglVyJ7IgxAcKmWD/2YQN766hisLl/aobRLIwGdeNfp3 sjHDAQxsHuyAQDKnhr3zIIoSHBveLa/iQIAvP6iCeHcVt98HumFzn2c X-Developer-Key: i=maud_spierings@hotmail.com; a=ed25519; pk=Z2m97WkDS9Sm3JnKpIpH4JwQtLm2Yw8oFCNw6uMBqb8= X-Endpoint-Received: by B4 Relay for maud_spierings@hotmail.com/20250222 with auth_id=346 X-Original-From: Maud Spierings X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250222_053426_183788_088F5163 X-CRM114-Status: UNSURE ( 7.83 ) 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: , Reply-To: maud_spierings@hotmail.com Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org From: Maud Spierings The assigned clock speed of 50 MHz is limitting this interface which is SDIO 5.0 capable. Sadly at 200MHz it fails to mount an eMMC drive, 150MHz (really 132 MHz) is the highest it was able to get. This improves the seq read/write performance by 2x~ Signed-off-by: Maud Spierings --- arch/riscv/boot/dts/starfive/jh7110-deepcomputing-fml13v01.dts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/riscv/boot/dts/starfive/jh7110-deepcomputing-fml13v01.dts b/arch/riscv/boot/dts/starfive/jh7110-deepcomputing-fml13v01.dts index 8d9ce8b69a71be78ca57618ae842c9f415648450..63b539bedd63d39dbe2096f85aaf70ba6ab64d29 100644 --- a/arch/riscv/boot/dts/starfive/jh7110-deepcomputing-fml13v01.dts +++ b/arch/riscv/boot/dts/starfive/jh7110-deepcomputing-fml13v01.dts @@ -11,6 +11,10 @@ / { compatible = "deepcomputing,fml13v01", "starfive,jh7110"; }; +&mmc0 { + assigned-clock-rates = <150000000>; +}; + &pcie1 { perst-gpios = <&sysgpio 21 GPIO_ACTIVE_LOW>; phys = <&pciephy1>;