From patchwork Tue Sep 12 08:14:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Qiu X-Patchwork-Id: 138025 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9ecd:0:b0:3f2:4152:657d with SMTP id t13csp256904vqx; Tue, 12 Sep 2023 01:26:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGcAKsx6Lu30bAK1e8wnlsYLfv481CKNnpIBL7UHjC0C/n0ZYGnQCLDBVXhb7E3V3Wpz034 X-Received: by 2002:a05:6358:1a93:b0:140:e77f:d2d7 with SMTP id gm19-20020a0563581a9300b00140e77fd2d7mr9992265rwb.6.1694507183119; Tue, 12 Sep 2023 01:26:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694507183; cv=none; d=google.com; s=arc-20160816; b=Uh0lGigfRb3yCh9Eojj2Z6DPLwWCmQ7AxzW2gWqnIkDJdUSkbrMbuQgYmcKZ3VlntN jW+vrKRUmJl1pb1AGXkXY1F8nn1MpHYFv2fDsYLccTvP6mfZJNMXkyAUe6PJXRVp9it9 JCynqnkNxcr0ogDVqbp/csMCTm+TWd9GleCBYc9Rveh0299CKKwwh/EENSNMqESDm2nb QhvAqo6KOD9+YCFp+BeFQdpJ1V/lOjHizamgxbpueUcC2eZ3jqMhI5RhRj4v4dkmHJw8 +jr4KbisJtQ8Acw4Ws2rMdDfrhsGkUO3AmSb6HbPZyczm9igmsYrTB5s1VkC5HyTgwCk 5Cig== 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=YbEygBF0EWlIQSf4BXhD5yU13T7Y0DcySJ7Cd7Ww6hg=; fh=kxe0WRziv7CVSpkNH/bNiH26639+950jD1JJwWX77uk=; b=JcXBr4ut2tucwphWA0V0TVVTk+g+I6QUacMuC6cajLD0LWdXsIWSDpcbtCtrRJWQYN Gokr1yo9nOZwbu7Wp4yS1ipUdBkIWTYyn0Tayn9/gMgXKXvrgMJnBMNIFFOPd8HSgcbu CdUo1J1sXYOHlnXbMeWz/UUVgB9/3xIhY4QCJOjiSicbiDob4ixSUsJHugmyDUaR7QNf VB2iPrdl54rclXD/hFXNr41ZftjuMX9a7sgUyZAwq2ZQJC+1jCUfS6QqdBjcvkqfdKt8 Szdm+iL+3JU+46RDGi3YZI4o+hp6awPygcubSxi+LQLQEmfRwlcx73LFPqdQ8UpAA2CS bGdw== 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:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id s200-20020a632cd1000000b0056679c8e70csi7305119pgs.272.2023.09.12.01.26.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 01:26:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id 61F4F81DF76F; Tue, 12 Sep 2023 01:14:33 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232488AbjILIOW convert rfc822-to-8bit (ORCPT + 38 others); Tue, 12 Sep 2023 04:14:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232193AbjILIOP (ORCPT ); Tue, 12 Sep 2023 04:14:15 -0400 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21E1410C8; Tue, 12 Sep 2023 01:14:10 -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 fd01.gateway.ufhost.com (Postfix) with ESMTP id 3AADF80CF; Tue, 12 Sep 2023 16:14:08 +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; Tue, 12 Sep 2023 16:14:08 +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; Tue, 12 Sep 2023 16:14:07 +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 v2 3/3] riscv: dts: starfive: Drop unused properties and limit frquency Date: Tue, 12 Sep 2023 16:14:02 +0800 Message-ID: <20230912081402.51477-7-william.qiu@starfivetech.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230912081402.51477-1-william.qiu@starfivetech.com> References: <20230912081402.51477-1-william.qiu@starfivetech.com> MIME-Version: 1.0 X-Originating-IP: [171.223.208.138] X-ClientProxiedBy: EXCAS066.cuchost.com (172.16.6.26) To EXMBX168.cuchost.com (172.16.6.78) X-YovoleRuleAgent: yovoleflag 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 (fry.vger.email [0.0.0.0]); Tue, 12 Sep 2023 01:14:33 -0700 (PDT) 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 fry.vger.email X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776819377237261289 X-GMAIL-MSGID: 1776819563502107768 Drop unused properties and limit cclk_in to 50M, thus cancelling the internal frequency and adopting the by-pass mode. Signed-off-by: William Qiu --- .../riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi | 4 ++++ arch/riscv/boot/dts/starfive/jh7110.dtsi | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-) 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; diff --git a/arch/riscv/boot/dts/starfive/jh7110.dtsi b/arch/riscv/boot/dts/starfive/jh7110.dtsi index e85464c328d0..7b8e841aeef8 100644 --- a/arch/riscv/boot/dts/starfive/jh7110.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7110.dtsi @@ -870,7 +870,6 @@ mmc0: mmc@16010000 { fifo-depth = <32>; fifo-watermark-aligned; data-addr = <0>; - starfive,sysreg = <&sys_syscon 0x14 0x1a 0x7c000000>; status = "disabled"; }; @@ -886,7 +885,6 @@ mmc1: mmc@16020000 { fifo-depth = <32>; fifo-watermark-aligned; data-addr = <0>; - starfive,sysreg = <&sys_syscon 0x9c 0x1 0x3e>; status = "disabled"; };