From patchwork Tue Nov 17 22:37:50 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lina Iyer X-Patchwork-Id: 7643331 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.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 8A2859F2EC for ; Tue, 17 Nov 2015 22:49:03 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AED022055C for ; Tue, 17 Nov 2015 22:49:02 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D5E972051F for ; Tue, 17 Nov 2015 22:49:01 +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 1Zyp1h-0006zQ-FJ; Tue, 17 Nov 2015 22:47:01 +0000 Received: from mail-pa0-x231.google.com ([2607:f8b0:400e:c03::231]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZyouS-0005mK-0D for linux-arm-kernel@lists.infradead.org; Tue, 17 Nov 2015 22:39:35 +0000 Received: by pabfh17 with SMTP id fh17so22944565pab.0 for ; Tue, 17 Nov 2015 14:39:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro_org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=gQWLnnusobSogbbA6xdCxF7d6N3k5fOB6Lcx0U0Knik=; b=E3tiGNdYHy3UgEIbgcgJymbeAUdOPyEbOJrYxwAcyBgUa+jtpaeXoYfazNVJ5dPe6/ r9QixNydF2+mof74apUoD+jq9Vr8zHOgigkcsrKvj5bXVpDpCXw1HjijkftHHJVUDeAO FtIhjINAakvBIjS3phiznNpUuswjlBKFUiCdQdyUU/HcvORmEHP2qTYOQyrwzolZmmiO kv1E+b0xnJ58y52Ebax//meQYhUTsX580c8c/OSMBGP4R9QG/KvIL/SYMyxuByrbXlAv 04Ryj2mbYsi//XJsyjf7+CBlqaiWigi3WdNsmom+FvL2goLdUvigOOWUSFh9VUtcnvjG esAw== 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=gQWLnnusobSogbbA6xdCxF7d6N3k5fOB6Lcx0U0Knik=; b=HVfX9OJ3Z1HNxuk9U/nsWS94wJgoMl4iFctvIn0zJs8YPAsowpSDs1V10KzEt9DZyX HMAUPlwOlxxfXN3W7RbkSq6LaGUaz7uvE0HfRRdRoZq3yM23AmiatnDdeeiXQkAQtKdi 3IfF+5WzNrjLKCcd1rCAPfA2SHsUxG79/avXpRutDIgPT2fqYbLevpV/V7UGB45fRsGa 9D+xDY0QJgN/g4bTCxg4ieVxVh2L4LyuDT618me/w5kHs6yAG6JvKS63lm+Aza2PGi8+ /vfnE2HApoB2GnB+oAvpJfGSbkJENRbQhKRRv4VzKgeFeeLqJfNiw2xDJ+cMPkKZqNV7 jlcw== X-Gm-Message-State: ALoCoQlZ5MgR8T99v9SWNsCyu0TJ2SSZ7PopJ+1ESUg1kmTRtDMg7o+GEJQ3Ys8y7Flukmj4id6Z X-Received: by 10.66.141.73 with SMTP id rm9mr1212306pab.96.1447799955841; Tue, 17 Nov 2015 14:39:15 -0800 (PST) Received: from ubuntu.localdomain ([8.42.77.226]) by smtp.gmail.com with ESMTPSA id hy1sm14875199pbb.63.2015.11.17.14.39.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 17 Nov 2015 14:39:09 -0800 (PST) From: Lina Iyer To: ulf.hansson@linaro.org, khilman@linaro.org, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH RFC 26/27] ARM64: dts: Add PSCI cpuidle support for MSM8916 Date: Tue, 17 Nov 2015 15:37:50 -0700 Message-Id: <1447799871-56374-27-git-send-email-lina.iyer@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1447799871-56374-1-git-send-email-lina.iyer@linaro.org> References: <1447799871-56374-1-git-send-email-lina.iyer@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151117_143932_492198_FE7C1EEB X-CRM114-Status: GOOD ( 10.11 ) X-Spam-Score: -2.6 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: k.kozlowski@samsung.com, lorenzo.pieralisi@arm.com, ahaslam@baylibre.com, linux-arm-msm@vger.kernel.org, sboyd@codeaurora.org, msivasub@codeaurora.org, geert@linux-m68k.org, Lina Iyer , agross@codeaurora.org, mtitinger@baylibre.com 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=-4.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,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. 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 7be7c23..5806438 100644 --- a/arch/arm64/boot/dts/qcom/msm8916.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi @@ -51,25 +51,49 @@ 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 = "qcom,idle-state-spc", + "arm,idle-state"; + arm,psci-suspend-param = <0x40000002>; + entry-latency-us = <130>; + exit-latency-us = <150>; + min-residency-us = <2000>; + }; + }; + }; + + psci { + compatible = "arm,psci-1.0"; + method = "smc"; }; timer {