Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2432940rdb; Tue, 12 Sep 2023 01:22:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFJ9qCINkUg4EV7FliV7sFXFvIoT1Qxq1XKj+TaQnRyD4RY9qn9Lw0ctMec83z7/q4j8CY6 X-Received: by 2002:a05:6a20:4327:b0:12e:cbce:444a with SMTP id h39-20020a056a20432700b0012ecbce444amr11125556pzk.37.1694506946432; Tue, 12 Sep 2023 01:22:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694506946; cv=none; d=google.com; s=arc-20160816; b=zSKM/gn9Qk8IwVFth5dcEXfOJPd3l8mz14XX2XRkTNRhzgyx90I3tHH3BqrsaW4blD gkdWcLd1pjbj5DTjCaibqp//ckPKIahTgX8vy3BSe2UlJeyd+Nv3hzQzP59r6gXMOUxm +bIRTIe+Xof118HJKQLjoZmZl6+pPYb1hUOAzddpUBvcybFB2DMqGzBtdhLaZJCBPkvu zZJEPq7wUwRxl0ooTc5MkpaE8biN+QRuChZcyXAnZdoc/O25wiZgm2Knhr4r5lyeCTBn dirPiN5iCsbjobj2yY48YGMnQBsO2mhyHyHkwNNCTnq8UFZ3D7nywMc2UF2uh/hAN/M/ G2Gg== 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 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id eb10-20020a056a004c8a00b0068fb75d68dcsi4319453pfb.206.2023.09.12.01.22.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 01:22:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (Postfix) with ESMTP id 02567869EAEC; Tue, 12 Sep 2023 01:14:27 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232457AbjILIOV convert rfc822-to-8bit (ORCPT + 99 others); Tue, 12 Sep 2023 04:14:21 -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 Content-Type: text/plain 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 Content-Transfer-Encoding: 8BIT 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 (howler.vger.email [0.0.0.0]); Tue, 12 Sep 2023 01:14:27 -0700 (PDT) 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"; }; -- 2.34.1