Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2074127ybl; Tue, 3 Dec 2019 18:03:29 -0800 (PST) X-Google-Smtp-Source: APXvYqyjrWxRshR/y7wnPVGW1WqQ75/w70j6oA+N5QolR07GlmnGzTktyumzjKxenfZlO4oc3+iF X-Received: by 2002:a05:6808:ab1:: with SMTP id r17mr629996oij.141.1575425009505; Tue, 03 Dec 2019 18:03:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575425009; cv=none; d=google.com; s=arc-20160816; b=h0jWUvpcN0fJABQypUgxzCes3IAPrkrzxGCuUaLNe4/gCFFHzgsOiNyIZsoiqGAGCa VhaTnMzaqpzefNwdvlP1vZ8DrNc7n6mFvyCcjASk9YS+niXW//yYXXTunqhUgqIhUW7d DbHXGrqxvivEP4syb6SEcgCQZUQcbCPacTLMwW2dfAK62QJAuDxdWDd3ZmDdPXY4wjv1 TEtZMgXSncA3SmoM1JQ9HT1OlpiBYlmeqAH/DHR8/WfuC/emC0+tOJMgwfJdwn/58jgP +gzzreh72G6nEJThSEY5hZ7xH4cP0YUUXsuiYYCvMCkcEew7/vazTCX3dbtwzGYVH874 2F1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=f8K0EnzyGylJVKkSE14NCN6bfCoabfSgQK4D0CF4Fcs=; b=UnEj+ufMWNr7CcRx53sMwaiqhgiTk9CbfpQHxKPLSqoOMlDrnSrRey9CepKLg4TSjb Vq/rvsuNb6wtmEgYz9/Xa/j/q1o0umIoiZ542YWvuUumMCxKfpyIeAkKdXpEkShn6cky AOj976nszJLsAsM5oUFxOWdKCVSa3/SYkJJ8aCxsKQXC7Y//bjNQK8jBWGNL1u8ix9NR SOt8ALzrqFqaJNgVk5OXuiLB3TDW2PpQPbBuk/2e2K1vCdbY8gcBMU4n8LZ60ITp1D/w OUVp/c3f8GkYtXb9bxs5HEwbwsAXOGnzHaRtawFaJdvHZyPXVIbn7EOK/+s7my9ZbVWX 0/iA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=FVULFVOJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j24si2517783oie.176.2019.12.03.18.03.16; Tue, 03 Dec 2019 18:03:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=FVULFVOJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726482AbfLDCCr (ORCPT + 99 others); Tue, 3 Dec 2019 21:02:47 -0500 Received: from mail.kernel.org ([198.145.29.99]:57696 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726131AbfLDCCr (ORCPT ); Tue, 3 Dec 2019 21:02:47 -0500 Received: from dragon (98.142.130.235.16clouds.com [98.142.130.235]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 741A12073B; Wed, 4 Dec 2019 02:02:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1575424966; bh=6JGhp6hKDiAgsLbhCIIDGicEe/fmHWv0q/ZPw2vNp+A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FVULFVOJUSyS1NR+SsbcWjV/cv/rpuOIfNNYzZ1AqVWzoEQ0JkJnLjeIWr9IERPD1 dyI50ic2/u/Yfe/DBB/sqpLyva1fXVdKr96EhJesB8b51fHFzm4vyZS0uku63DKfmF Xeg2R4CQpaZTRrc/a2kLPqoV95VFdaO7p5fJrqPo= Date: Wed, 4 Dec 2019 10:02:37 +0800 From: Shawn Guo To: Anson Huang , Vincent Guittot Cc: "robh+dt@kernel.org" , "mark.rutland@arm.com" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , dl-linux-imx Subject: Re: [PATCH] ARM: dts: imx7ulp: Add cpu clock-frequency property Message-ID: <20191204020236.GK9767@dragon> References: <1572918578-13544-1-git-send-email-Anson.Huang@nxp.com> <20191202134748.GB21897@dragon> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org + Vincent On Tue, Dec 03, 2019 at 01:09:22AM +0000, Anson Huang wrote: > > > Subject: Re: [PATCH] ARM: dts: imx7ulp: Add cpu clock-frequency property > > > > On Tue, Nov 05, 2019 at 09:49:38AM +0800, Anson Huang wrote: > > > Add "clock-frequency" property to avoid below warning on i.MX7ULP: > > > > > > [ 0.011762] /cpus/cpu@0 missing clock-frequency property > > > > > > Signed-off-by: Anson Huang > > > --- > > > arch/arm/boot/dts/imx7ulp.dtsi | 1 + > > > 1 file changed, 1 insertion(+) > > > > > > diff --git a/arch/arm/boot/dts/imx7ulp.dtsi > > > b/arch/arm/boot/dts/imx7ulp.dtsi index d37a192..87b2237 100644 > > > --- a/arch/arm/boot/dts/imx7ulp.dtsi > > > +++ b/arch/arm/boot/dts/imx7ulp.dtsi > > > @@ -41,6 +41,7 @@ > > > compatible = "arm,cortex-a7"; > > > device_type = "cpu"; > > > reg = <0>; > > > + clock-frequency = <500210526>; > > > > I cannot find the binding doc for this property. What is the definition of it, > > the maximum frequency that the cpu could possibly run at? > > > The code is as below, maybe the property is missing from the beginning of this code, > this property should mean the current frequency of CPU running at I think: > > arch/arm/kernel/topology.c > > 122 rate = of_get_property(cn, "clock-frequency", &len); > 123 if (!rate || len != 4) { > 124 pr_err("%pOF missing clock-frequency property\n", cn); > 125 continue; > 126 } Yes, I can find the code, but not bindings for it. Considering frequency of a CPU can be scaled in a quite wide range, we need a clear understanding on this property. IIUIC, the property is used to calculate the capacity of CPU, it should be the maximum frequency the CPU could possibly scale to? Shawn