Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2433318rdb; Tue, 12 Sep 2023 01:23:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHwsR/N0jCWKLbpyclttrDKqvR/QDiUO/Z0pSHFOxqjF0CtcOvtuYUfEUgqGChzZ7C7EzHX X-Received: by 2002:a05:6358:52d4:b0:134:c785:5932 with SMTP id z20-20020a05635852d400b00134c7855932mr13733305rwz.32.1694507011185; Tue, 12 Sep 2023 01:23:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694507011; cv=none; d=google.com; s=arc-20160816; b=KOcg7w81abyUK6Mr6xYAj9QOsl84SplA3HH7DdJECC0ZAMeXOX6IqbMAsHkxgBZNtd WMhWaeVaxg2sOQpg+u15KNjcuuUeCDRJiajbNmbxsjSN/Gl8vz3HgdzBmJa14Jk4m6UJ Qt9x+gFag0AALUGkGUO5ZxpEXzpsD2air590/n7vEfYspNtu2YpdVarUj9YU0TvcTWET HF6Tz0lzSJnxQvxys1XVt2XzM5Y21dV13RVd2bx0qk/FrWEuw9SZ2oInSdr7idMKfNa/ 7i0Sxt065a/O1EqVfFEvKVwjctpr8c9aowLEzpYG4bY6CoHqNHrtd8BvADrFaI9l3diw n/iA== 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=gy2/hOlBxUPIppYFBOD/7oblS3i5kgWgrVLfxPHejrUgPZVDI20XfAiL/CUr6okR3+ 5iM/RAJsdacJjIN4BjFg7RFkGOL+YlOjunApoOOZiHeJunUNnQcN+7tzMkgEtSeQgX4w yKBGelB02eNq/9NUYIawa9Zr1l/3Gz2nMgomkrp4QVNAsSRCIjWR/1EKvqUy4yN6fQPx r+VozhbemIgMhfMEymXGyLqSQpEWJN7HCyuTwg1tt7/COKPc7ggKz3NjPkYf+kgb/odk khpBOt9CVy+rQKkXeFSOqGgDBNu46VNywmTlKUPVFQ+nd834mZ7YpU0tXaq8Q3+jjF2M EaNg== 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:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id j10-20020a056a00234a00b0068fb5ca50cdsi4563688pfj.126.2023.09.12.01.23.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 01:23:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 B3BFD869EAF0; Tue, 12 Sep 2023 01:14:31 -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 S232439AbjILIO1 convert rfc822-to-8bit (ORCPT + 99 others); Tue, 12 Sep 2023 04:14:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232347AbjILIOP (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 CD55010C4; Tue, 12 Sep 2023 01:14:11 -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 26AE4807D; Tue, 12 Sep 2023 16:14:05 +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:05 +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:04 +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 3/3] riscv: dts: starfive: Drop unused properties and limit frquency Date: Tue, 12 Sep 2023 16:13:58 +0800 Message-ID: <20230912081402.51477-3-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:31 -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