Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp421730lqh; Tue, 7 May 2024 03:25:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX15OWcvqY27q+9l8ikMRE5YPSSHeEKB3n/UD7lQM4Dy+/kPsLb7me0s7wIM1nwFfRglOcKbRPoxCfZZhISVFmoTDCw3MW7NFyKai1L/A== X-Google-Smtp-Source: AGHT+IEre+MNd+0Cztw6XdyvQT5dSoq6WBdbYU9Y4lvlDeaKI8SjdZLvI5dVERoC5MwyHfxKedby X-Received: by 2002:a17:902:fc4e:b0:1eb:7ba:a4ba with SMTP id me14-20020a170902fc4e00b001eb07baa4bamr14199253plb.45.1715077539830; Tue, 07 May 2024 03:25:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715077539; cv=pass; d=google.com; s=arc-20160816; b=c85JuIHeqlUs3MYo8x9cIgkfmMgw+eBnKYhfh4fKleJkmJnZ4XyjdadXgjg+ZwOQcv /5WM4FpYBOghcsocofbEKNbObkPHSiAKEYe1xtNQuzOwfGNFiLmqUP2l0b+fSJAVNQUv CTZMrDXLzCAFnL85heIdfjWP5j8HUegJEx8d1E8MobZF1WueEDRqZ7D3/JhdmKrE4xsv 1Lqk2StmRyIy9VyMAxu2UkMcg8tIs+X+nb24YHxc0NPGO5yRrQ4qmqXml2dtHD75zpaC aTrnPvgnlR7xdpOusAuQ1MvULGIi3QSBZ8PPC/NF8SF+S2BQwwCsfXfuuD5j7tNkk64o ksAA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:from :dkim-signature; bh=397X4zZ5qk6cmfxvJ66g5Oe/KXHQi7SbJr6mL/vXFTk=; fh=L6CWdDLVaHVwqpZerLlQxAgv2zHiebNtyI/BLolgLDE=; b=NMwmsAKLgJVkS3146lQq5OKQNo2n1BScEWfJsIGw7EWGTyvAY5pMEOEx1vmW/hTejO KHwSobWzQ9nRaiGDtjjV7JI0WvrORmB/2kIoOr7WUesTTiPlkXyNX3ZoYKKqlp4wV9Sy NRtJ/zAMCknGh6XlIaG2apgUVXMXxA68dibsXQhVhB9hNpU/OmLnA6oHW0trzvZwViw3 4L+UCXp3dxRL/7gjYe6mI0UnoTwfmg8zdF9JLKQwm0WclBwmGJ88OOCNKY6l9Gw0BAM0 eLf+U/ROkLAx8703IwjeFBFUGJx23lZXgik5cC6ullXZa8rtkeazRTPUmEYhnyZau4+K iLlg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=ronazVYD; arc=pass (i=1 spf=pass spfdomain=canonical.com dkim=pass dkdomain=canonical.com dmarc=pass fromdomain=canonical.com); spf=pass (google.com: domain of linux-kernel+bounces-171073-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171073-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id im16-20020a170902bb1000b001e54743decfsi9513899plb.152.2024.05.07.03.25.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 03:25:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171073-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=ronazVYD; arc=pass (i=1 spf=pass spfdomain=canonical.com dkim=pass dkdomain=canonical.com dmarc=pass fromdomain=canonical.com); spf=pass (google.com: domain of linux-kernel+bounces-171073-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171073-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id C9A10B240A9 for ; Tue, 7 May 2024 10:13:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6415914EC56; Tue, 7 May 2024 10:13:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=canonical.com header.i=@canonical.com header.b="ronazVYD" Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 069D214E2DA for ; Tue, 7 May 2024 10:13:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.125.188.123 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715076820; cv=none; b=DS3BEEQmgWk/MPW5rPbeVV+0QXjisHwE/PBS78wth2NFvsjHRjnRIxmzHuPGk6FE+iEMGUIT9YnQ42bx4L+viAi8Y7u71bVz3MTTsOqdorJi4wdmwfJJ2ZXGamLdNkYZHA4xevDoCbEqrCKlBEAiDmtEz1cclbG067XwLaJuQWc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715076820; c=relaxed/simple; bh=m3tCofB4NMIGnHABhiBunpQUZgNSb7hU8zxpgMZ6Rz8=; h=From:In-Reply-To:References:Mime-Version:Date:Message-ID:Subject: To:Cc:Content-Type; b=dGrKADOYoVqtF3PjWgpvfZunBH0Y858FxgbDtGZPyNXPl6SZijFbyitEcP2Fq7uhQmM2xfAGLH4khwJLhul4dLwQCf2zQImHMOQWaACkaoeF5VMVgJ+wON34Y0VeXmW0ggExiJNzrJE9/GGtbBCZzjurTFcgjC/8J9IljG+Re0I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=canonical.com; spf=pass smtp.mailfrom=canonical.com; dkim=pass (2048-bit key) header.d=canonical.com header.i=@canonical.com header.b=ronazVYD; arc=none smtp.client-ip=185.125.188.123 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=canonical.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=canonical.com Received: from mail-qt1-f199.google.com (mail-qt1-f199.google.com [209.85.160.199]) (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 D7B4B3FB60 for ; Tue, 7 May 2024 10:13:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1715076816; bh=397X4zZ5qk6cmfxvJ66g5Oe/KXHQi7SbJr6mL/vXFTk=; h=From:In-Reply-To:References:Mime-Version:Date:Message-ID:Subject: To:Cc:Content-Type; b=ronazVYDfRESfDFXThriTvfHZoKRxPX56aJndWDCsD1z5uV5mxyFZHJeDCrhmXkS0 WkLuCqU2a1yFJXvV5NNiq5Me4ofaWwLtxladK+rwGJEOZJvmgfupqzyEJStrEJ0S/9 VZIWjIwaqwDR4SRDflhUfrEidRSS/+OuhU8iLkYnaYGFzNXhR+LRiESis0a2BWw0g6 bb3dfK87xEW3tkh5kV5DYLfCfYUOIsTZdyaKZVqIZjVPhwXuwLyqWPfz//ZmV0nMEq jiFloOdblr8AWRwSXB6yjBV3utsh5QpU10gaYsmaqqH+M6fSOTY5Amc7GQHaVNY246 GCgiSUWEoKaQg== Received: by mail-qt1-f199.google.com with SMTP id d75a77b69052e-43d175821fdso38554571cf.3 for ; Tue, 07 May 2024 03:13:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715076816; x=1715681616; 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=397X4zZ5qk6cmfxvJ66g5Oe/KXHQi7SbJr6mL/vXFTk=; b=WNxLAa29nnGXWwNJ0hXtuqnQ5msjOLq5+UAvime+yyvT0hIGbiEdIZFZ8FyOCYkkEO DIX7pya3jEzrxlybtLY0+Zzn6CgCI9f7UC565+Lxx4Pe/3PXsS34BqVvS+wH+h0aQ3un hAfI6cFe5jZzLF+PrmmpkAx71XKdcf4WIT0jAELXHbgOlY0SXQ55efD20P4PW2Jdi34l 3d1nsG6bjTqNaAcx/3ZIek7IdZZQjcs67dQZ1/q8fnezE1YJv5QHetEI3x6h8Ob/C2eX uLCc0vtW5owHU+7Y9Pj9Eg5/4f7Fq9clhtLmIGzFnyzw5SoF3leXbjKfvfDbPHs7uzeu aG3A== X-Forwarded-Encrypted: i=1; AJvYcCXig8Pf+oVHfuAryIYM7TQxgW10fqpnZPmGtXMA3MkUr6mUBCrT+48AQLkkKQXIstJuSl8yw+ps4YOXVehy3KBkK7TcdwI96N2zRe8L X-Gm-Message-State: AOJu0YyAlKhzDzlrWK9HmdpPIeLW/h65KfftwmsxtoxzFOiufAO0AP0h YjiqFXwb9pvGOtCfEgk/1+cFQAlkHj4uf4494CUhAwmW1aVG6bBgLt68OyG2zdObB3hQDgxwtVc zvzXPA4M9II7HE93dcTHDJPdH1dmDggW8syxa/ekb07kvKjVRrFsSade2gAHlLM42Lq26HaYthy r+v1R/iv69+VBLRyR1aIln4PDxSiAawrwfgTaTUYLobi1razoCuwGp X-Received: by 2002:a05:622a:4e0b:b0:43a:712a:bb97 with SMTP id dh11-20020a05622a4e0b00b0043a712abb97mr15579367qtb.7.1715076816028; Tue, 07 May 2024 03:13:36 -0700 (PDT) X-Received: by 2002:a05:622a:4e0b:b0:43a:712a:bb97 with SMTP id dh11-20020a05622a4e0b00b0043a712abb97mr15579347qtb.7.1715076815802; Tue, 07 May 2024 03:13:35 -0700 (PDT) Received: from 348282803490 named unknown by gmailapi.google.com with HTTPREST; Tue, 7 May 2024 03:13:35 -0700 From: Emil Renner Berthing In-Reply-To: <20240507065319.274976-3-xingyu.wu@starfivetech.com> References: <20240507065319.274976-1-xingyu.wu@starfivetech.com> <20240507065319.274976-3-xingyu.wu@starfivetech.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Date: Tue, 7 May 2024 03:13:35 -0700 Message-ID: Subject: Re: [PATCH v5 2/2] riscv: dts: starfive: visionfive-2: Fix lower rate of CPUfreq by setting PLL0 rate to 1.5GHz To: Xingyu Wu , Michael Turquette , Stephen Boyd , Conor Dooley , Emil Renner Berthing , Rob Herring , Krzysztof Kozlowski Cc: Paul Walmsley , Palmer Dabbelt , Albert Ou , Hal Feng , linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-riscv@lists.infradead.org, devicetree@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Xingyu Wu wrote: > CPUfreq supports 4 cpu frequency loads on 375/500/750/1500MHz. > But now PLL0 rate is 1GHz and the cpu frequency loads become > 333/500/500/1000MHz in fact. > > The PLL0 rate should be default set to 1.5GHz and set the > cpu_core rate to 500MHz in safe. > > Fixes: e2c510d6d630 ("riscv: dts: starfive: Add cpu scaling for JH7110 SoC") > Signed-off-by: Xingyu Wu This should really be based on Conor's riscv-dt-for-next branch, eg. the change should be to the new jh7110-common.dtsi instead since the Milk-V Mars board would most likely also benefit from this change. In any case: Reviewed-by: Emil Renner Berthing > --- > .../boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi | 6 ++++++ > 1 file changed, 6 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 45b58b6f3df8..28981b267de4 100644 > --- a/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi > +++ b/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi > @@ -390,6 +390,12 @@ spi_dev0: spi@0 { > }; > }; > > +&syscrg { > + assigned-clocks = <&syscrg JH7110_SYSCLK_CPU_CORE>, > + <&pllclk JH7110_PLLCLK_PLL0_OUT>; > + assigned-clock-rates = <500000000>, <1500000000>; > +}; > + > &sysgpio { > i2c0_pins: i2c0-0 { > i2c-pins { > -- > 2.25.1 > > > _______________________________________________ > linux-riscv mailing list > linux-riscv@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-riscv