Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2502568rdb; Thu, 21 Sep 2023 23:44:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEh+NoPNk4Sa0U1OfgKYo4a1I9+GKNp9QBtgtkAufgm8xRg2JEmLNnRdl25iDiT5PyoXp6L X-Received: by 2002:a17:903:244f:b0:1c4:375c:110a with SMTP id l15-20020a170903244f00b001c4375c110amr9611094pls.19.1695365071375; Thu, 21 Sep 2023 23:44:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695365071; cv=none; d=google.com; s=arc-20160816; b=zxqu17vBv1SKsGJjuAAji1F1uXY3JH/vNLiaMltS6spWfDKXVeWNO5s8m/ytY1so0c 9mBoLV64duRN56+Q+npa0qz62HQz4g/cfApFHn3j3sxd9R4SqIFCOYGvGbmkIK/pplcO lr2qi1h9GvPqSs1f2J6XAX4cNNTM8xtSiXvzsaiIfXKgXbjnUDLANm/HnYvKJK5BIcnF asR7JI7lvgBYA5VdWHhiboSlJErkoGmxWv9iQfcsZanetWBTAfuh8QSEwGhupVNn3IV3 OxgdeaNMBK0mGMTZZ+cInkU2C1f78QaZcLADSxfbKFQjyRhH8i+kqw6nsrvTAqfQRC6m YZ9Q== 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:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id o13-20020a170903210d00b001c3976e22f5si3069971ple.515.2023.09.21.23.44.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 23:44:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 2DDB68371DDD; Thu, 21 Sep 2023 23:28:49 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229921AbjIVG2v convert rfc822-to-8bit (ORCPT + 99 others); Fri, 22 Sep 2023 02:28:51 -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 Content-Type: text/plain 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 Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Thu, 21 Sep 2023 23:28:49 -0700 (PDT) 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 --- .../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; -- 2.34.1