Received: by 10.223.176.5 with SMTP id f5csp427899wra; Tue, 6 Feb 2018 01:08:32 -0800 (PST) X-Google-Smtp-Source: AH8x226aXncRw5YqrlwVmGQnTmxZVjByYwzFSKi2DqsgLhwNOqnX0tD3YxJsRAGyheCx4Lg/pdnN X-Received: by 10.98.225.20 with SMTP id q20mr111184pfh.23.1517908112476; Tue, 06 Feb 2018 01:08:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517908112; cv=none; d=google.com; s=arc-20160816; b=MQzAECP4S7w1491ut6oZkCjWqVHGvhgPRaOAbCrKJR7QfDgA9JBZAehG48ylpP0BgV m3LWz/05TuXBCkCg4pfOHorY4i9ZhF4bXTNs7b8oUVYuOW4Ws/ztnXWGHb32lQaY5O+P 3OMUxrX7URxWAsV4Uc6eW+dXftaZexqPoCyZF+mkE8wHbj20XcoLlAkx/j1bLO+hiwdg RhEv8OZBociXgPZ5Tk9ku88hljIFCvSSgATZ5JWix1SwB+bTgjkKqf+6TLN7gwA5Xj79 CayUsmr7z2+uZy7lXRsAdGJO2jiU6mN+oahl15dfJNXjNwnt3cg6DOYmLqKDFRySPoMU rrFA== 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:arc-authentication-results; bh=QDyvsEb9cwzzRxeSVStjplKg8qfjZXowT8lAtgDMK7s=; b=0g+mZLxkAlOzz2O2tuPPQPy8+q/US7PJkf4zkIRCP/BgR+2ztRNAgXruCxn8ulmWVJ M+92+5R+PVHTIUUlCH8yWWOYHYw/NcA6ENX8zvScIvFlK6GatwUT84awLRCMmyz3ArnX WaWQtO/bZvdODt/BLMmwDE06ki+Cp7+iunHpbxF0urZXUQoOtDXetj8Ca5E7rJk3ocR6 3F2dJIufyEywRjebYQnLPm1qiwClnqFVFR4WbD7mBBXMYYKClWp9DdgmOkwCvktXb438 M/jIwQS3Cpiw0v86y/0+inFpIA1MjB8RcZKaS/4Kny3GSStXQ8oy2ONVL6WWQXLbsMwL PeVg== 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 c10si823029pfk.33.2018.02.06.01.08.17; Tue, 06 Feb 2018 01:08:32 -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; 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 S1752651AbeBFJHX (ORCPT + 99 others); Tue, 6 Feb 2018 04:07:23 -0500 Received: from mail.free-electrons.com ([62.4.15.54]:45970 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752203AbeBFJHI (ORCPT ); Tue, 6 Feb 2018 04:07:08 -0500 Received: by mail.free-electrons.com (Postfix, from userid 110) id 5358B2039F; Tue, 6 Feb 2018 10:07:06 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.free-electrons.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.free-electrons.com (Postfix) with ESMTPSA id 0BC2F20381; Tue, 6 Feb 2018 10:06:56 +0100 (CET) Date: Tue, 6 Feb 2018 10:06:56 +0100 From: Maxime Ripard To: Icenowy Zheng Cc: Liam Girdwood , Rob Herring , Chen-Yu Tsai , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@googlegroups.com Subject: Re: [PATCH v2 05/10] ARM: sun8i: h3: add operating-points-v2 table for CPU Message-ID: <20180206090656.r52hs7sk7w5iynrk@flea> References: <20180206044905.30508-1-icenowy@aosc.io> <20180206044905.30508-6-icenowy@aosc.io> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="lm7thvhrmh5kkjhy" Content-Disposition: inline In-Reply-To: <20180206044905.30508-6-icenowy@aosc.io> User-Agent: NeoMutt/20171215 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --lm7thvhrmh5kkjhy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Feb 06, 2018 at 12:49:00PM +0800, Icenowy Zheng wrote: > The CPU on Allwinner H3 can do dynamic frequency scaling. >=20 > Add a DVFS table based on the one shipped with Allwinner's H3 SDK. The > voltage-frequency relationship seems to be conservative, and Armbian has > another DVFS table which uses lower voltage at a certain frequency. > However, the official one is chosen for safety. >=20 > Frequencies higher than 1008MHz are temporarily dropped in the table, as > they may lead to over voltage on boards without proper regulator > settings or over temperature on boards with proper regulator settings. > They will be added back once regulator settings are ready and thermal > sensor driver is merged. >=20 > In order to satisfy all different regulators (SY8106A which is 50mV per > level, SY8113B which have two states: 1.1V and 1.3V, and some board with > non-tweakable regulators), all the OPPs are defined with a range which has > the target value as the minimum allowed value, and 1.3V (the highest > VDD-CPUX voltage suggested by the datasheet) as the maximum allowed value. > It's proven to work well with a board with SY8113B. >=20 > Signed-off-by: Icenowy Zheng > --- > Changes in v2: > - Switch to BSP OPP table, which is more conservative. >=20 > arch/arm/boot/dts/sun8i-h3.dtsi | 32 +++++++++++++++++++++++++++++++- > 1 file changed, 31 insertions(+), 1 deletion(-) >=20 > diff --git a/arch/arm/boot/dts/sun8i-h3.dtsi b/arch/arm/boot/dts/sun8i-h3= =2Edtsi > index 8495deecedad..36608c03f02b 100644 > --- a/arch/arm/boot/dts/sun8i-h3.dtsi > +++ b/arch/arm/boot/dts/sun8i-h3.dtsi > @@ -43,32 +43,62 @@ > #include "sunxi-h3-h5.dtsi" > =20 > / { > + cpu0_opp_table: opp_table0 { > + compatible =3D "operating-points-v2"; > + opp-shared; > + > + opp@648000000 { > + opp-hz =3D /bits/ 64 <648000000>; > + opp-microvolt =3D <1040000 1040000 1300000>; > + clock-latency-ns =3D <244144>; /* 8 32k periods */ > + }; > + > + opp@816000000 { > + opp-hz =3D /bits/ 64 <816000000>; > + opp-microvolt =3D <1100000 1100000 1300000>; > + clock-latency-ns =3D <244144>; /* 8 32k periods */ > + }; > + > + opp@1008000000 { > + opp-hz =3D /bits/ 64 <1008000000>; > + opp-microvolt =3D <1200000 1200000 1300000>; > + clock-latency-ns =3D <244144>; /* 8 32k periods */ > + }; > + }; > + > cpus { > #address-cells =3D <1>; > #size-cells =3D <0>; > =20 > - cpu@0 { > + cpu0: cpu@0 { > compatible =3D "arm,cortex-a7"; > device_type =3D "cpu"; > reg =3D <0>; > + clocks =3D <&ccu CLK_CPUX>; > + clock-names =3D "cpu"; > + operating-points-v2 =3D <&cpu0_opp_table>; > + #cooling-cells =3D <0x2>; So, that would be 2? There's this pattern on pretty much all the other patches following this one as well, you should address them too. Maxime --=20 Maxime Ripard, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering http://bootlin.com --lm7thvhrmh5kkjhy Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE0VqZU19dR2zEVaqr0rTAlCFNr3QFAlp5cC8ACgkQ0rTAlCFN r3TOGw/9GnFM1ShIioIb0M8acn9gVHSUJYIbN4sEJ3+TTpkm4BNLPg8GVBLMUw5n S6EjRhDXf9rO/jP7G0o1YGk8V8qzzwIqgqnLhJca12/82c8Cs9M/tnJFBJkFgAat 7evGuMbqdL97WF/vTOKB4rqNIVyLqWfvW2dbS/fqfA2uaNhdvnCuoA0LrsQZuXxl sEJo0FUQFw2LYg6FMZ9t+BrerDbxsp+xu/C7uBsmFqM7WzHr5MJOQbm7KUF1ANaR +VQP403FpJCzQftAe74uzcTKbPYw/BT3Lh7qSo/3EqRUyBKIOykv1MLzMa3mIlOD U3ofGV1xhrk/QsFqgQs8QDFcf7EVfRAUp3VTYtHmYAICl2QzOGwqWQT61qV0jK5a BkASNUjuIY9GTpD98E9xgngPtkUKycYNdh1WlaYwvjPw9/5iag1cWS2pH5n7TgBu cotIzw/YQT21Cfw8bA9HWamkWbJp+ivOdA/GkdvIzVcjvSk83RZLsp4IeC8Rrd32 xS451eXDUyuGVOHwbEktmDs2eovKcTPMx9jvxe09ZDAdPclwNW/gs1YhPm/reAfh uNhHDDV3ynqB4LyYjwZ+7v13ekoax718+Jr0zxkMFG9PUs5jali+Hrn+NMDLIEPI 9vhBs1s+msO7tXtwmex236TqaltAhy7aq6n0j6Kybq9Jabpr22Q= =mDjU -----END PGP SIGNATURE----- --lm7thvhrmh5kkjhy--