From patchwork Wed Jun 22 19:36:48 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lina Iyer X-Patchwork-Id: 70692 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp75069qgy; Wed, 22 Jun 2016 12:38:22 -0700 (PDT) X-Received: by 10.66.216.202 with SMTP id os10mr36224800pac.91.1466624279370; Wed, 22 Jun 2016 12:37:59 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k126si1404443pfc.180.2016.06.22.12.37.59; Wed, 22 Jun 2016 12:37:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752184AbcFVTh6 (ORCPT + 7 others); Wed, 22 Jun 2016 15:37:58 -0400 Received: from mail-pa0-f49.google.com ([209.85.220.49]:34940 "EHLO mail-pa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752125AbcFVTh5 (ORCPT ); Wed, 22 Jun 2016 15:37:57 -0400 Received: by mail-pa0-f49.google.com with SMTP id hl6so19556775pac.2 for ; Wed, 22 Jun 2016 12:37:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=+BP94JRv+M04uJlhM0bWMQcrB1H5uLG7ygHtq1iaHnA=; b=KMDxl4pvAMx7nNEpMkRfDyE4wcIf0vJBGh6PWD12hWP7NW3y6XNekB0SVdPd09o+ws 1MPzDv3txqEQv6M03oAxnXaZXiecbkZ1STVsTGFqId/TgE83PRKlMT0q8nVuc12Hkguw OE3V6il9HkOkbgaeqKuMvCsesZV8bYoGMKxow= 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=+BP94JRv+M04uJlhM0bWMQcrB1H5uLG7ygHtq1iaHnA=; b=ayRsbnGFs3c5rgdBk4GfXvBJgfU8pMmoguSgNQaHU/i+kktA0yi+Anzn1zwtimvea0 bOgmHxsyYYHVoOvCeMG4zB+Kn6W9OAdyWzHvZchzGUQm6fmo4C0oKeMDrf+ZdIdymHen UOAgLDmZ/ix2fLyXtbp9ihO6wkkmzX5TuCoaghmXHq3DETqdPkN/5H+nb4GuhjkjgfZZ vRpWgulFbNJrgaTtGguKcQwanke5vy9t2I4zDkCkZ3lW4RLi1XM6aIltYJw7FNAGh+y3 i9OGUg89qQN9Kfl5xiDdjMhSfIxja9zcr4+9bRC918bwObQYTXskS3I9K2sJY+Uw7owb 5w6Q== X-Gm-Message-State: ALyK8tKyb7dnIr8puhf2a57MkxSwf58wo1VQwn0OJBmBn6jqXcyqirgNfSmiyiQDbFQmcLdE X-Received: by 10.67.23.48 with SMTP id hx16mr36475359pad.7.1466624276686; Wed, 22 Jun 2016 12:37:56 -0700 (PDT) Received: from ubuntu.localdomain ([172.56.9.151]) by smtp.gmail.com with ESMTPSA id t4sm1563368paw.32.2016.06.22.12.37.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 22 Jun 2016 12:37:55 -0700 (PDT) From: Lina Iyer To: ulf.hansson@linaro.org, khilman@kernel.org, rjw@rjwysocki.net, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: geert@linux-m68k.org, k.kozlowski@samsung.com, andy.gross@linaro.org, sboyd@codeaurora.org, linux-arm-msm@vger.kernel.org, lorenzo.pieralisi@arm.com, ahaslam@baylibre.com, mtitinger@baylibre.com, Lina Iyer , devicetree@vger.kernel.org Subject: [PATCH 13/14] ARM64: dts: Add PSCI cpuidle support for MSM8916 Date: Wed, 22 Jun 2016 13:36:48 -0600 Message-Id: <1466624209-27432-14-git-send-email-lina.iyer@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1466624209-27432-1-git-send-email-lina.iyer@linaro.org> References: <1466624209-27432-1-git-send-email-lina.iyer@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add device bindings for CPUs to suspend using PSCI as the enable-method. Cc: Signed-off-by: Lina Iyer --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe devicetree" 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/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi index 9681200..3029773 100644 --- a/arch/arm64/boot/dts/qcom/msm8916.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi @@ -62,6 +62,8 @@ compatible = "arm,cortex-a53", "arm,armv8"; reg = <0x0>; next-level-cache = <&L2_0>; + enable-method = "psci"; + cpu-idle-states = <&CPU_SPC>; }; CPU1: cpu@1 { @@ -69,6 +71,8 @@ compatible = "arm,cortex-a53", "arm,armv8"; reg = <0x1>; next-level-cache = <&L2_0>; + enable-method = "psci"; + cpu-idle-states = <&CPU_SPC>; }; CPU2: cpu@2 { @@ -76,6 +80,8 @@ compatible = "arm,cortex-a53", "arm,armv8"; reg = <0x2>; next-level-cache = <&L2_0>; + enable-method = "psci"; + cpu-idle-states = <&CPU_SPC>; }; CPU3: cpu@3 { @@ -83,12 +89,30 @@ compatible = "arm,cortex-a53", "arm,armv8"; reg = <0x3>; next-level-cache = <&L2_0>; + enable-method = "psci"; + cpu-idle-states = <&CPU_SPC>; }; L2_0: l2-cache { compatible = "cache"; cache-level = <2>; }; + + idle-states { + CPU_SPC: spc { + compatible = "arm,idle-state"; + arm,psci-suspend-param = <0x40000002>; + entry-latency-us = <130>; + exit-latency-us = <150>; + min-residency-us = <2000>; + local-timer-stop; + }; + }; + }; + + psci { + compatible = "arm,psci-1.0"; + method = "smc"; }; timer {