From patchwork Tue Jan 30 12:39:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Klaus Goger X-Patchwork-Id: 10191763 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0668E60375 for ; Tue, 30 Jan 2018 12:39:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EC83222064 for ; Tue, 30 Jan 2018 12:39:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E102E28669; Tue, 30 Jan 2018 12:39:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 897FB22064 for ; Tue, 30 Jan 2018 12:39:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=mnYWp8dt1y9kSia7dcVutkrHHqphfCwZbuNiDv+CDNs=; b=L6tjNhv3n/gdN8aF9ZHbYeeWGs XELmmnpDKUsEYTvkFvsSqi1ZcndRJa0IjpuHOy6x4988P5OFiy9AW5IpvRCEE/pSOQJJh7X/Wy1qW z2JccEe85atyOQMdWFAAVGdOxbrbTE/eialoPqdyoCvQElkDayZlJ8jKUSYqFVMpzbRCAlufvMEgA wuMmj9N/2LAHBOwaYJjpVLLf/aT5Li+Y40/ODFblODAD0DANLkhNja3CaqNA4oDaGJOoiVZerEQoC h2EfGqY2DF1+wA6FqY7cnl4pOA4mznEaEzhRpCaxYbFMqrb5HvOJs1lpl2XKFdMM4RrJXmoZYPzwt /0n+1w9w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1egVCd-0005u3-HW; Tue, 30 Jan 2018 12:39:55 +0000 Received: from vegas.theobroma-systems.com ([144.76.126.164] helo=mail.theobroma-systems.com) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1egVCV-0005qJ-Pz for linux-rockchip@lists.infradead.org; Tue, 30 Jan 2018 12:39:51 +0000 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 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> X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Rob Herring , Klaus Goger , linux-kernel@vger.kernel.org, Heiko Stuebner MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 {