From patchwork Sat Dec 5 08:53:04 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "pi-cheng.chen" X-Patchwork-Id: 57739 Delivered-To: patch@linaro.org Received: by 10.112.147.194 with SMTP id tm2csp71911lbb; Sat, 5 Dec 2015 00:53:24 -0800 (PST) X-Received: by 10.67.8.98 with SMTP id dj2mr28287500pad.76.1449305601204; Sat, 05 Dec 2015 00:53:21 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ra6si25488827pab.90.2015.12.05.00.53.20; Sat, 05 Dec 2015 00:53:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-pm-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-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dkim=neutral (body hash did not verify) header.i=@linaro-org.20150623.gappssmtp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753203AbbLEIxU (ORCPT + 11 others); Sat, 5 Dec 2015 03:53:20 -0500 Received: from mail-pf0-f182.google.com ([209.85.192.182]:36858 "EHLO mail-pf0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752898AbbLEIxT (ORCPT ); Sat, 5 Dec 2015 03:53:19 -0500 Received: by pfdd184 with SMTP id d184so38252946pfd.3 for ; Sat, 05 Dec 2015 00:53:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=TrSc1cPW2GLmhy6TJzmkupeAxYjhRLAPYXSAuQcgj2I=; b=Pfor7cqFjkrDnXLeLsvnk4y9s8dxVvW84cF6D55zAAV+dFntiS3XF75/dxz+X3f4Yc zC77EHY/SSlW+g/a0c9GES7tAfytky7hjYkb/QBX2xywl+JnYBJcUFBQAIPqUSM4GA7s 1TLk0FwpSZdYNFAh1RSZScs87xh2G6nmFQbSWICmdvg4TliA8jvAoG4fAwAqHHWfh1my S1dtJUt8/RypqDSOCDOFSPnzNZGBcPWaJAjo+gXP7znbyc3pxhzJ7FAYLTELecQVowBQ 8bzUlql0zmMsyLj6Oti95k2tXc71yy/rOh9NCA4GrNux3OGwAvF/F3AFOhKR3yKMNBJ+ qLlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=TrSc1cPW2GLmhy6TJzmkupeAxYjhRLAPYXSAuQcgj2I=; b=Oe4yAG3EcOVckToMZL0XcZ93C3mJIBJTUpPge0BquQz1NdZDEbB5QN7m1rsMpiqW0J Sfvk5utLIV8VLZ5re9clObLSoXY99efgb5hKs+e9xoK6v7Qp4nsLEpqm/qmXYXHauEls QnMet/BX4xE6M8h4Sr1in7Obn7KpggLravxAql1ev6v3fIOMnbJLGFoBY37xX2GNIUR7 yJYxE7R36WLZfALQQnDvQG6eDg9M9Qo1HX6hbrkEk2Twmnl6cP+FtDiVsRo3I2AEXyeP B7SqKTNn0V/xFk0uxyeM+RTFmW/3TZDtiFYIsIemV17YkXuJtTsSVkADg31sFD0aaknM X9kQ== X-Gm-Message-State: ALoCoQmzju96YQ7MpGci+1xPfi3j2rqI+Rm4RyvYjLW6STheGLvxrrDeQk9QEPKGvpLbuxTgTbWc X-Received: by 10.98.89.196 with SMTP id k65mr28041879pfj.12.1449305598544; Sat, 05 Dec 2015 00:53:18 -0800 (PST) Received: from localhost.localdomain ([124.219.30.17]) by smtp.googlemail.com with ESMTPSA id r20sm21782704pfa.93.2015.12.05.00.53.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 05 Dec 2015 00:53:18 -0800 (PST) From: Pi-Cheng Chen To: Viresh Kumar , Matthias Brugger Cc: Michael Turquette , Daniel Kurtz , linux-mediatek@lists.infradead.org, linaro-kernel@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 2/2] ARM64: dts: mt8173: Add CPU OPP, clock and regulator supply properties Date: Sat, 5 Dec 2015 16:53:04 +0800 Message-Id: <1449305584-414-3-git-send-email-pi-cheng.chen@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1449305584-414-1-git-send-email-pi-cheng.chen@linaro.org> References: <1449305584-414-1-git-send-email-pi-cheng.chen@linaro.org> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Add operating-points-v2, clock, and regulator supply properties required by mt8173-cpufreq driver to enable it. Signed-off-by: Pi-Cheng Chen --- This patch is based on the patch[1] that adds underlying clock MUX for MT8173 which is needed by mt8173-cpufreq driver but not yet picked. [1] http://article.gmane.org/gmane.linux.kernel.clk/325 --- arch/arm64/boot/dts/mediatek/mt8173-evb.dts | 18 ++++++ arch/arm64/boot/dts/mediatek/mt8173.dtsi | 90 +++++++++++++++++++++++++++++ 2 files changed, 108 insertions(+) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-pm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm64/boot/dts/mediatek/mt8173-evb.dts b/arch/arm64/boot/dts/mediatek/mt8173-evb.dts index 811cb76..5b6321b 100644 --- a/arch/arm64/boot/dts/mediatek/mt8173-evb.dts +++ b/arch/arm64/boot/dts/mediatek/mt8173-evb.dts @@ -405,6 +405,24 @@ status = "okay"; }; +&cpu0 { + proc-supply = <&mt6397_vpca15_reg>; +}; + +&cpu1 { + proc-supply = <&mt6397_vpca15_reg>; +}; + +&cpu2 { + proc-supply = <&da9211_vcpu_reg>; + sram-supply = <&mt6397_vsramca7_reg>; +}; + +&cpu3 { + proc-supply = <&da9211_vcpu_reg>; + sram-supply = <&mt6397_vsramca7_reg>; +}; + &uart0 { status = "okay"; }; diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi index 4dd5f93..fce1e48 100644 --- a/arch/arm64/boot/dts/mediatek/mt8173.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8173.dtsi @@ -24,6 +24,80 @@ #address-cells = <2>; #size-cells = <2>; + cluster0_opp: opp_table0 { + compatible = "operating-points-v2"; + opp-shared; + opp00 { + opp-hz = /bits/ 64 <507000000>; + opp-microvolt = <859000>; + }; + opp01 { + opp-hz = /bits/ 64 <702000000>; + opp-microvolt = <908000>; + }; + opp02 { + opp-hz = /bits/ 64 <1001000000>; + opp-microvolt = <983000>; + }; + opp03 { + opp-hz = /bits/ 64 <1105000000>; + opp-microvolt = <1009000>; + }; + opp04 { + opp-hz = /bits/ 64 <1183000000>; + opp-microvolt = <1028000>; + }; + opp05 { + opp-hz = /bits/ 64 <1404000000>; + opp-microvolt = <1083000>; + }; + opp06 { + opp-hz = /bits/ 64 <1508000000>; + opp-microvolt = <1109000>; + }; + opp07 { + opp-hz = /bits/ 64 <1573000000>; + opp-microvolt = <1125000>; + }; + }; + + cluster1_opp: opp_table1 { + compatible = "operating-points-v2"; + opp-shared; + opp00 { + opp-hz = /bits/ 64 <507000000>; + opp-microvolt = <828000>; + }; + opp01 { + opp-hz = /bits/ 64 <702000000>; + opp-microvolt = <867000>; + }; + opp02 { + opp-hz = /bits/ 64 <1001000000>; + opp-microvolt = <927000>; + }; + opp03 { + opp-hz = /bits/ 64 <1209000000>; + opp-microvolt = <968000>; + }; + opp04 { + opp-hz = /bits/ 64 <1404000000>; + opp-microvolt = <1007000>; + }; + opp05 { + opp-hz = /bits/ 64 <1612000000>; + opp-microvolt = <1049000>; + }; + opp06 { + opp-hz = /bits/ 64 <1807000000>; + opp-microvolt = <1089000>; + }; + opp07 { + opp-hz = /bits/ 64 <1989000000>; + opp-microvolt = <1125000>; + }; + }; + cpus { #address-cells = <1>; #size-cells = <0>; @@ -54,6 +128,10 @@ reg = <0x000>; enable-method = "psci"; cpu-idle-states = <&CPU_SLEEP_0>; + clocks = <&infracfg CLK_INFRA_CA53SEL>, + <&apmixedsys CLK_APMIXED_MAINPLL>; + clock-names = "cpu", "intermediate"; + operating-points-v2 = <&cluster0_opp>; }; cpu1: cpu@1 { @@ -62,6 +140,10 @@ reg = <0x001>; enable-method = "psci"; cpu-idle-states = <&CPU_SLEEP_0>; + clocks = <&infracfg CLK_INFRA_CA53SEL>, + <&apmixedsys CLK_APMIXED_MAINPLL>; + clock-names = "cpu", "intermediate"; + operating-points-v2 = <&cluster0_opp>; }; cpu2: cpu@100 { @@ -70,6 +152,10 @@ reg = <0x100>; enable-method = "psci"; cpu-idle-states = <&CPU_SLEEP_0>; + clocks = <&infracfg CLK_INFRA_CA57SEL>, + <&apmixedsys CLK_APMIXED_MAINPLL>; + clock-names = "cpu", "intermediate"; + operating-points-v2 = <&cluster1_opp>; }; cpu3: cpu@101 { @@ -78,6 +164,10 @@ reg = <0x101>; enable-method = "psci"; cpu-idle-states = <&CPU_SLEEP_0>; + clocks = <&infracfg CLK_INFRA_CA57SEL>, + <&apmixedsys CLK_APMIXED_MAINPLL>; + clock-names = "cpu", "intermediate"; + operating-points-v2 = <&cluster1_opp>; }; idle-states {