From patchwork Tue Aug 12 19:43:56 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lina Iyer X-Patchwork-Id: 35314 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oi0-f72.google.com (mail-oi0-f72.google.com [209.85.218.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D108021137 for ; Tue, 12 Aug 2014 19:44:28 +0000 (UTC) Received: by mail-oi0-f72.google.com with SMTP id a141sf41760579oig.3 for ; Tue, 12 Aug 2014 12:44:28 -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=z06gsM0egkVVM8/NTt714b45QM7xiNpppbQCgq5IBwA=; b=E+M2Am42pEoQDfDtt2Uogp+ueTWg4v/UTPezDiwRQkWOoTkGwn4bmLgM7jjU4yLqGN oayaMH7IKd8gaOX6Iy4e88m8hehDmpIIuF7LDH3JGvAZuuMuw/2t9VgZk6gc8j///P1Q ZmxA3S+3XfqaYfaRlrMYUAHnXacz0fEietW9V6VZ51kAmqfsNwlXNKiNFzDp4LDmGkNK PLNM0xjwJqO6DooagbGTnTDT4QKk/CoYmVCYySD81gmaor3gOwXeTYs7M6ff6ARo3/+b IEt45qufYEdBVcWrDXLy+BfPsjvZwn66ZFtMnDWaIUuuhJF1K0JzfQUjvWQwrM1GYElw /NzA== X-Gm-Message-State: ALoCoQkQC01NUKTlY0WXtVjR3pX6zN4akAk92mGG5tD3VgUhKZj02dR6Zvq/pvurGcS7Nxu2WmdW X-Received: by 10.42.100.138 with SMTP id a10mr464788ico.32.1407872668487; Tue, 12 Aug 2014 12:44:28 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.92.228 with SMTP id b91ls270888qge.88.gmail; Tue, 12 Aug 2014 12:44:28 -0700 (PDT) X-Received: by 10.220.196.147 with SMTP id eg19mr2655617vcb.60.1407872668388; Tue, 12 Aug 2014 12:44:28 -0700 (PDT) Received: from mail-vc0-f171.google.com (mail-vc0-f171.google.com [209.85.220.171]) by mx.google.com with ESMTPS id k11si8811199vcy.20.2014.08.12.12.44.28 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 12 Aug 2014 12:44:28 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.171 as permitted sender) client-ip=209.85.220.171; Received: by mail-vc0-f171.google.com with SMTP id hq11so13928887vcb.16 for ; Tue, 12 Aug 2014 12:44:28 -0700 (PDT) X-Received: by 10.220.118.136 with SMTP id v8mr2856484vcq.50.1407872668142; Tue, 12 Aug 2014 12:44:28 -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.221.37.5 with SMTP id tc5csp274423vcb; Tue, 12 Aug 2014 12:44:27 -0700 (PDT) X-Received: by 10.68.247.72 with SMTP id yc8mr6159183pbc.114.1407872666814; Tue, 12 Aug 2014 12:44:26 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id rt17si16761455pac.146.2014.08.12.12.44.26 for ; Tue, 12 Aug 2014 12:44:26 -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 S1754851AbaHLToZ (ORCPT + 4 others); Tue, 12 Aug 2014 15:44:25 -0400 Received: from mail-pa0-f42.google.com ([209.85.220.42]:34346 "EHLO mail-pa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754383AbaHLToW (ORCPT ); Tue, 12 Aug 2014 15:44:22 -0400 Received: by mail-pa0-f42.google.com with SMTP id lf10so13623090pab.1 for ; Tue, 12 Aug 2014 12:44:22 -0700 (PDT) X-Received: by 10.70.103.132 with SMTP id fw4mr6041128pdb.99.1407872661960; Tue, 12 Aug 2014 12:44:21 -0700 (PDT) Received: from ubuntu.localdomain (proxy6-global253.qualcomm.com. [199.106.103.253]) by mx.google.com with ESMTPSA id n10sm23474696pdp.72.2014.08.12.12.44.20 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 12 Aug 2014 12:44:21 -0700 (PDT) From: Lina Iyer To: daniel.lezcano@linaro.org, khilman@linaro.org, amit.kucheria@linaro.org, sboyd@codeaurora.org, davidb@codeaurora.org, galak@codeaurora.org, linux-arm-msm@vger.kernel.org Cc: msivasub@codeaurora.org, Lina Iyer , Praveen Chidambaram Subject: [PATCH v2 06/10] arm: dts: qcom: Add SPM device bindings for 8974 Date: Tue, 12 Aug 2014 13:43:56 -0600 Message-Id: <1407872640-6732-7-git-send-email-lina.iyer@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1407872640-6732-1-git-send-email-lina.iyer@linaro.org> References: <1407872640-6732-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.220.171 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: , 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) and L2 can do retention (clock-gating). Signed-off-by: Praveen Chidambaram Signed-off-by: Lina Iyer --- arch/arm/boot/dts/qcom-msm8974-pm.dtsi | 91 ++++++++++++++++++++++++++++++++++ arch/arm/boot/dts/qcom-msm8974.dtsi | 2 + 2 files changed, 93 insertions(+) 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..d7d81ca --- /dev/null +++ b/arch/arm/boot/dts/qcom-msm8974-pm.dtsi @@ -0,0 +1,91 @@ +/* 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 { + qcom,spm@f9089000 { + compatible = "qcom,spm-v2.1"; + #address-cells = <1>; + #size-cells = <1>; + reg = <0xf9089000 0x1000>; + qcom,name = "core0"; + qcom,cpu = <&CPU0>; + qcom,saw2-cfg = <0x01>; + qcom,saw2-spm-dly= <0x3C102800>; + qcom,saw2-spm-ctl = <0x1>; + 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]; + }; + + qcom,spm@f9099000 { + compatible = "qcom,spm-v2.1"; + #address-cells = <1>; + #size-cells = <1>; + reg = <0xf9099000 0x1000>; + qcom,name = "core1"; + qcom,cpu = <&CPU1>; + qcom,saw2-cfg = <0x01>; + qcom,saw2-spm-dly= <0x3C102800>; + qcom,saw2-spm-ctl = <0x1>; + 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]; + }; + + qcom,spm@f90a9000 { + compatible = "qcom,spm-v2.1"; + #address-cells = <1>; + #size-cells = <1>; + reg = <0xf90a9000 0x1000>; + qcom,name = "core2"; + qcom,cpu = <&CPU2>; + qcom,saw2-cfg = <0x01>; + qcom,saw2-spm-dly= <0x3C102800>; + qcom,saw2-spm-ctl = <0x1>; + 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]; + }; + + qcom,spm@f90b9000 { + compatible = "qcom,spm-v2.1"; + #address-cells = <1>; + #size-cells = <1>; + reg = <0xf90b9000 0x1000>; + qcom,name = "core3"; + qcom,cpu = <&CPU3>; + qcom,saw2-cfg = <0x01>; + qcom,saw2-spm-dly= <0x3C102800>; + qcom,saw2-spm-ctl = <0x1>; + 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]; + }; + + qcom,spm@f9012000 { + compatible = "qcom,spm-v2.1"; + #address-cells = <1>; + #size-cells = <1>; + reg = <0xf9012000 0x1000>; + qcom,name = "system-l2"; + qcom,cpu-vctl-list = <&CPU0 &CPU1 &CPU2 &CPU3>; + qcom,saw2-cfg = <0x14>; + qcom,saw2-spm-dly= <0x3C102800>; + qcom,saw2-spm-ctl = <0x1>; + qcom,vctl-timeout-us = <50>; + qcom,vctl-port = <0x0>; + qcom,phase-port = <0x1>; + qcom,pfm-port = <0x2>; + qcom,cpu-vctl-mask = <0xf>; + qcom,saw2-spm-cmd-ret = [1f 00 03 00 0f]; + }; +}; diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom-msm8974.dtsi index 15a75e4..0580bc2 100644 --- a/arch/arm/boot/dts/qcom-msm8974.dtsi +++ b/arch/arm/boot/dts/qcom-msm8974.dtsi @@ -238,3 +238,5 @@ }; }; }; + +#include "qcom-msm8974-pm.dtsi"