From patchwork Tue Sep 23 23:51:18 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lina Iyer X-Patchwork-Id: 4960921 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id BB44D9F2BB for ; Tue, 23 Sep 2014 23:55:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C1B782010F for ; Tue, 23 Sep 2014 23:55:12 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D06572010C for ; Tue, 23 Sep 2014 23:55:11 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XWZsy-00047r-Mh; Tue, 23 Sep 2014 23:52:44 +0000 Received: from mail-pd0-f178.google.com ([209.85.192.178]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XWZsV-0003uM-Mh for linux-arm-kernel@lists.infradead.org; Tue, 23 Sep 2014 23:52:16 +0000 Received: by mail-pd0-f178.google.com with SMTP id ft15so7248566pdb.23 for ; Tue, 23 Sep 2014 16:51:53 -0700 (PDT) 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=gQtDM7saY0I6H9trKizVZWenzEOvEKezGP9FP+EJEnc=; b=JnUfldqY3h+RAtqbkh1ni+gVKHFUQa7Rib04XWMm5Ma/9YtJ+7c8rBvCN2BWszkXjO 13evM/elGT3VF6j63uc505ab1K9PBNSwpxgLJa8Zn0POLY5+2PTmAlEAZ4qnZUaU1FRC Ou/duRFckeILmqaavW5uOYZsftaVSeetEoFM7yPV24vh/344cDJ4hCbODb/JYlzBdlPz 9+U9d/+VysK7zyELQC3LTWVf+8zbZWPlqAzAadwQ81zEuCpKa1zOgoTc2k7LAJo9kneR Z7sBymXKHZD5ZRhHS2jkxZQYBqFTOUxq/nWQVy8LM/+ZwCNS3iOHsxv51d2lsY/qBMzR guCQ== X-Gm-Message-State: ALoCoQnZBMPwpSU66U3m+vginzWZgEbX+nCCUwljXPFOFmIUDkf4sMx31naUNBzlG84ll5dTtCI4 X-Received: by 10.70.140.12 with SMTP id rc12mr3510626pdb.84.1411516311506; Tue, 23 Sep 2014 16:51:51 -0700 (PDT) Received: from ubuntu.localdomain (proxy6-global253.qualcomm.com. [199.106.103.253]) by mx.google.com with ESMTPSA id ix1sm13033521pbc.60.2014.09.23.16.51.49 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 23 Sep 2014 16:51:50 -0700 (PDT) From: Lina Iyer To: galak@codeaurora.org, sboyd@codeaurora.org, daniel.lezcano@linaro.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v6 2/5] arm: dts: qcom: Add SPM device bindings for 8974 Date: Tue, 23 Sep 2014 17:51:18 -0600 Message-Id: <1411516281-58328-3-git-send-email-lina.iyer@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1411516281-58328-1-git-send-email-lina.iyer@linaro.org> References: <1411516281-58328-1-git-send-email-lina.iyer@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140923_165215_777410_B51E1736 X-CRM114-Status: GOOD ( 11.97 ) X-Spam-Score: -0.9 (/) Cc: msivasub@codeaurora.org, lorenzo.pieralisi@arm.com, khilman@linaro.org, Lina Iyer , linux-pm@vger.kernel.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add SPM device bindings for QCOM 8974 based cpus. SPM is the sub-system power manager and controls the logic around the cores (cpu and L2). Each core has an instance of SPM and controls only that core. Each cpu SPM is configured to support WFI and SPC (standalone-power collapse). Signed-off-by: Lina Iyer --- arch/arm/boot/dts/qcom-msm8974-pm.dtsi | 69 ++++++++++++++++++++++++++++++++++ arch/arm/boot/dts/qcom-msm8974.dtsi | 10 +++-- 2 files changed, 75 insertions(+), 4 deletions(-) create mode 100644 arch/arm/boot/dts/qcom-msm8974-pm.dtsi diff --git a/arch/arm/boot/dts/qcom-msm8974-pm.dtsi b/arch/arm/boot/dts/qcom-msm8974-pm.dtsi new file mode 100644 index 0000000..bbfb1d5 --- /dev/null +++ b/arch/arm/boot/dts/qcom-msm8974-pm.dtsi @@ -0,0 +1,69 @@ +/* Copyright (c) 2013-2014, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +&soc { + spm@f9089000 { + compatible = "qcom,spm-v2.1"; + #address-cells = <1>; + #size-cells = <1>; + reg = <0xf9089000 0x1000>; + qcom,cpu = <&CPU0>; + qcom,saw2-clk-div = <0x01>; + qcom,saw2-delays = <0x3C102800>; + qcom,saw2-enable = <0x01>; + qcom,saw2-spm-cmd-wfi = [03 0b 0f]; + qcom,saw2-spm-cmd-spc = [00 20 80 10 E8 5B 03 3B E8 5B 82 10 0B + 30 06 26 30 0F]; + }; + + spm@f9099000 { + compatible = "qcom,spm-v2.1"; + #address-cells = <1>; + #size-cells = <1>; + reg = <0xf9099000 0x1000>; + qcom,cpu = <&CPU1>; + qcom,saw2-clk-div = <0x01>; + qcom,saw2-delays = <0x3C102800>; + qcom,saw2-enable = <0x01>; + qcom,saw2-spm-cmd-wfi = [03 0b 0f]; + qcom,saw2-spm-cmd-spc = [00 20 80 10 E8 5B 03 3B E8 5B 82 10 0B + 30 06 26 30 0F]; + }; + + spm@f90a9000 { + compatible = "qcom,spm-v2.1"; + #address-cells = <1>; + #size-cells = <1>; + reg = <0xf90a9000 0x1000>; + qcom,cpu = <&CPU2>; + qcom,saw2-clk-div = <0x01>; + qcom,saw2-delays = <0x3C102800>; + qcom,saw2-enable = <0x01>; + qcom,saw2-spm-cmd-wfi = [03 0b 0f]; + qcom,saw2-spm-cmd-spc = [00 20 80 10 E8 5B 03 3B E8 5B 82 10 0B + 30 06 26 30 0F]; + }; + + spm@f90b9000 { + compatible = "qcom,spm-v2.1"; + #address-cells = <1>; + #size-cells = <1>; + reg = <0xf90b9000 0x1000>; + qcom,cpu = <&CPU3>; + qcom,saw2-clk-div = <0x01>; + qcom,saw2-delays = <0x3C102800>; + qcom,saw2-enable = <0x01>; + qcom,saw2-spm-cmd-wfi = [03 0b 0f]; + qcom,saw2-spm-cmd-spc = [00 20 80 10 E8 5B 03 3B E8 5B 82 10 0B + 30 06 26 30 0F]; + }; +}; diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom-msm8974.dtsi index 69dca2a..0580bc2 100644 --- a/arch/arm/boot/dts/qcom-msm8974.dtsi +++ b/arch/arm/boot/dts/qcom-msm8974.dtsi @@ -14,7 +14,7 @@ #size-cells = <0>; interrupts = <1 9 0xf04>; - cpu@0 { + CPU0: cpu@0 { compatible = "qcom,krait"; enable-method = "qcom,kpss-acc-v2"; device_type = "cpu"; @@ -23,7 +23,7 @@ qcom,acc = <&acc0>; }; - cpu@1 { + CPU1: cpu@1 { compatible = "qcom,krait"; enable-method = "qcom,kpss-acc-v2"; device_type = "cpu"; @@ -32,7 +32,7 @@ qcom,acc = <&acc1>; }; - cpu@2 { + CPU2: cpu@2 { compatible = "qcom,krait"; enable-method = "qcom,kpss-acc-v2"; device_type = "cpu"; @@ -41,7 +41,7 @@ qcom,acc = <&acc2>; }; - cpu@3 { + CPU3: cpu@3 { compatible = "qcom,krait"; enable-method = "qcom,kpss-acc-v2"; device_type = "cpu"; @@ -238,3 +238,5 @@ }; }; }; + +#include "qcom-msm8974-pm.dtsi"