Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2635012rdb; Tue, 12 Sep 2023 07:48:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH1uLmhDFWRsCIylBjTsdamRpnKC90ssTdkvo4SBxfLrMQKYxVdf9uFdO96dFLW63ZLjxN/ X-Received: by 2002:a05:6a21:778b:b0:14d:7130:ce5f with SMTP id bd11-20020a056a21778b00b0014d7130ce5fmr12093300pzc.32.1694530138845; Tue, 12 Sep 2023 07:48:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694530138; cv=none; d=google.com; s=arc-20160816; b=NG/IMyMff+BYg0XX+DvjiV3ydtpsDV7HLFvBSQaHoZkdVgWrQiWu+QZOKtWz+wwwfS Jr1JzfLTFkoYEtIw5r3tbZE+lbbIRLEJPgsyIaH43XsaYH2rEnmQ399v3yM+yebn2Ps3 qWKOT+wiuK8zVdsElbDdDqeG+Ftgvv6PcOURjIaXoj4TXmRLSFLkDkXvxaApPixzDTDZ QQCePFB3mU4vkJlu25Y8BO3LUuo9WslBWiLZw4XASqdltQwFSU3J8FSCk2kaguzdHMfB xnKrvudz1QEM7Rx7rBieorbjgCKsTlfZo0Tg8da3BYD5BH4H3B0LejaogSw6gxSJGqfO V6Ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:mime-version :references:in-reply-to:from:dkim-signature; bh=5Lxiti3504/sLyp6T4S9ryQpCZcLlVdHH9n53WPzN64=; fh=CFfXwBWlpeevCxbArWaZ8E2o1MkiLWbUetXezsnyzSs=; b=M36GWV6LP/96RUMHJGmPVUM93GFji/ka3j+Qg8+CRJiw/Jinhi73zi/iupUjz5U6kB DSTCojJvuyy0NF6cddkzo1nSjj4Lxx9leiyKD71GpqLNzuXJunAX/fQMbdaaIZS5Xrxq hwy94pPqt70qSauhe/mTczDfDfNzC+HUmGYnqf5tjnj10ksnwzdPAcRBj+glXhYibyzD 1VPPTicPB2HQ3Sbrj0HESixInqySpbuHSv0duPcTb/qSxVbiMaQahzJFJlNYiEbygKmx AHzVrLLqxYTmSoAFOEfX3klMiVARCfEOSetwhKERIR/yBcZ05fm3m8UqIR35owdMrZP9 Pa2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b="JR2/VTNm"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id r22-20020aa79636000000b0068fc151fdd5si3836857pfg.177.2023.09.12.07.48.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 07:48:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b="JR2/VTNm"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id AAAAD81CE87C; Tue, 12 Sep 2023 06:23:54 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232588AbjILNXs (ORCPT + 99 others); Tue, 12 Sep 2023 09:23:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232209AbjILNXr (ORCPT ); Tue, 12 Sep 2023 09:23:47 -0400 Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 76C0310CE for ; Tue, 12 Sep 2023 06:23:43 -0700 (PDT) Received: from mail-oi1-f200.google.com (mail-oi1-f200.google.com [209.85.167.200]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 389363F131 for ; Tue, 12 Sep 2023 13:23:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1694525022; bh=5Lxiti3504/sLyp6T4S9ryQpCZcLlVdHH9n53WPzN64=; h=From:In-Reply-To:References:Mime-Version:Date:Message-ID:Subject: To:Cc:Content-Type; b=JR2/VTNmKqgZr3X+J+U7tyaP2bK4NiL8N9otbebnPBmVTvb+pB4BN8jgdsx2EG58S ozBerDRenqkMxJbJxlBE7QsfSFr6Yv3iwaN+E6rmDY94F0NylGyl5OJzDb+YJKWEw+ 7qPWuPUIM7KYij4XTnpjrTgMkH1O64+XuATZmsfLEtBd7xhoEHC//d/wR7EPHNh3pc 5UAj1t28oYs1pEV4YUfeT+CArRMdobOBRTH3nqYlA4xO0LmhHoZMMZse4cMDnWt5CP Yp/PmmEFoxCB8m0rWw2XqXceoFGRfesmXDBPIwYkITZnsOCUyYwSZi9PFDdDhqG+jd dZ6oT2urTPIjg== Received: by mail-oi1-f200.google.com with SMTP id 5614622812f47-3a78c2cdd77so6141117b6e.1 for ; Tue, 12 Sep 2023 06:23:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694525021; x=1695129821; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=5Lxiti3504/sLyp6T4S9ryQpCZcLlVdHH9n53WPzN64=; b=Su9Cg2USIXPM3fONVGaiExus33g83rWDrWEmffbVa0KM0ueXF5QygAKkZF9jSBzH1X 86V4RbUw8uRp3hp6PLKZuau9U4yJSrW7vBEdqQcFGPblB+U9vXun0dVh1TLuAtS9kL9s +CHwmlLAB1waYFnlOxaJPG+sZYgPYSEk5SEqjT+rNdjD1AQJSKgPrONewsqippzS8ly6 s4kGB29fgUjmLHQT0vGNhiszZm+/1wyDktLsh2+eyAfq3aighJPQYDYf0TK13qPVGcrm cvnzfj+y4uS+FAp+xQ4m8CgsfIh1kx++c0zfKJZfmIUPRi6I/JBLxIuogeTYWpXZUiRg k1LQ== X-Gm-Message-State: AOJu0YyhejIKyfJ9E4HQMW6Aqiu68R9+wP/1dzev/WqzqUiu6ZutXaV+ 1ctb6HPBXO8RSWzpg7TbMsgGwrN8OcexR9S1V7tHO/MpKW2knUez3Iq0+e/qneAD+a7A/ZqHkOb fcRv8zDVjYqtGlumQbFU1g+BX2NIgLvdHevx/bNZ38u7xaF+H54WkwHUdBA== X-Received: by 2002:a05:6808:2394:b0:3a7:72e8:2728 with SMTP id bp20-20020a056808239400b003a772e82728mr16500929oib.36.1694525021081; Tue, 12 Sep 2023 06:23:41 -0700 (PDT) X-Received: by 2002:a05:6808:2394:b0:3a7:72e8:2728 with SMTP id bp20-20020a056808239400b003a772e82728mr16500907oib.36.1694525020862; Tue, 12 Sep 2023 06:23:40 -0700 (PDT) Received: from 348282803490 named unknown by gmailapi.google.com with HTTPREST; Tue, 12 Sep 2023 06:23:40 -0700 From: Emil Renner Berthing In-Reply-To: <20230912081402.51477-7-william.qiu@starfivetech.com> References: <20230912081402.51477-1-william.qiu@starfivetech.com> <20230912081402.51477-7-william.qiu@starfivetech.com> Mime-Version: 1.0 Date: Tue, 12 Sep 2023 06:23:40 -0700 Message-ID: Subject: Re: [PATCH v2 3/3] riscv: dts: starfive: Drop unused properties and limit frquency To: William Qiu , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-mmc@vger.kernel.org Cc: Emil Renner Berthing , Rob Herring , Jaehoon Chung , Ulf Hansson , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou Content-Type: text/plain; charset="UTF-8" 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 (pete.vger.email [0.0.0.0]); Tue, 12 Sep 2023 06:23:54 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 pete.vger.email William Qiu wrote: > Drop unused properties and limit cclk_in to 50M, thus cancelling the > internal frequency and adopting the by-pass mode. That's two unrelated changes which should really be in different patches. But again the hardware still has the relevant field in the syscon registers even if the driver doesn't use it, so maybe just leave them and just keep this patch adding the assigned-clock* properties. /Emil > > 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 > > > _______________________________________________ > linux-riscv mailing list > linux-riscv@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-riscv