Received: by 10.223.176.5 with SMTP id f5csp4269943wra; Tue, 30 Jan 2018 04:53:52 -0800 (PST) X-Google-Smtp-Source: AH8x225qW/Xj0xmJ6MP9ROSFkU/q30sXmkLCdVaoLMnHakNiumwyluZdOnnHhrldFNWY+0/pDqzB X-Received: by 2002:a17:902:570f:: with SMTP id k15-v6mr5370482pli.321.1517316832366; Tue, 30 Jan 2018 04:53:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517316832; cv=none; d=google.com; s=arc-20160816; b=oCMCkFS/52mBa5TY6O/ZeRtbL0iD6k49Ramxec6KX8l0Jle5KBW4CiCyDIRxrpsFAd j+vvJ5IJUefvyAN7bocsQoDMsRnV2cMXevFVBXFYcmI79XpPY34a8n/5s83FGEnbeIVK 4voTFvu6YPYKSS0pC6fdbOvIfmQMlAsm3hoPuBnYBQDd5scTDQFY4/VFcyECK89dIa0B IGXoWk1ffsJ1InShgpY8ibql/nIltKniQ8VSq+dFoywkA+szQVE4HXuISEnsOJsT2mwG Q2blxXpjgl877t0ryoAWmv7v6+zGuZdieNqZKsrEdHt47SBSoPQNU1j8s6aNDy/uHYZq vTzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=8+LLr7zL/zB6FCQoWNJ13eNKqsXP5yLLn1cPXMl8T9I=; b=GkJePevCkOEjN15HjV1/zCD1umB6KqqodA8FDzgL/nOT4WaAwUGhM8XsH+7fdOMHG9 UyzpBWm5Vqxndp/4U/eFOr3PidQaUxNsVzrXw9dOsbTi/2q9iHbT03ZdNWuwA0OhIboZ SDGprakzcI8CAo4rHZ120SK5Ghu6ynniv/AfRLqO4wCbZotJwm58nt0xdR6MXlS/eED0 iQsR7cibiQCJMPjbKn8FT/q9IDJ/WA0u1mQp6xsXb+wP2xZYp7DC4yEebkMDt+Xd9tQF p8qhizeB9m2uTVZsluiy3xCgyiGGPjlweqa3ihCb1DtyOpj8mYq8W6GNfajdulxO3XIC g6cg== 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 l5si1720869pgs.608.2018.01.30.04.53.38; Tue, 30 Jan 2018 04:53:52 -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 S1752067AbeA3Mju (ORCPT + 99 others); Tue, 30 Jan 2018 07:39:50 -0500 Received: from vegas.theobroma-systems.com ([144.76.126.164]:57916 "EHLO mail.theobroma-systems.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751974AbeA3Mjm (ORCPT ); Tue, 30 Jan 2018 07:39:42 -0500 Received: from [86.59.122.178] (port=40974 helo=blau.lan) by mail.theobroma-systems.com with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1egVCM-0006lP-Nz; Tue, 30 Jan 2018 13:39:38 +0100 From: Klaus Goger To: linux-rockchip@lists.infradead.org Cc: Mark Rutland , Rob Herring , linux-kernel@vger.kernel.org, Heiko Stuebner , Klaus Goger Subject: [PATCH 4/4] arm64: dts: rockchip: add OPPs for rk3368-lion Date: Tue, 30 Jan 2018 13:39:31 +0100 Message-Id: <20180130123931.50781-5-klaus.goger@theobroma-systems.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180130123931.50781-1-klaus.goger@theobroma-systems.com> References: <20180130123931.50781-1-klaus.goger@theobroma-systems.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This adds CPU operation points for the RK3368. We only add them to the the RK3368-uQ7 SoM (Lion) because patches for the SoC where reverted in the past. commit 6354a06cbaa8 ("Revert "arm64: dts: rockchip: Add basic cpu frequencies for RK3368"") Signed-off-by: Klaus Goger --- arch/arm64/boot/dts/rockchip/rk3368-lion.dtsi | 96 ++++++++++++++++++++++++--- 1 file changed, 88 insertions(+), 8 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3368-lion.dtsi b/arch/arm64/boot/dts/rockchip/rk3368-lion.dtsi index 72be1ae0854f..881f0b44c5b5 100644 --- a/arch/arm64/boot/dts/rockchip/rk3368-lion.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3368-lion.dtsi @@ -11,6 +11,70 @@ stdout-path = "serial0:115200n8"; }; + cluster0_opp: opp-table0 { + compatible = "operating-points-v2"; + opp-shared; + + opp00 { + opp-hz = /bits/ 64 <408000000>; + opp-microvolt = <950000 950000 1350000>; + clock-latency-ns = <40000>; + }; + opp01 { + opp-hz = /bits/ 64 <600000000>; + opp-microvolt = <950000 950000 1350000>; + }; + opp02 { + opp-hz = /bits/ 64 <816000000>; + opp-microvolt = <975000 975000 1350000>; + }; + opp03 { + opp-hz = /bits/ 64 <1008000000>; + opp-microvolt = <1050000 1050000 1350000>; + }; + opp04 { + opp-hz = /bits/ 64 <1200000000>; + opp-microvolt = <1150000 1150000 1350000>; + }; + opp05 { + opp-hz = /bits/ 64 <1416000000>; + opp-microvolt = <1300000 1300000 1350000>; + turbo-mode; + }; + opp06 { + opp-hz = /bits/ 64 <1512000000>; + opp-microvolt = <1300000 1300000 1350000>; + turbo-mode; + }; + }; + + cluster1_opp: opp-table1 { + compatible = "operating-points-v2"; + opp-shared; + + opp00 { + opp-hz = /bits/ 64 <408000000>; + opp-microvolt = <950000 950000 1350000>; + clock-latency-ns = <40000>; + }; + opp01 { + opp-hz = /bits/ 64 <600000000>; + opp-microvolt = <950000 950000 1350000>; + }; + opp02 { + opp-hz = /bits/ 64 <816000000>; + opp-microvolt = <1025000 1025000 1350000>; + }; + opp03 { + opp-hz = /bits/ 64 <1008000000>; + opp-microvolt = <1125000 1125000 1350000>; + }; + opp04 { + opp-hz = /bits/ 64 <1200000000>; + opp-microvolt = <1225000 1225000 1350000>; + }; + }; + ext_gmac: gmac-clk { compatible = "fixed-clock"; clock-frequency = <125000000>; @@ -239,36 +303,52 @@ status = "okay"; }; -&cpu_l0 { +&cpu_b0 { + clocks = <&cru ARMCLKB>; cpu-supply = <&vdd_cpu>; + operating-points-v2 = <&cluster0_opp>; }; -&cpu_l1 { +&cpu_b1 { + clocks = <&cru ARMCLKB>; cpu-supply = <&vdd_cpu>; + operating-points-v2 = <&cluster0_opp>; }; -&cpu_l2 { +&cpu_b2 { + clocks = <&cru ARMCLKB>; cpu-supply = <&vdd_cpu>; + operating-points-v2 = <&cluster0_opp>; }; -&cpu_l3 { +&cpu_b3 { + clocks = <&cru ARMCLKB>; cpu-supply = <&vdd_cpu>; + operating-points-v2 = <&cluster0_opp>; }; -&cpu_b0 { +&cpu_l0 { + clocks = <&cru ARMCLKL>; cpu-supply = <&vdd_cpu>; + operating-points-v2 = <&cluster1_opp>; }; -&cpu_b1 { +&cpu_l1 { + clocks = <&cru ARMCLKL>; cpu-supply = <&vdd_cpu>; + operating-points-v2 = <&cluster1_opp>; }; -&cpu_b2 { +&cpu_l2 { + clocks = <&cru ARMCLKL>; cpu-supply = <&vdd_cpu>; + operating-points-v2 = <&cluster1_opp>; }; -&cpu_b3 { +&cpu_l3 { + clocks = <&cru ARMCLKL>; cpu-supply = <&vdd_cpu>; + operating-points-v2 = <&cluster1_opp>; }; &pinctrl { -- 2.11.0