Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3966538yba; Wed, 17 Apr 2019 01:31:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqyyD8cMgw5LbAuMxhFAshrVpXJ30ECgPCFCH5XM7wDsMhmEuFk5/np9FWWHCuTfjcRYGpwd X-Received: by 2002:a17:902:820e:: with SMTP id x14mr87278434pln.207.1555489891274; Wed, 17 Apr 2019 01:31:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555489891; cv=none; d=google.com; s=arc-20160816; b=E43gt553bxDRFK76Tu7aH3/ktcTN23AMEbbID7NpJ+dbJ/NC0PXNEd9nMNX7aniiUC 1/rWjewIk3hlXR2RdIgXpqygS/kGbvlCRNE9PgMiIysm9Pvthu2mYPMtPHnELAH4XHXX PO1gRSxgT+UOjnIoiYH1PUnQrExubwDqkP64UMLX6BtYJlSajXP0waJSBamn39t68fHQ BVs6Rvf7TE+UfC5eU1nk1MZN040xjRD7vdu4ZzWU73F3EkXt1jOF6WGnsCLQDsI+3EYz xLdCLydHCfmbkaynu0HvJT7JiKJTm+XM4tzXMliNRAL+FpBUjndOfrRSVW/Mqi+6f/YT XFMQ== 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; bh=Zs/D7KL61glhpBBDt/hSW8UTpKTbQ1VgZzyQzcDF2GA=; b=EnFVKsO2QSWHqVDYK5/XqN6qWlrKD57VeB+iVChcIDSAAGrVTh4mOoQUZmigMvw+cj ArIgO974vNrSmPtEiUFCPOii9c7DnrLCzG8fQPQl4UXoYabFrXL65l3fjJHuzH0pCAdI GG6Rh8zqTdLTHzPad/DeKHpZ9yd0NGqZJcuEWwxpi7vM5McBhdLDylWYsXoCEGJelKsB wnV9obH4qD3tejBMX0FYcPMeBCFg3+d17bedRnr/BBCcFtsQ3plFgpU/VVvRsZo03jSl +AO053ezBBohJ8oARrjgqFPJxl+nJgIcmuGAj85sY1c/czhY4yxfPuGMkgjMg+dEZcUX Db4A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cv9si54926431plb.371.2019.04.17.01.31.16; Wed, 17 Apr 2019 01:31:31 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731326AbfDQIaU (ORCPT + 99 others); Wed, 17 Apr 2019 04:30:20 -0400 Received: from relay10.mail.gandi.net ([217.70.178.230]:54993 "EHLO relay10.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726895AbfDQIaU (ORCPT ); Wed, 17 Apr 2019 04:30:20 -0400 Received: from localhost (aaubervilliers-681-1-42-238.w90-88.abo.wanadoo.fr [90.88.160.238]) (Authenticated sender: maxime.ripard@bootlin.com) by relay10.mail.gandi.net (Postfix) with ESMTPSA id E17BA240004; Wed, 17 Apr 2019 08:30:00 +0000 (UTC) Date: Wed, 17 Apr 2019 10:30:00 +0200 From: Maxime Ripard To: Yangtao Li Cc: vireshk@kernel.org, nm@ti.com, sboyd@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, wens@csie.org, rjw@rjwysocki.net, davem@davemloft.net, mchehab+samsung@kernel.org, gregkh@linuxfoundation.org, nicolas.ferre@microchip.com, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 2/2] dt-bindings: cpufreq: Document allwinner,sun50i-h6-operating-points Message-ID: <20190417083000.cwzvhlpbxqoifosw@flea> References: <20190416155209.24216-1-tiny.windzz@gmail.com> <20190416155209.24216-3-tiny.windzz@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="f3k7wehh6o47a3dc" Content-Disposition: inline In-Reply-To: <20190416155209.24216-3-tiny.windzz@gmail.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --f3k7wehh6o47a3dc Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Apr 16, 2019 at 11:52:09AM -0400, Yangtao Li wrote: > Allwinner Process Voltage Scaling Tables defines the voltage and > frequency value based on the speedbin blown in the efuse combination. > The sunxi-cpufreq-nvmem driver reads the efuse value from the SoC to > provide the OPP framework with required information. > This is used to determine the voltage and frequency value for each > OPP of operating-points-v2 table when it is parsed by the OPP framework. > > The "allwinner,sun50i-h6-operating-points" DT extends the > "operating-points-v2" > with following parameters: > - nvmem-cells (NVMEM area containig the speedbin information) > - opp-microvolt-: voltage in micro Volts. > At runtime, the platform can pick a and matching > opp-microvolt- property. > HW: : > sun50iw-h6 speed0 speed1 speed2 > > Signed-off-by: Yangtao Li > --- > .../bindings/opp/sun50i-nvmem-cpufreq.txt | 167 ++++++++++++++++++ > 1 file changed, 167 insertions(+) > create mode 100644 Documentation/devicetree/bindings/opp/sun50i-nvmem-cpufreq.txt > > diff --git a/Documentation/devicetree/bindings/opp/sun50i-nvmem-cpufreq.txt b/Documentation/devicetree/bindings/opp/sun50i-nvmem-cpufreq.txt > new file mode 100644 > index 000000000000..3cb39c6caec3 > --- /dev/null > +++ b/Documentation/devicetree/bindings/opp/sun50i-nvmem-cpufreq.txt > @@ -0,0 +1,167 @@ > +Allwinner Technologies, Inc. NVMEM CPUFreq and OPP bindings > +=================================== > + > +For some SoCs, the CPU frequency subset and voltage value of each OPP > +varies based on the silicon variant in use. Allwinner Process Voltage > +Scaling Tables defines the voltage and frequency value based on the > +speedbin blown in the efuse combination. The sun50i-cpufreq-nvmem driver > +reads the efuse value from the SoC to provide the OPP framework with > +required information. > + > +Required properties: > +-------------------- > +In 'cpus' nodes: > +- operating-points-v2: Phandle to the operating-points-v2 table to use. > + > +In 'operating-points-v2' table: > +- compatible: Should be > + - 'allwinner,sun50i-h6-operating-points'. > +- nvmem-cells: A phandle pointing to a nvmem-cells node representing the > + efuse registers that has information about the speedbin > + that is used to select the right frequency/voltage value > + pair. Please refer the for nvmem-cells bindings > + Documentation/devicetree/bindings/nvmem/nvmem.txt and > + also examples below. > + > +In every OPP node: > +- opp-microvolt-: Voltage in micro Volts. > + At runtime, the platform can pick a and > + matching opp-microvolt- property. > + [See: opp.txt] > + HW: : > + sun50iw-h6 speed0 speed1 speed2 There's a typo here (and in your commit log), it should be sun50i-h6 instead of sun50iw-h6 Once fixed: Acked-by: Maxime Ripard Thanks! Maxime -- Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --f3k7wehh6o47a3dc Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXLbkCAAKCRDj7w1vZxhR xciRAP4kXlaqxDV3PBOh9mkYIguav5gdYtZ6PN/1DjyEGj/owgD9ExAFQA/XPHlD bmo+VqCwf/jtInmFUJPSA71UhPVNgAU= =MTgp -----END PGP SIGNATURE----- --f3k7wehh6o47a3dc--