From patchwork Mon Sep 16 03:46:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: WangYuli X-Patchwork-Id: 13804996 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 65CB0C3ABCB for ; Mon, 16 Sep 2024 03:47:44 +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: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:In-Reply-To:References: List-Owner; bh=AqPzOFch5xhSayeEepUMmuAyhIp8qNZiw+K0xO4KpJo=; b=sVg3CxBN4HoToA xTPFZRqB7TMenSZr1MWJYA8CuUF9N6DomwVbsqxHWquGxzTdOQ0Y1YrfRZfn4tCNMm1aTfrHbZOb+ KrsZLDH9glAq5JyXiAOZlW9wJFTdo+OlcCwRb8E1pqx35d7Iv/XxiRXfD6uWOlqQxSLyOMNZHexY5 8YFI5W4s0mXXNoDR83sPmXzpFbIfFo4xlcJJm4/yCOzHqG6xNO6oPB0NsmMLLhz4YiScGwaikWS/U 52/aCorF25kfa5cl1bR7eMcwg4os/gI0/RgHxrS7dohDuceahLuaSb7YYCBuh7L6zR1jOt4WrG7jP qo47CWk5Y1oJsTByMOKg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sq2i7-00000003106-1Zfd; Mon, 16 Sep 2024 03:47:35 +0000 Received: from smtpbgsg1.qq.com ([54.254.200.92]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sq2i4-000000030zT-09xp for linux-riscv@lists.infradead.org; Mon, 16 Sep 2024 03:47:34 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uniontech.com; s=onoh2408; t=1726458371; bh=oS1UTktNh75XFPJPLOQ/Ru4zh7JkPk8tpfPT4RroVJo=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=eX8V94gdtq8CnoLTIYqFP2hzm20otdH3ADdmSg91vWQHeydI4gHJa4CyGPn0KkMem KZkDIzSprJu37FPgAKE7YrDNIJxGo5ArbROexHXKHsZ91Nyu1vGdNlnbxYvHSETZEN KyEUrPXPpNkp8bTy5PboIshDUB8d+q5G+LmjTsoA= X-QQ-mid: bizesmtpip4t1726458367tzuj61x X-QQ-Originating-IP: XyfFy0cPrBc6K6VxWKwtPQjgg4hHB8d4W0JC00QuX90= Received: from avenger-OMEN-by-HP-Gaming-Lapto ( [localhost]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 16 Sep 2024 11:46:05 +0800 (CST) X-QQ-SSF: 0000000000000000000000000000000 X-QQ-GoodBg: 1 X-BIZMAIL-ID: 14372591705973062368 From: WangYuli To: stable@vger.kernel.org, gregkh@linuxfoundation.org, sashal@kernel.org, william.qiu@starfivetech.com, emil.renner.berthing@canonical.com, conor.dooley@microchip.com, wangyuli@uniontech.com Cc: kernel@esmil.dk, conor@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 6.6 v3] riscv: dts: starfive: add assigned-clock* to limit frquency Date: Mon, 16 Sep 2024 11:46:02 +0800 Message-ID: <247345579659D8F7+20240916034603.59120-1-wangyuli@uniontech.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtpip:uniontech.com:qybglogicsvrgz:qybglogicsvrgz8a-1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240915_204732_458192_51E36258 X-CRM114-Status: UNSURE ( 7.02 ) 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: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org From: William Qiu [ Upstream commit af571133f7ae028ec9b5fdab78f483af13bf28d3 ] In JH7110 SoC, we need to go by-pass mode, so we need add the assigned-clock* properties to limit clock frquency. Signed-off-by: William Qiu Reviewed-by: Emil Renner Berthing Signed-off-by: Conor Dooley Signed-off-by: WangYuli --- .../riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi b/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi index 062b97c6e7df..4874e3bb42ab 100644 --- a/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi @@ -204,6 +204,8 @@ &i2c6 { &mmc0 { max-frequency = <100000000>; + assigned-clocks = <&syscrg JH7110_SYSCLK_SDIO0_SDCARD>; + assigned-clock-rates = <50000000>; bus-width = <8>; cap-mmc-highspeed; mmc-ddr-1_8v; @@ -220,6 +222,8 @@ &mmc0 { &mmc1 { max-frequency = <100000000>; + assigned-clocks = <&syscrg JH7110_SYSCLK_SDIO1_SDCARD>; + assigned-clock-rates = <50000000>; bus-width = <4>; no-sdio; no-mmc;