Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2030045ybi; Thu, 20 Jun 2019 08:01:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqw+fGCnpNgElpAB6JGhGgdG+yNGx4FolTQKtijYIxOGQ4FIMP16AWWvsNRRr3lJC7fdgDE+ X-Received: by 2002:a62:3547:: with SMTP id c68mr1403735pfa.156.1561042897953; Thu, 20 Jun 2019 08:01:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561042897; cv=none; d=google.com; s=arc-20160816; b=itOpc29gj5hJmK0YvesrWB6J4vHIKrE0YOsEUG0S2QOUv6TwHwlDroAj9x+GobusME 625up3plBjT+g1i+gGJ0TrasyC592EDiB0ejT0naVzdUqrdnO+zWEaG4UXVLvpcd9u8m 3SqV/aYAmwB9pN0aOoknDsIJA0sPigUjbAxNh3cyLNghiGeWw3/tRhYYyr4+awRPpDDE 5jOsfVZkpM44ZHKp2LO479yMrNvymx6jvljPcsaQ1v1V0hXDaAhAv1Neq9tLaG39PJAr F+YilvXxEUSkeNI1lQwN5oefE8qILXMhVHqlubWvhl3NL17rNcXM6oyn/WyfNoqcDhyD Xcpw== 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=Qes8sASy5sBJ+5Ve+lLAIoBLeN8x3Knt4kb//nQEub0=; b=TKLVrvaWKjw+YY25u4FifLm2wCqRbFkFNpM2l+St1bSHBJxDhS2iSsEEbjkB6t5Qri FLYhCq4q+rlJ5c64fny7+YenrCVDTblF4lGseIxx9Z0L/IOoweuSf0tLckwwUqCSpJah 69ihtpLO4hpYF2DIH+xFCgYhMkzFwu3xiAPDA5wRf/03Va00GBQJgrwvScdIRdyv4HWz 8QKZU56Co8Ef+oMMU9hQJ4dm4TEoBmwVcZveECJ3JvOk6sof93Vklj0RiNgg8ZpbhHA8 ztGY5cXR/Duz3k0n/Zv4kCJ1j7cDym4vZjp4u42gr8OF7qftDsEnZw15yhY0iDHR0RC1 OjtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=bLp5L5v3; 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 d9si44310pjs.7.2019.06.20.08.01.20; Thu, 20 Jun 2019 08:01:37 -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=bLp5L5v3; 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 S1732126AbfFTPAk (ORCPT + 99 others); Thu, 20 Jun 2019 11:00:40 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:37493 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732100AbfFTPAh (ORCPT ); Thu, 20 Jun 2019 11:00:37 -0400 Received: by mail-wm1-f68.google.com with SMTP id f17so3511142wme.2 for ; Thu, 20 Jun 2019 08:00:36 -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=Qes8sASy5sBJ+5Ve+lLAIoBLeN8x3Knt4kb//nQEub0=; b=bLp5L5v3QS5wFKBUizSp2SVDeh+p42Tp3wW6h23FY+eZOvz+3rFse3fX8nrHfAF0N0 3hXWdF6RHyDvszXQOhz1PMo4c402hmKDlOSgweCFFtwOfj8Rw8B6/5HwQSPcwg0+lqFq rsQdTMgAumuGjnkfbaxvq4jhiTZsoMAou1x9jQjN5jz73KLW48hwY3WfUh5Jjr/EsOeX qnrUxITzWZ6NTFXaPmOuxxWMd1Wun+GtMgtItKLdcITqUVGCH72DheIEtWzVQrsg2bQZ WJhPJdmCpOitD5eXOFNStzJ/GJzw4aVzHFbkYX1NYwVbV/jUYx0NvDC8NFdwzW2xMD85 g+dg== 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=Qes8sASy5sBJ+5Ve+lLAIoBLeN8x3Knt4kb//nQEub0=; b=LfqEcobU6IjUapNOQvzW6U+4MpCiofghAf+CX8fY2oe5/zosNVfMnypKhEZ0RVurX/ EZ75grfczvDUoE6OUk0RhXTc8xNDFOZPKqjSfPudsseW0N88YJBAgenztD1Xb2hXUnPD FSsDp7rhzqmsgxwf/5NPL5/pKDrhKLPZmzAoN+/4PcI/RhVKMVDTlRIcFwWvpntemzYl DZB94Cm71CedQxUPT/ORzdPKK50d6PtXZtX8YODjMK0JXkoJtrmkqvb2DwVIK+xxPCRx zzyTAdwbmfa9FB4BmxALPgFLG4OJPOpX066qlHp+okYnFIHsxqr82siYs/D9mekU+JL5 /Tzg== X-Gm-Message-State: APjAAAWdXF0Tn5xF0ZKTQlgFGt9HfwlHmDd+IGJ1pFjxaR3HIGCCc61P 7TP+tms4440e8s1JGluhpFNUoA== X-Received: by 2002:a1c:6c14:: with SMTP id h20mr58185wmc.168.1561042835265; Thu, 20 Jun 2019 08:00:35 -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 o126sm6802520wmo.1.2019.06.20.08.00.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 20 Jun 2019 08:00:34 -0700 (PDT) From: Neil Armstrong To: jbrunet@baylibre.com, khilman@baylibre.com Cc: linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, martin.blumenstingl@googlemail.com, Neil Armstrong Subject: [RFC/RFT 13/14] arm64: dts: meson-g12b: add cpus OPP tables Date: Thu, 20 Jun 2019 17:00:12 +0200 Message-Id: <20190620150013.13462-14-narmstrong@baylibre.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190620150013.13462-1-narmstrong@baylibre.com> References: <20190620150013.13462-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 ae63cd610892..334742de11a7 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.21.0