Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp336406rwl; Tue, 11 Apr 2023 19:38:11 -0700 (PDT) X-Google-Smtp-Source: AKy350bTvakxbnV1W8MvU54Gr5i8+IqkMQFstdgldkE4sGmp8w0AUlK4XwVq0kXKvz/BkYowvF7Q X-Received: by 2002:a17:907:3f81:b0:93b:62f:82a3 with SMTP id hr1-20020a1709073f8100b0093b062f82a3mr16287479ejc.6.1681267090658; Tue, 11 Apr 2023 19:38:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681267090; cv=none; d=google.com; s=arc-20160816; b=oj26x3Jk4CAgJ/fQ71hVhicIozIusziYDZt8K6dzbARHEPzbR8Cq+x0fB/Er1+tKbY W+uQzAU4mTr710ZV69i0W4AwxCmjVT8+WyrcqzdW2o3OpTjW5avSJ1tz39dffBdhabB8 LEttzY2jYp9HgWKyMaNf/3yxg9K7wYuPHHNMHv+nJzG27VsCOerlmPYnbEgcDRo1X8Mz xMyCfVy5FVVnJqYZOMLSDtUWbaRHHtjRR0FuPN3RvC0QZdUTNYc+ffCp6hSy3rD9Av0O GMD/EOuAh8HIJwScfHySW3jTADSEKW+yUNag0wQT2+yfBN5qvc3ctAxjuUYa22OcJ9zn nJ8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=NrrCBjjhfMg0vfgWGf46byAkX2uASru6IGYRy6N/T9s=; b=MTDkxt8bxvnf+GViJnHAtgzutaBazmEw//MlmuuGOWK/0AHEQIAPD5B4TlZ1iFpOaJ Qy/L5FDTJK1ybfeAjSTv7vOc1THC7Yr09iKzHEWMB4uUQ6Z0MTrvzOLbAGZw1SXWrJBe n6QXqgUL6TpAYMyIxBkXJfgYwes6wcE+GpC/dTKIy2zilkLAsapDjatu2Cnk4aZ6HSDv 2tOt71+rfSU4Z7+mrzrkcB/cCjATJm89z8v1gokJYQiwj6tIWnyjoMI/lJ0EQp2SfMgM m+zMzJgP+kK3M5G07FRH4jOs2gMDcO8KI5q11SlPavniOohzks1WHLLV7DV5PZkQklCI jojQ== 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 qt2-20020a170906ece200b00947ab463d2dsi2008706ejb.674.2023.04.11.19.37.46; Tue, 11 Apr 2023 19:38:10 -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 S229616AbjDLCgD (ORCPT + 99 others); Tue, 11 Apr 2023 22:36:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229503AbjDLCgC (ORCPT ); Tue, 11 Apr 2023 22:36:02 -0400 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08B14172B; Tue, 11 Apr 2023 19:36:01 -0700 (PDT) Received: from EXMBX166.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX166", Issuer "EXMBX166" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id F112324E201; Wed, 12 Apr 2023 10:35:53 +0800 (CST) Received: from EXMBX067.cuchost.com (172.16.6.67) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Wed, 12 Apr 2023 10:35:53 +0800 Received: from [192.168.125.89] (113.72.145.176) by EXMBX067.cuchost.com (172.16.6.67) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Wed, 12 Apr 2023 10:35:53 +0800 Message-ID: <2f5b4e94-0476-83df-0b18-a6b2ba1ea896@starfivetech.com> Date: Wed, 12 Apr 2023 10:35:52 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: [PATCH v1 3/3] riscv: dts: starfive: Add cpu scaling for JH7110 SoC Content-Language: en-US To: Conor Dooley CC: "Rafael J. Wysocki" , Viresh Kumar , Emil Renner Berthing , "Rob Herring" , Krzysztof Kozlowski , Conor Dooley , "Paul Walmsley" , Palmer Dabbelt , Albert Ou , Shengyu Qu , , , , References: <20230411083257.16155-1-mason.huo@starfivetech.com> <20230411083257.16155-4-mason.huo@starfivetech.com> <20230411-darling-chump-faaf8dec29ef@wendy> From: Mason Huo In-Reply-To: <20230411-darling-chump-faaf8dec29ef@wendy> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [113.72.145.176] X-ClientProxiedBy: EXCAS066.cuchost.com (172.16.6.26) To EXMBX067.cuchost.com (172.16.6.67) X-YovoleRuleAgent: yovoleflag X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,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 On 2023/4/11 17:06, Conor Dooley wrote: > Hey Mason, > > On Tue, Apr 11, 2023 at 04:32:57PM +0800, Mason Huo wrote: >> Add the operating-points-v2 to support cpu scaling >> on StarFive JH7110 SoC. > > (btw, there's no need to wrap commit messages at 52 columns, you have > 72 to work with) > Hi Conor, Thanks for your review. Will place it in the same line. >> It supports up to 4 cpu frequency loads. >> >> Signed-off-by: Mason Huo >> --- >> .../jh7110-starfive-visionfive-2.dtsi | 25 +++++++++++++++++++ >> arch/riscv/boot/dts/starfive/jh7110.dtsi | 25 +++++++++++++++++++ >> 2 files changed, 50 insertions(+) >> >> 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 df582bddae4b..ae446b268e78 100644 >> --- a/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi >> +++ b/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi >> @@ -228,3 +228,28 @@ &uart0 { >> pinctrl-0 = <&uart0_pins>; >> status = "okay"; >> }; >> + >> +&U74_1 { >> + clocks = <&syscrg JH7110_SYSCLK_CPU_CORE>; >> + clock-names = "cpu"; >> + cpu-supply = <®_dcdc2>; >> +}; >> + >> +&U74_2 { >> + clocks = <&syscrg JH7110_SYSCLK_CPU_CORE>; >> + clock-names = "cpu"; >> + cpu-supply = <®_dcdc2>; >> +}; >> + >> +&U74_3 { >> + clocks = <&syscrg JH7110_SYSCLK_CPU_CORE>; >> + clock-names = "cpu"; >> + cpu-supply = <®_dcdc2>; >> +}; >> + >> +&U74_4 { >> + clocks = <&syscrg JH7110_SYSCLK_CPU_CORE>; > ^^ > There's a double space in each of these. > >> + clock-names = "cpu"; >> + cpu-supply = <®_dcdc2>; >> +}; > > How come these two clock properties are being added in .dtsi? > Should they not be in .dtsi? >> Thanks, > Conor. Yes, will move them to .dtsi Thanks Mason