From patchwork Fri Feb 12 20:50:37 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lina Iyer X-Patchwork-Id: 8297421 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id A9D379FC53 for ; Fri, 12 Feb 2016 20:51:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CCAE820459 for ; Fri, 12 Feb 2016 20:51:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E03F620454 for ; Fri, 12 Feb 2016 20:51:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751189AbcBLUvq (ORCPT ); Fri, 12 Feb 2016 15:51:46 -0500 Received: from mail-pa0-f43.google.com ([209.85.220.43]:33360 "EHLO mail-pa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751060AbcBLUvq (ORCPT ); Fri, 12 Feb 2016 15:51:46 -0500 Received: by mail-pa0-f43.google.com with SMTP id fl4so40181888pad.0 for ; Fri, 12 Feb 2016 12:51:45 -0800 (PST) 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=340o9o6K42v7ekOgHdahut2UZH4w9Z53/78yLyG1HIY=; b=FvjtonBeMMvofKS+EB6yU96V3rsh+p3Bw6YJScmByQhcTlBYcBUHPwCUBDcXCpSTvY NvVkLxMiAGTybJVjmW3V08Es1jJUPnbUYWUpnIPct0NMsaJPDBvFaank2TZG8oI09DVh HILUYSt6PP7ugQ8DZIWowTuQ9JRQiVbJZRMMk= 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=340o9o6K42v7ekOgHdahut2UZH4w9Z53/78yLyG1HIY=; b=XW5cOFrZ3EAngUVCCSwXI71xNFz/Tob+Z1ophDsHod1HEA0MAalRE0+asIKzypR7Lq GbO8NpMHBcWuOA3YNJgiWYnm6erW8rji8ACkoLynRqYc5HAsZVifYieiX96jP/rtf8Mz EakfpfkyKXF+ZgNuqAv4pmt3tjy2UkclKIbK/QEGjvy1njeEKUEZKM0peED0WHV78/5I SLjKxgYGZBflQiCu1dxZP/GLHBP92PqTkdQbFiBs1NrooYsoBvw0xQ+J3bqDmXpyQpy8 zXri6hSRrA4533aKmLFzFicuqHDxT1tUILW07wTVJpuvdEqy1A5NroL3BTT9w5AhpLD1 oKqw== X-Gm-Message-State: AG10YOTtIJla01/1XNmLfXyzo1FQNxmf6xRjS1JwN7f4eIPU6qFLI01GWcnwfMppouQFCNXN X-Received: by 10.66.147.164 with SMTP id tl4mr5000479pab.40.1455310305639; Fri, 12 Feb 2016 12:51:45 -0800 (PST) Received: from ubuntu.localdomain ([172.56.8.98]) by smtp.gmail.com with ESMTPSA id x12sm21401070pfi.88.2016.02.12.12.51.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 12 Feb 2016 12:51:44 -0800 (PST) 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, msivasub@codeaurora.org, agross@codeaurora.org, sboyd@codeaurora.org, linux-arm-msm@vger.kernel.org, lorenzo.pieralisi@arm.com, ahaslam@baylibre.com, mtitinger@baylibre.com, Lina Iyer , Subject: [RFC v2 11/12] ARM64: dts: Add PSCI cpuidle support for MSM8916 Date: Fri, 12 Feb 2016 13:50:37 -0700 Message-Id: <1455310238-8963-12-git-send-email-lina.iyer@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1455310238-8963-1-git-send-email-lina.iyer@linaro.org> References: <1455310238-8963-1-git-send-email-lina.iyer@linaro.org> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham 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 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(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi index 9153214..b7839a8 100644 --- a/arch/arm64/boot/dts/qcom/msm8916.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi @@ -61,27 +61,51 @@ device_type = "cpu"; compatible = "arm,cortex-a53", "arm,armv8"; reg = <0x0>; + enable-method = "psci"; + cpu-idle-states = <&CPU_SPC>; }; CPU1: cpu@1 { device_type = "cpu"; compatible = "arm,cortex-a53", "arm,armv8"; reg = <0x1>; + enable-method = "psci"; + cpu-idle-states = <&CPU_SPC>; }; CPU2: cpu@2 { device_type = "cpu"; compatible = "arm,cortex-a53", "arm,armv8"; reg = <0x2>; + enable-method = "psci"; + cpu-idle-states = <&CPU_SPC>; }; CPU3: cpu@3 { device_type = "cpu"; compatible = "arm,cortex-a53", "arm,armv8"; reg = <0x3>; + enable-method = "psci"; + cpu-idle-states = <&CPU_SPC>; + }; + + 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 { compatible = "arm,armv8-timer"; interrupts = ,