Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2850604yba; Mon, 6 May 2019 12:35:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqzti81aG0UJUD2eZ7+Sr0qZdnYn31RuahWyYVXnb6I8aX5/t17gbebU7MWoWuEkE5BMG0e+ X-Received: by 2002:a17:902:22f:: with SMTP id 44mr34203629plc.175.1557171303496; Mon, 06 May 2019 12:35:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557171303; cv=none; d=google.com; s=arc-20160816; b=G+IN8MSwqvUleB+uEFIuL3VJlbGvjZXCiqQpozld0CMZCbdRDMiY9rboh8zgdhBDaf WYHim4FxgAIl0rLH9sqzHQkwUUkQ4ZvbFa0rBxR6BbEWnlI2wCnfiIm3VFrmQYPTU8Qt l0gev8E/F4NYQVArZaiSJDzs9g19PswFpYChhvlrgkNHVeb0B5LVj19QmbP+ykbZc8p2 SaTx6F8q9wx8nCyyym8PjIb/tG5yRELv1TUGujNMk+QyghfRwNLLoNRdhVmyL6bI/+lJ 7mTVZy5AkKXsVSUFGKe5zsIO+FC7CirxofvtYZxUVjXSmm5SLk9VULxtAVyuPa+pmJnX 8xPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=gzqt154DTH5ImHOjvijUWjXzMNwVv74MLXkB9lgKrrw=; b=jwcg4mMOUNedVGzsOZzV1uGYo0eojItm8PKoNJGFimP8bTWUM82k22+Wk+VFpi346W ynmZTQ3a4Nit0fxHqwkJdUmwKEIy3qbTkqhRf2QsyqaXPQzYxrSIdDeQ1tvfMqT78cKe 3FVmNwJgJOhXIYGH/rcJB7cZNMPpGFXx2npAALajzYkDFIncu8h6FWCmspgVBcst0/0W u7qV5c97pgMCdBkEfSzgUti6koObXr1Th2z26bt9ebrqnNi78gRVzMBuhDmoXnEPz+od 6hFrYnqeEjGuXPURjLcVR07JcnkUB5PSxuLs0eXu3uHBAG3C1aTTtd1UOhEpaUZJ7FYm Os+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nNjHFpzz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t11si8891118pgj.284.2019.05.06.12.34.47; Mon, 06 May 2019 12:35:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nNjHFpzz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726656AbfEFTbm (ORCPT + 99 others); Mon, 6 May 2019 15:31:42 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:40240 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726302AbfEFTbl (ORCPT ); Mon, 6 May 2019 15:31:41 -0400 Received: by mail-lj1-f195.google.com with SMTP id d15so12131288ljc.7 for ; Mon, 06 May 2019 12:31:40 -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:mime-version :content-transfer-encoding; bh=gzqt154DTH5ImHOjvijUWjXzMNwVv74MLXkB9lgKrrw=; b=nNjHFpzz2vKI+badclYzMfOso23Nvg4F0z3eEjQbGkckMUxF028F3XqkKl/++V119q rmijiMxVjktUYfhRDo+EilRRHAeKGukmRxE8T9sjzgWaXZRFMY7e09yL3qFe55WFI9AZ wqbVg0bjGylSD2CSjKPBYzkvCehm17FK+pFyWWHkFPCpf5nNR5P6dJbc5ALmkWPSbaew pDzKzELKkim55dy96hCNNH0k+6PMagrKQHF3cOw3CK8MTFdPOc/2GHg/8uwzzao6MrlA RX5rEyrn/eJu877EpH28W6WpdxyOPHkkTOBbPfYpj8moqhZr1HlkgaJpNGwKmva9zmhU CNXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=gzqt154DTH5ImHOjvijUWjXzMNwVv74MLXkB9lgKrrw=; b=UHViupDUueHx3ZfZAMit+pgqffrg5sQ7TpsxCR0EOBeAFy9Ak3Jn5qJejxvfLPmH9p gb0GPJlsiT5+V093eZhVj0fo9zKRFERfkFvPtFtVJBejKU9i3P39Q31o7GK4/tF82jB0 g3UXDg4506bDXA7pL0KFIM5NmAHbf5FoZng1b29MjE1XojZ3LWCGSPyUuXe2ry+cFbV7 /ht43G7V1T5/s3MFlEiKvNkQztqDeTCMMZXUasO4038VUppDfqT//5dNMQAi2iJBhrEE 6+Dt+Yz21aYUnB293SWRMjkMdn13DwyeZQ33GBHi+X4ErClA/pZR1HdyvzZLidjU1B98 FrvQ== X-Gm-Message-State: APjAAAXEgR5nwHNhafMioD29F75IzzcOhd4SvHBBWJfH0Z+9bHX2IwBJ /BLcT30mNkeIVNnSxb+ctPONFg== X-Received: by 2002:a2e:8141:: with SMTP id t1mr14742420ljg.122.1557171099519; Mon, 06 May 2019 12:31:39 -0700 (PDT) Received: from localhost.localdomain (h-158-174-22-72.NA.cust.bahnhof.se. [158.174.22.72]) by smtp.gmail.com with ESMTPSA id r136sm2660779lff.50.2019.05.06.12.31.37 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 06 May 2019 12:31:38 -0700 (PDT) From: Niklas Cassel To: Andy Gross , David Brown , Rob Herring , Mark Rutland Cc: amit.kucheria@linaro.org, jorge.ramirez-ortiz@linaro.org, lina.iyer@linaro.org, ulf.hansson@linaro.org, bjorn.andersson@linaro.org, Niklas Cassel , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] arm64: dts: qcom: qcs404: Add PSCI cpuidle support Date: Mon, 6 May 2019 21:31:15 +0200 Message-Id: <20190506193115.20909-1-niklas.cassel@linaro.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add device bindings for CPUs to suspend using PSCI as the enable-method. Signed-off-by: Niklas Cassel --- arch/arm64/boot/dts/qcom/qcs404.dtsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi index ffedf9640af7..f9db9f3ee10c 100644 --- a/arch/arm64/boot/dts/qcom/qcs404.dtsi +++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi @@ -31,6 +31,7 @@ reg = <0x100>; enable-method = "psci"; next-level-cache = <&L2_0>; + cpu-idle-states = <&CPU_PC>; }; CPU1: cpu@101 { @@ -39,6 +40,7 @@ reg = <0x101>; enable-method = "psci"; next-level-cache = <&L2_0>; + cpu-idle-states = <&CPU_PC>; }; CPU2: cpu@102 { @@ -47,6 +49,7 @@ reg = <0x102>; enable-method = "psci"; next-level-cache = <&L2_0>; + cpu-idle-states = <&CPU_PC>; }; CPU3: cpu@103 { @@ -55,12 +58,24 @@ reg = <0x103>; enable-method = "psci"; next-level-cache = <&L2_0>; + cpu-idle-states = <&CPU_PC>; }; L2_0: l2-cache { compatible = "cache"; cache-level = <2>; }; + + idle-states { + CPU_PC: pc { + compatible = "arm,idle-state"; + arm,psci-suspend-param = <0x40000003>; + entry-latency-us = <125>; + exit-latency-us = <180>; + min-residency-us = <595>; + local-timer-stop; + }; + }; }; firmware { -- 2.21.0