Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3472652ybi; Mon, 29 Jul 2019 07:10:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqy87kM7ivz9darSTfv69aKylpXbUn+UVTK1dEbNDy9rDdjN9wPtheGynfX4rV8ydDnOkMOi X-Received: by 2002:a62:87c8:: with SMTP id i191mr36980072pfe.133.1564409442600; Mon, 29 Jul 2019 07:10:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564409442; cv=none; d=google.com; s=arc-20160816; b=1FKaa1p1JRuHPaNw0ZUwtv8f9pcdvhtlRouylz3GT/N2azK4E3iTH+/EXiHME5xw2p 2MnTEY6oyDXqxzQb/u11m2R6sNLTWnqHtujcK6MENNf13p8Vlw9kH/CZEc4gwuDXlzWr M/dzuc/TCO7Z1MbjPC1jV9+4oTuvvXL2X1EBOTlJTd06D8Hn9NLUdYnDsg1/1DkuyVml roAe9zs7AXgbz/Lxf49xkZaWGjcyV/7xsKypnuXuChomX7R75SrJZazeRF0Pv7+X8KFX W90UikQrEP7+M3f/JnMswLzOGM9Z1TMJX2Ty4gxeqIfH+pFfT4PwQThPjfriWt0thNB4 LApg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Ab59+H2WDkGLtDUjRYAahowCKGHxyYpXq1ICYjuPet8=; b=05RsZFstKHOWMNzowe2xOp2K7X4P8RadaqzwcSgIpkuADWLgMLK60Bi5rOHtZv2Wsx Udnz1o3BSfyiKBffeirZFmP5dJfl77Tp3frK0vxh4pEA/d+TUSiY9UvKBIkTPYht1fuE u/4ieW4jq93nGTXHjex6R54yfrqpqUpFKl+6lAhFqOuzA1G5uqRe4+yEyIv47cGmcSfD RGk8aZLNKJgccFd79B2b75Qy881N8v7H0mS02PujZuE1a5EiAHJzNjuMXXVKP0zjz/AO BJYcKUGYWrctctNje6H14XyA9ZWUUF4nK/XvkjMXBN6oY8SoV8c4SxqGdrPeEfaWoyS0 stpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b="uPs/pRoh"; 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 e14si20476485pgg.442.2019.07.29.07.10.27; Mon, 29 Jul 2019 07:10:42 -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; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b="uPs/pRoh"; 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 S2388018AbfG2N0e (ORCPT + 99 others); Mon, 29 Jul 2019 09:26:34 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:43005 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726478AbfG2N0b (ORCPT ); Mon, 29 Jul 2019 09:26:31 -0400 Received: by mail-wr1-f66.google.com with SMTP id x1so11945079wrr.9 for ; Mon, 29 Jul 2019 06:26:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Ab59+H2WDkGLtDUjRYAahowCKGHxyYpXq1ICYjuPet8=; b=uPs/pRohH0UeODJ9yLiONupgiLKx4dCDAdsWMAkAaq4uA7Vv/QhqtOWP7dR5YbaJt8 nfBgkHTE/0rMOY7+i3FtxwB+kTZC0Yp6wG8D4dxud6FtNiqbjzfV0C4qMLupC8qt1mIr k+mddbAR+PwmmPTLkgvCiu9TgtCIK1SzB7I391NtUgweWzgHiH1y0DwFioP0yJ5CojC7 8CRE6pw9l3+MLp+e2+v10V7nj2QSvsSFLTioVwsYxh7CxoJtWBLdmVdG7xdo3bj7ywsv 9/P/bszvgTTfX9qtnyL4myncdPaAPaJfFGe2PeIuWKaHSHSWwgMOmylKuJYYOiu7lzvB b74A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Ab59+H2WDkGLtDUjRYAahowCKGHxyYpXq1ICYjuPet8=; b=VGUd5f0KBzP9v5EVDvQf7cegoEkemYt6YjJYIKndMPyuTiNbZFaYZw1YwfnA0LfJJR E8dUqfUBQUVpRH0LoO3x+rmW0Nu6KINwkPBnyxk03t3NtE7RJFvO019MMMEARDY5ky9v J1EgpnAKng7tqDyLajQhr4YBrEsBXqOM3qYkK6BtKvnOhwrciRSOLhSnHAM6evKXW2kp +dhv7hVuLG4r39I0N0O1BEtTpHP3ZMjXHsLYTerbz2ns94EDbSTj/njYK7iWVv6x9onc /lQE4SRc73K3xxc8tE9IhKQ3/1IWhNMGUCRmyRxYj6vEnIYzc6L+CPkwZ38WHrDf3AjZ ZBzQ== X-Gm-Message-State: APjAAAWUHlYnx1sfYeRrYKUcODU7d53CoEy3/Di5Gmhwbk5bMTyHB3Fb VaURx4S9DAii3xtPQmfLQnNUFw== X-Received: by 2002:adf:b60c:: with SMTP id f12mr86087098wre.231.1564406788898; Mon, 29 Jul 2019 06:26:28 -0700 (PDT) Received: from bender.baylibre.local (lmontsouris-657-1-212-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id y2sm50270053wrl.4.2019.07.29.06.26.28 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 29 Jul 2019 06:26:28 -0700 (PDT) From: Neil Armstrong To: khilman@baylibre.com Cc: Neil Armstrong , linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 5/6] arm64: dts: meson-g12b: add cpus OPP tables Date: Mon, 29 Jul 2019 15:26:21 +0200 Message-Id: <20190729132622.7566-6-narmstrong@baylibre.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190729132622.7566-1-narmstrong@baylibre.com> References: <20190729132622.7566-1-narmstrong@baylibre.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the OPP table taken from the HardKernel Odroid-N2 DTS. The Amlogic G12B SoC seems to available in 2 types : - low-speed: Cortex-A73 Cluster up to 1,704GHz - high-speed: Cortex-A73 Cluster up to 2.208GHz The Cortex-A73 Cluster can be clocked up to 1,896GHz for both types. The Vendor Amlogic A311D OPP table are slighly different, with lower voltages than the HardKernel S922X tables but seems to be high-speed type. This adds the conservative OPP table with the S922X higher voltages and the maximum low-speed OPP frequency. The values were tested to be stable on an HardKernel Odroid-N2 board running the arm64 cpuburn at [1] and cycling between all the possible cpufreq translations for both clusters and checking the final frequency using the clock-measurer, script at [2]. [1] https://github.com/ssvb/cpuburn-arm/blob/master/cpuburn-a53.S [2] https://gist.github.com/superna9999/d4de964dbc0f84b7d527e1df2ddea25f Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-g12b.dtsi | 115 ++++++++++++++++++++ 1 file changed, 115 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12b.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12b.dtsi index d5edbc1a1991..98ae8a7c8b41 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12b.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-g12b.dtsi @@ -95,6 +95,121 @@ compatible = "cache"; }; }; + + cpu_opp_table_0: opp-table-0 { + compatible = "operating-points-v2"; + opp-shared; + + opp-100000000 { + opp-hz = /bits/ 64 <100000000>; + opp-microvolt = <731000>; + }; + + opp-250000000 { + opp-hz = /bits/ 64 <250000000>; + opp-microvolt = <731000>; + }; + + opp-500000000 { + opp-hz = /bits/ 64 <500000000>; + opp-microvolt = <731000>; + }; + + opp-666666666 { + opp-hz = /bits/ 64 <666666666>; + opp-microvolt = <731000>; + }; + + opp-1000000000 { + opp-hz = /bits/ 64 <1000000000>; + opp-microvolt = <731000>; + }; + + opp-1200000000 { + opp-hz = /bits/ 64 <1200000000>; + opp-microvolt = <731000>; + }; + + opp-1398000000 { + opp-hz = /bits/ 64 <1398000000>; + opp-microvolt = <761000>; + }; + + opp-1512000000 { + opp-hz = /bits/ 64 <1512000000>; + opp-microvolt = <791000>; + }; + + opp-1608000000 { + opp-hz = /bits/ 64 <1608000000>; + opp-microvolt = <831000>; + }; + + opp-1704000000 { + opp-hz = /bits/ 64 <1704000000>; + opp-microvolt = <861000>; + }; + + opp-1896000000 { + opp-hz = /bits/ 64 <1896000000>; + opp-microvolt = <981000>; + }; + }; + + cpub_opp_table_1: opp-table-1 { + compatible = "operating-points-v2"; + opp-shared; + + opp-100000000 { + opp-hz = /bits/ 64 <100000000>; + opp-microvolt = <751000>; + }; + + opp-250000000 { + opp-hz = /bits/ 64 <250000000>; + opp-microvolt = <751000>; + }; + + opp-500000000 { + opp-hz = /bits/ 64 <500000000>; + opp-microvolt = <751000>; + }; + + opp-666666666 { + opp-hz = /bits/ 64 <666666666>; + opp-microvolt = <751000>; + }; + + opp-1000000000 { + opp-hz = /bits/ 64 <1000000000>; + opp-microvolt = <751000>; + }; + + opp-1200000000 { + opp-hz = /bits/ 64 <1200000000>; + opp-microvolt = <771000>; + }; + + opp-1398000000 { + opp-hz = /bits/ 64 <1398000000>; + opp-microvolt = <791000>; + }; + + opp-1512000000 { + opp-hz = /bits/ 64 <1512000000>; + opp-microvolt = <821000>; + }; + + opp-1608000000 { + opp-hz = /bits/ 64 <1608000000>; + opp-microvolt = <861000>; + }; + + opp-1704000000 { + opp-hz = /bits/ 64 <1704000000>; + opp-microvolt = <891000>; + }; + }; }; &clkc { -- 2.22.0