From patchwork Wed Nov 15 15:24:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulrich Hecht X-Patchwork-Id: 10059743 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 CEA1E6019D for ; Wed, 15 Nov 2017 15:25:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BE8B229937 for ; Wed, 15 Nov 2017 15:25:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B33922A035; Wed, 15 Nov 2017 15:25:23 +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_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, 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 5755329937 for ; Wed, 15 Nov 2017 15:25:23 +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=oIucgtSCscpHIYsu5nibhxIoOpwrItIWOvZ8cH5oNuk=; b=KjTTqPfzFZlyrvZeFkJU9V8LT5 JYZ4NiTBZljThSbWkeu1nYvgxQomIzVUNOaaPfzVxQDQL3TwAztBQvWdCz3viM+WfFjEEYzaMD7t/ d+Can7d+TLrchfZ0QqPZjCpXMx0PcX611xNA9/frdlykISKMGnZnyzF4idH3xwm0Ow7Ppd+yN5WJw qgELEbVn+1g6Jd/MJSGz7piRWQkkKXcltyUgg0wAhT7gWh77MmFAzg2MWObwcpnE314x2bzxafNuS KUIByHYbnzi7iaGkGB2Ub+vid5c9CYtMm6VD3j7aZ0aOc5oKCUM0yKraIv3Tgw8FPDgF2jfaYi6Ph kXZr2n3g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1eEzZ4-000510-SR; Wed, 15 Nov 2017 15:25:22 +0000 Received: from mail-wr0-x242.google.com ([2a00:1450:400c:c0c::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eEzYy-0003MK-Rk for linux-mediatek@lists.infradead.org; Wed, 15 Nov 2017 15:25:20 +0000 Received: by mail-wr0-x242.google.com with SMTP id u97so20823318wrc.1 for ; Wed, 15 Nov 2017 07:24:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=99un4V+F/9u2sRwSZPw/eB9VPHPpFvAuXPyQZJrZWT0=; b=p3i2/HO7HCe02HVMEGYqwn69VJtiHkEmsujx0ju0SVe7cVIVCCVECI4Sx8lvxSDL+z A72ODPYi5U4DzEuYl0iv4Th3oP8YqbewTwHnW2FoTCQCBnMYX5bakTl86gbuPosF+h25 caEq9c11xvaRn4ivm+WnC3T+THSHFV5IAviRlyOvad5Yl0dcf7CmAKHDz3XbJb9XHcfq cIpw1MaALVHnWHd8zrLUjzK4+EE4arVbgklhQ2tUwq+EKuaU9dE1bd4AiJdcm8TtmqBF JUHXzk7ZdHaHVYnzD16/KjZMG36eYZN9K4wNQQZ4SppI4NIurjH6R8l1Chtp6TYF87ie v8vQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=99un4V+F/9u2sRwSZPw/eB9VPHPpFvAuXPyQZJrZWT0=; b=Utw80rZ2+YrkDsYdrsh165SllEbkZqMOyiAEQrQkOHdZ9oFSIgnL6toxgImp06D2Jy MZH0roh+LOBtBQ3AU9SfXHijOxMP3E9kB1PRHAJcdyEpiHoANDWbxrzjihZyNuQlKmeb 9zJtwpswaVESYV3LInqZQyuTqGKOWLiLB0V1v7KLH+HyQ2WjYLe3vBPnzfC1RPyY7p5v yNQjuzW4F4MaI/vLBwJLXE9s7bgiXzd68wdUYF09F+IrKQYTrYFyHFmWTYge4/YBE9Wc PAazoeCyheBbk7gDrCIpqeWW8w7tP4Zo4P3xikr+wdBQ0bIATeyg+WGu+1zfZlAK8T76 nTYw== X-Gm-Message-State: AJaThX4aYDVHX08HtzIhxPOU0cg0yfMeWv59kDsfrkmXiLI6v+ohdDkl T26gqgzPlnOdVT/+QnmGgLiIpoM= X-Google-Smtp-Source: AGs4zMbuHGFToObnxLBiL8VPvkmciWVEv0AihyyAlr2f/rGj2TFEXa0actbf5X6vF0QeZ+tSknZFMA== X-Received: by 10.223.201.8 with SMTP id m8mr13047371wrh.260.1510759495129; Wed, 15 Nov 2017 07:24:55 -0800 (PST) Received: from groucho.site (ipbcc0ce42.dynamic.kabel-deutschland.de. [188.192.206.66]) by smtp.gmail.com with ESMTPSA id s12sm51547104wrc.89.2017.11.15.07.24.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 15 Nov 2017 07:24:54 -0800 (PST) From: Ulrich Hecht To: linux-mediatek@lists.infradead.org Subject: [POC 14/16] arm64: dts: mt8173: add CPU OPP tables Date: Wed, 15 Nov 2017 16:24:21 +0100 Message-Id: <1510759463-30201-15-git-send-email-ulrich.hecht+renesas@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1510759463-30201-1-git-send-email-ulrich.hecht+renesas@gmail.com> References: <1510759463-30201-1-git-send-email-ulrich.hecht+renesas@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171115_072517_188394_BB26A172 X-CRM114-Status: UNSURE ( 6.97 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ulrich Hecht , mbrugger@suse.com, magnus.damm@gmail.com, laurent.pinchart@ideasonboard.com, dri-devel@lists.freedesktop.org MIME-Version: 1.0 Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Adds CPU OPP tables for use with the generic cpufreq driver. Signed-off-by: Ulrich Hecht --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 90 ++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi index b99a273..f454efa33 100644 --- a/arch/arm64/boot/dts/mediatek/mt8173.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8173.dtsi @@ -51,6 +51,80 @@ mdp_wrot1 = &mdp_wrot1; }; + cluster0_opp: opp_table0 { + compatible = "operating-points-v2"; + opp-shared; + opp@507000000 { + opp-hz = /bits/ 64 <507000000>; + opp-microvolt = <859000>; + }; + opp@702000000 { + opp-hz = /bits/ 64 <702000000>; + opp-microvolt = <908000>; + }; + opp@1001000000 { + opp-hz = /bits/ 64 <1001000000>; + opp-microvolt = <983000>; + }; + opp@1105000000 { + opp-hz = /bits/ 64 <1105000000>; + opp-microvolt = <1009000>; + }; + opp@1209000000 { + opp-hz = /bits/ 64 <1209000000>; + opp-microvolt = <1034000>; + }; + opp@1300000000 { + opp-hz = /bits/ 64 <1300000000>; + opp-microvolt = <1057000>; + }; + opp@1508000000 { + opp-hz = /bits/ 64 <1508000000>; + opp-microvolt = <1109000>; + }; + opp@1703000000 { + opp-hz = /bits/ 64 <1703000000>; + opp-microvolt = <1125000>; + }; + }; + + cluster1_opp: opp_table1 { + compatible = "operating-points-v2"; + opp-shared; + opp@507000000 { + opp-hz = /bits/ 64 <507000000>; + opp-microvolt = <828000>; + }; + opp@702000000 { + opp-hz = /bits/ 64 <702000000>; + opp-microvolt = <867000>; + }; + opp@1001000000 { + opp-hz = /bits/ 64 <1001000000>; + opp-microvolt = <927000>; + }; + opp@1209000000 { + opp-hz = /bits/ 64 <1209000000>; + opp-microvolt = <968000>; + }; + opp@1404000000 { + opp-hz = /bits/ 64 <1404000000>; + opp-microvolt = <1007000>; + }; + opp@1612000000 { + opp-hz = /bits/ 64 <1612000000>; + opp-microvolt = <1049000>; + }; + opp@1807000000 { + opp-hz = /bits/ 64 <1807000000>; + opp-microvolt = <1089000>; + }; + opp@2106000000 { + opp-hz = /bits/ 64 <2106000000>; + opp-microvolt = <1125000>; + }; + }; + cpus { #address-cells = <1>; #size-cells = <0>; @@ -81,6 +155,10 @@ reg = <0x000>; enable-method = "psci"; cpu-idle-states = <&CPU_SLEEP_0>; + operating-points-v2 = <&cluster0_opp>; + #cooling-cells = <2>; + #cooling-min-level = <0>; + #cooling-max-level = <7>; }; cpu1: cpu@1 { @@ -89,6 +167,10 @@ reg = <0x001>; enable-method = "psci"; cpu-idle-states = <&CPU_SLEEP_0>; + operating-points-v2 = <&cluster0_opp>; + #cooling-cells = <2>; + #cooling-min-level = <0>; + #cooling-max-level = <7>; }; cpu2: cpu@100 { @@ -97,6 +179,10 @@ reg = <0x100>; enable-method = "psci"; cpu-idle-states = <&CPU_SLEEP_0>; + operating-points-v2 = <&cluster1_opp>; + #cooling-cells = <2>; + #cooling-min-level = <0>; + #cooling-max-level = <7>; }; cpu3: cpu@101 { @@ -105,6 +191,10 @@ reg = <0x101>; enable-method = "psci"; cpu-idle-states = <&CPU_SLEEP_0>; + operating-points-v2 = <&cluster1_opp>; + #cooling-cells = <2>; + #cooling-min-level = <0>; + #cooling-max-level = <7>; }; idle-states {