From patchwork Fri Sep 22 06:28:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Qiu X-Patchwork-Id: 143211 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp5361970vqi; Thu, 21 Sep 2023 23:35:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGZ1QlXJY8/tz0jMiDHg9KzJpNaMu9XPufwsVXeE89Adh9XUNoToks8yoil3SsbLsRWRrNk X-Received: by 2002:a25:c54c:0:b0:d06:f0ab:e17b with SMTP id v73-20020a25c54c000000b00d06f0abe17bmr7724013ybe.55.1695364509077; Thu, 21 Sep 2023 23:35:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695364509; cv=none; d=google.com; s=arc-20160816; b=DkeexltVilmgRFMgEXC4jdkMNcyD3zvhXV2nmXCw/mLE5hnnLBNyaZ6S5gjxyJdNJr 8Rw90iODFYXUKnVBCDG3M9U+WD1MOWQ5XMKXtETTrUZogFrMa25L6rJd7bq0Le5CuTPF tC8xSLyJUp2ac3asg84dGFOjn40LjrT/LRoWOAVMYPDsu3PbnYneduhxUi3fS4q0gar5 7xxKGuAxTCCqndqIOHqMOoL4H1+DCMfIjsse6WlmZk4YFfUDKw581pi3OG87OtEBYVrw t6O3nchOVfeCKqXjs+oxgsqvkcWzUMfqt60pc86w62hKJ0Po0jOL7khYY7UMC+7OxDWb JwEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=UukG4SMPbjITMegeMip7fF+lWcPWTzqmoSwmqx7DLoE=; fh=kxe0WRziv7CVSpkNH/bNiH26639+950jD1JJwWX77uk=; b=cJ3qbMhXdGInC9E/ohwz5Z/bcPMGQB9y2lEfI0o3BrcEGLTJngXXM+Yzjonzu5KkOh ytJGwrlYGzLBSDbxo9DKQU0Kce8bvwFM7NPdnl3QJja4yt/GHfAf5LzSnMtMUeUT8J9/ EqH+3pkbVZ0xTX042X3BYEccpEOW0M+vjy8pV5/bxdJwAHtNsZbPw0OC8QIIauqhjIFu uChalDFWnjerldC1lhOLWbqtdrv6pZICnxFKKa3HGR5Krtzenzih9IWmyFMLiQjYnd9P ybiZZvDNzBLmfbyH/z02B8GgNJ1M7g7lzgqDhIxTwYKhFz7uXZAlyXN5FfRc9ImgHtIe QlZg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id z11-20020a6552cb000000b00578b8016c40si3045467pgp.93.2023.09.21.23.35.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 23:35:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 1E259802B172; Thu, 21 Sep 2023 23:28:54 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230009AbjIVG2w convert rfc822-to-8bit (ORCPT + 30 others); Fri, 22 Sep 2023 02:28:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229605AbjIVG2r (ORCPT ); Fri, 22 Sep 2023 02:28:47 -0400 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49761CE; Thu, 21 Sep 2023 23:28:41 -0700 (PDT) Received: from EXMBX165.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX165", Issuer "EXMBX165" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id BDC8324E289; Fri, 22 Sep 2023 14:28:38 +0800 (CST) Received: from EXMBX168.cuchost.com (172.16.6.78) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 22 Sep 2023 14:28:39 +0800 Received: from williamqiu-virtual-machine.starfivetech.com (171.223.208.138) by EXMBX168.cuchost.com (172.16.6.78) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 22 Sep 2023 14:28:37 +0800 From: William Qiu To: , , , CC: Emil Renner Berthing , Rob Herring , Jaehoon Chung , Ulf Hansson , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , "Palmer Dabbelt" , Albert Ou , William Qiu Subject: [PATCH v3 3/3] riscv: dts: starfive: add assigned-clock* to limit frquency Date: Fri, 22 Sep 2023 14:28:34 +0800 Message-ID: <20230922062834.39212-4-william.qiu@starfivetech.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230922062834.39212-1-william.qiu@starfivetech.com> References: <20230922062834.39212-1-william.qiu@starfivetech.com> MIME-Version: 1.0 X-Originating-IP: [171.223.208.138] X-ClientProxiedBy: EXCAS062.cuchost.com (172.16.6.22) To EXMBX168.cuchost.com (172.16.6.78) X-YovoleRuleAgent: yovoleflag X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Thu, 21 Sep 2023 23:28:54 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777718535152748544 X-GMAIL-MSGID: 1777718535152748544 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 --- .../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 d79f94432b27..d1f2ec308bca 100644 --- a/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi @@ -205,6 +205,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; @@ -221,6 +223,8 @@ &mmc0 { &mmc1 { max-frequency = <100000000>; + assigned-clocks = <&syscrg JH7110_SYSCLK_SDIO1_SDCARD>; + assigned-clock-rates = <50000000>; bus-width = <4>; no-sdio; no-mmc;