Received: by 2002:a05:7412:1703:b0:e2:908c:2ebd with SMTP id dm3csp3980378rdb; Wed, 30 Aug 2023 11:37:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFLYRuBT/PBrO4QAeJ4dyEMGEbm01I1Vtsp7S9MvWlvJDCmPi79NIjeAGN0SgoCuAq/7oKy X-Received: by 2002:a05:6a00:158a:b0:68b:dbad:7ae0 with SMTP id u10-20020a056a00158a00b0068bdbad7ae0mr3776485pfk.21.1693420650685; Wed, 30 Aug 2023 11:37:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693420650; cv=none; d=google.com; s=arc-20160816; b=IfoYki0HPLuYTv55BUnWi82ft1I7goQTfk11RCOUSS+IaYQ3nVCgv2QjyUPbHm0JrD wRpV8nm8xMnm6cdXaqm08Y+SfIN0JBep8QShdghAtzRb3PpyEySxdr+YCpSvMbowJTQj hiP2i50+IR1Ih8X20FCMVw0FcGGPC+10b2c0jaHwy47UHWzujQla3tLhQ2KKVmKwLGxb OEXyHVSAvSIWduStmVPHnyjnhsGgPm7f9TYqHaNXfiPAXocB2Lrr8Q3WNx0nXSC1w1ee aDDoQqefhyLOXIW3D6lYrZXvVA/uEPq8v5+n+r2SyK39gMGJnuVLsM8pN2dgnZAaMhp7 alWQ== 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=bZkXtjMqlwg6V+oqeSuu1MnRGgrhgdDUpu7CByUDEjtyXrKfExXgl49f/cnwClaujQ zlv0UN5OEiYbSL561DRIB2U/yvyHAVF3JfcFDQmz8VnuS4AXNGMsXK2Id4Nr4Belr/Oo MGNBdxqzfzWoNVJaPlpMw0V45d/wqmpXJ7tNi6ZT7hwVZ1CrwqbQvsnhBoLLZmgdxqh6 cEDCbOPFhTQ4i6IgAQb2Qhx2BuUoYpHuMSkp/wKChNLTgA76YdAUz2/5IfoEYj2/WmIP mZv5ZTroVGtV7kAKXtJ36cGvAPVlqE3DNkV+g4dwvxRPPBsawauzXO8/SUXjT0nAtQJV gHrQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w5-20020a63fb45000000b005697ed9a479si2859396pgj.73.2023.08.30.11.37.10; Wed, 30 Aug 2023 11:37:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241885AbjH3DTd convert rfc822-to-8bit (ORCPT + 99 others); Tue, 29 Aug 2023 23:19:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238759AbjH3DSz (ORCPT ); Tue, 29 Aug 2023 23:18:55 -0400 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D009CC9; Tue, 29 Aug 2023 20:18:51 -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 2229980C5; Wed, 30 Aug 2023 11:18:50 +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; Wed, 30 Aug 2023 11:18:49 +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; Wed, 30 Aug 2023 11:18:49 +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 v1 3/3] riscv: dts: starfive: Drop unused properties and limit frquency Date: Wed, 30 Aug 2023 11:18:46 +0800 Message-ID: <20230830031846.127957-4-william.qiu@starfivetech.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230830031846.127957-1-william.qiu@starfivetech.com> References: <20230830031846.127957-1-william.qiu@starfivetech.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [171.223.208.138] X-ClientProxiedBy: EXCAS064.cuchost.com (172.16.6.24) 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,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,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 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