From patchwork Fri Oct 24 23:40:19 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lina Iyer X-Patchwork-Id: 39504 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id BB5FC20341 for ; Fri, 24 Oct 2014 23:41:14 +0000 (UTC) Received: by mail-la0-f70.google.com with SMTP id gf13sf178848lab.1 for ; Fri, 24 Oct 2014 16:41:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=6JCUepalCtEpdWrBJbNevsR6huWjcKKV1FswoN/OlZ0=; b=cAtUKhboelzmi/XoP1qdYmubWaQ6zK33NNCl0LCUVAmKOkxRJlksZtgl1fEHXa1rFR nWsJ1WlFiOj902mHaNVCBHElCNE0TC7EGgBrSw55rzyzp216GLfzyqmV416clIrxLuzx Nw2NoDTPUaMfmfiHWgOcY2EPdvNuvodjjCCcUyIct48llDug6W9CmV4hc3scJXrmiA66 b+vltMsbZNDG4ryyrRzAGoKJI90zKaMuvTU7tuVpWdpFQeqX9amxJpiTwRtIpdwChY8w 3D77bP0dIvDnFnNpMdApg24Fx55wbl6XcCLH46zGSiBBcVV8nhcLD8s85AE1KO+NIE4Q fKVA== X-Gm-Message-State: ALoCoQl/tcrsiIHzW5NrmeY3LZ/fmUsJIkj+lj44A4ZtPq3xl6TpPqIHath8wBgLexNuzjdmexf4 X-Received: by 10.181.8.194 with SMTP id dm2mr1377448wid.2.1414194073568; Fri, 24 Oct 2014 16:41:13 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.153.5.43 with SMTP id cj11ls494586lad.85.gmail; Fri, 24 Oct 2014 16:41:13 -0700 (PDT) X-Received: by 10.112.97.135 with SMTP id ea7mr7645424lbb.46.1414194073351; Fri, 24 Oct 2014 16:41:13 -0700 (PDT) Received: from mail-lb0-f174.google.com (mail-lb0-f174.google.com. [209.85.217.174]) by mx.google.com with ESMTPS id am6si8905814lac.124.2014.10.24.16.41.13 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 24 Oct 2014 16:41:13 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.174 as permitted sender) client-ip=209.85.217.174; Received: by mail-lb0-f174.google.com with SMTP id p9so3393899lbv.33 for ; Fri, 24 Oct 2014 16:41:13 -0700 (PDT) X-Received: by 10.152.120.133 with SMTP id lc5mr7615772lab.62.1414194073272; Fri, 24 Oct 2014 16:41:13 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.84.229 with SMTP id c5csp518989lbz; Fri, 24 Oct 2014 16:41:12 -0700 (PDT) X-Received: by 10.66.171.135 with SMTP id au7mr7829917pac.80.1414194065979; Fri, 24 Oct 2014 16:41:05 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id pw4si5282886pbb.98.2014.10.24.16.41.05 for ; Fri, 24 Oct 2014 16:41:05 -0700 (PDT) Received-SPF: none (google.com: linux-arm-msm-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932111AbaJXXlB (ORCPT + 5 others); Fri, 24 Oct 2014 19:41:01 -0400 Received: from mail-pd0-f182.google.com ([209.85.192.182]:43894 "EHLO mail-pd0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932960AbaJXXkx (ORCPT ); Fri, 24 Oct 2014 19:40:53 -0400 Received: by mail-pd0-f182.google.com with SMTP id y10so2242537pdj.41 for ; Fri, 24 Oct 2014 16:40:53 -0700 (PDT) X-Received: by 10.66.161.3 with SMTP id xo3mr161998pab.131.1414194053419; Fri, 24 Oct 2014 16:40:53 -0700 (PDT) Received: from ubuntu.localdomain (proxy6-global253.qualcomm.com. [199.106.103.253]) by mx.google.com with ESMTPSA id fm15sm4774620pdb.58.2014.10.24.16.40.51 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 24 Oct 2014 16:40:52 -0700 (PDT) From: Lina Iyer To: daniel.lezcano@linaro.org, khilman@linaro.org, sboyd@codeaurora.org, galak@codeaurora.org, linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: lorenzo.pieralisi@arm.com, msivasub@codeaurora.org, devicetree@vger.kernel.org, Lina Iyer Subject: [PATCH v9 4/9] arm: dts: qcom: Add power-controller device node for 8084 Krait CPUs Date: Fri, 24 Oct 2014 17:40:19 -0600 Message-Id: <1414194024-55547-5-git-send-email-lina.iyer@linaro.org> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1414194024-55547-1-git-send-email-lina.iyer@linaro.org> References: <1414194024-55547-1-git-send-email-lina.iyer@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: lina.iyer@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.174 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Each Krait CPU in the QCOM 8084 SoC has an SAW power controller to regulate the power to the cpu and aide the core in entering idle states. Reference the SAW instance and associate the instance with the CPU core. Signed-off-by: Lina Iyer --- arch/arm/boot/dts/qcom-apq8084.dtsi | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/qcom-apq8084.dtsi b/arch/arm/boot/dts/qcom-apq8084.dtsi index 1f130bc..4466b9e 100644 --- a/arch/arm/boot/dts/qcom-apq8084.dtsi +++ b/arch/arm/boot/dts/qcom-apq8084.dtsi @@ -21,6 +21,7 @@ enable-method = "qcom,kpss-acc-v2"; next-level-cache = <&L2>; qcom,acc = <&acc0>; + qcom,saw = <&saw0>; }; cpu@1 { @@ -30,6 +31,7 @@ enable-method = "qcom,kpss-acc-v2"; next-level-cache = <&L2>; qcom,acc = <&acc1>; + qcom,saw = <&saw1>; }; cpu@2 { @@ -39,6 +41,7 @@ enable-method = "qcom,kpss-acc-v2"; next-level-cache = <&L2>; qcom,acc = <&acc2>; + qcom,saw = <&saw2>; }; cpu@3 { @@ -48,6 +51,7 @@ enable-method = "qcom,kpss-acc-v2"; next-level-cache = <&L2>; qcom,acc = <&acc3>; + qcom,saw = <&saw3>; }; L2: l2-cache { @@ -144,7 +148,27 @@ }; }; - saw_l2: regulator@f9012000 { + saw0: power-controller@f9089000 { + compatible = "qcom,apq8084-saw2-v2.1-cpu"; + reg = <0xf9089000 0x1000>; + }; + + saw1: power-controller@f9099000 { + compatible = "qcom,apq8084-saw2-v2.1-cpu"; + reg = <0xf9099000 0x1000>; + }; + + saw2: power-controller@f90a9000 { + compatible = "qcom,apq8084-saw2-v2.1-cpu"; + reg = <0xf90a9000 0x1000>; + }; + + saw3: power-controller@f90b9000 { + compatible = "qcom,apq8084-saw2-v2.1-cpu"; + reg = <0xf90b9000 0x1000>; + }; + + saw_l2: power-controller@f9012000 { compatible = "qcom,saw2"; reg = <0xf9012000 0x1000>; regulator;