Received: by 10.223.185.116 with SMTP id b49csp3445498wrg; Sun, 18 Feb 2018 23:27:37 -0800 (PST) X-Google-Smtp-Source: AH8x227WA0hRW7Bxz+T2h13HfqvN9eWYnxQ1rEADrMQwWb/u2L0g3yVHh2u5vwn7WVqQV/Rz0BJ/ X-Received: by 2002:a17:902:6116:: with SMTP id t22-v6mr13371065plj.307.1519025257696; Sun, 18 Feb 2018 23:27:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519025257; cv=none; d=google.com; s=arc-20160816; b=ibMNP8bAc7HWnCDkIOHQeewkxI41dPJ4qlgyxQ+sL1pCu077E68Ml+xIqDcOhzacQg IZhFHicPoFxqLpLM6IQNp15bSNWxlu9r0WKRJOSMaMLa6PDgXev0baeAc9p1Zy+r3bD/ fYuA0lz2lgk2poHUXLV+9oQbpZ8dVvpn8eHjVNLaWhies2p210U2RZGIjtLdsIxN/1Y5 XCjE+5Pm2+xWwtQ45Ku6mnvpj5Wvrf3fwix7JA7V7NJ51Ay9vamI4r5MNrUMA/ghgTKd +UK8eWi5P7UnSS97GvrWDHRuqMRLCHJZzvI5r1l6vZauIo9s2xTsH/bUyU5n6M5fQkcn PhOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=YOcQClPU8LLPBuydyHk7/HXXJSEhQbBrU+gAu+z6cFM=; b=Mlag1+/K/HjVdyCGDh4ATPKjM6MLxnH8QIsixUzia6VfAa1IdvWPGHxjHN6mgLLqk5 7nglru/pjw1DpuT3UWnooz8vS7a8aRn77JovlJiQvRbYrKdnyH9yZDAgh4TttjSh/nzU Sbn2Nnzwwa+wK7shRUnRUxMltfUqWf57iMjyLM9EOfUQWyO/p90U/BXW4N7/ztnvFdzd JJ67cohmlfZoiPc0CshFlSIfsIcfudRLNz8eQ2nzYNm8TjbyL3UkCsjwGT/VitVwAvZA qO5bM6ax1NjKvT8PiLxDXQiFR406gyoeyC0hgDqj01N7U2F3oJaXuwSagTzBUNzEPghB 4tiA== 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 f4si308542pgc.267.2018.02.18.23.27.23; Sun, 18 Feb 2018 23:27:37 -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 S1752002AbeBSH0c (ORCPT + 99 others); Mon, 19 Feb 2018 02:26:32 -0500 Received: from vegas.theobroma-systems.com ([144.76.126.164]:33502 "EHLO mail.theobroma-systems.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751698AbeBSH0a (ORCPT ); Mon, 19 Feb 2018 02:26:30 -0500 Received: from [86.59.122.178] (port=46470 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 1enfqG-0008Ob-9q; Mon, 19 Feb 2018 08:26:28 +0100 From: Klaus Goger To: linux-rockchip@lists.infradead.org Cc: linux-kernel@vger.kernel.org, Heiko Stuebner , Klaus Goger Subject: [PATCH v2] arm64: dts: rockchip: add OPPs for rk3368-lion Date: Mon, 19 Feb 2018 08:26:26 +0100 Message-Id: <20180219072626.31874-1-klaus.goger@theobroma-systems.com> X-Mailer: git-send-email 2.11.0 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 | 80 +++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3368-lion.dtsi b/arch/arm64/boot/dts/rockchip/rk3368-lion.dtsi index 1315972412df..a0bcf35b1605 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>; @@ -105,35 +169,51 @@ }; &cpu_l0 { + clocks = <&cru ARMCLKL>; cpu-supply = <&vdd_cpu>; + operating-points-v2 = <&cluster1_opp>; }; &cpu_l1 { + clocks = <&cru ARMCLKL>; cpu-supply = <&vdd_cpu>; + operating-points-v2 = <&cluster1_opp>; }; &cpu_l2 { + clocks = <&cru ARMCLKL>; cpu-supply = <&vdd_cpu>; + operating-points-v2 = <&cluster1_opp>; }; &cpu_l3 { + clocks = <&cru ARMCLKL>; cpu-supply = <&vdd_cpu>; + operating-points-v2 = <&cluster1_opp>; }; &cpu_b0 { + clocks = <&cru ARMCLKB>; cpu-supply = <&vdd_cpu>; + operating-points-v2 = <&cluster0_opp>; }; &cpu_b1 { + clocks = <&cru ARMCLKB>; cpu-supply = <&vdd_cpu>; + operating-points-v2 = <&cluster0_opp>; }; &cpu_b2 { + clocks = <&cru ARMCLKB>; cpu-supply = <&vdd_cpu>; + operating-points-v2 = <&cluster0_opp>; }; &cpu_b3 { + clocks = <&cru ARMCLKB>; cpu-supply = <&vdd_cpu>; + operating-points-v2 = <&cluster0_opp>; }; &emmc { -- 2.11.0