From patchwork Fri May 10 11:29:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 163856 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:142:0:0:0:0 with SMTP id j2csp2233849ilr; Fri, 10 May 2019 04:29:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqxxs3DMUhji1xMaTWZSgUO2x4AbArK8aaeqi0oEo7mNzpa3WvRCAFXQPKDe+9yFlJC61FKV X-Received: by 2002:a63:4621:: with SMTP id t33mr12661481pga.246.1557487798721; Fri, 10 May 2019 04:29:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557487798; cv=none; d=google.com; s=arc-20160816; b=bZGacGncbR2/GLX+oCAbLN7ORZ3kZ7MNrsrL3PtipyZM7091sV2k40RhwGVHvc7+X2 0oPq8/54zZ1AyQ5wjfShd/hdJzSDIBluAGf1UeBYmAbpZ0qqUq6qkJJ4IBFngBWXqvLd PcHLLqa3pzmqdezI0GJzV7anVuVY7iFBRAn1wVsVLPESgLJCvd6kfzXG049CI0L3/MTR qIfTrRvMr4stPbcTl1vfdNcYAaBss8pn12LwYrCF4bzNsR54AuOlO80LA1gQCBeWeS32 9yTmYX14Z4WfL/dASns5SXN4jOOkUwT01v9Wni8O+xrPn1jBFSklTPMpGkqrx+JOHNei qPrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=3omjhH7TbR3FmFs5TtPgVwPetLA6H87w8Ypx7qlc/xQ=; b=dG/j9uaMqcDfOw0rGXE1b1SvkLFrYxB+q+msAlIH10vPH1EZ7pGeZT2gpClkrtsaaK IF2XDQIR/fLr4S0DA9WgaPRhyj7I9GzknoSi5LpEColxArDaBGPS7n9hMxE72741XApl yCWWmiSsoSeLMW9MisyuM9W464W1NmooxnBMXFHS0ay351z4qy0ddIqAO3QnrmOrz7pu U+cr0JIdi2bGK2xgWBA5nnoVAn7l7ELr4g3aBgjapW8z8+HyR5vxbhk3Dr+9vElijbLy IfjCZc7FHQyv37A1SUYay2/G1NuMTOfQSmI/n+0PvILy0LojDxfzBjOLA+qGEzLQxXa2 NIHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HoRmKH63; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 j12si6890485pgp.118.2019.05.10.04.29.58; Fri, 10 May 2019 04:29:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-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=HoRmKH63; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1727306AbfEJL35 (ORCPT + 15 others); Fri, 10 May 2019 07:29:57 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:36614 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727247AbfEJL35 (ORCPT ); Fri, 10 May 2019 07:29:57 -0400 Received: by mail-pf1-f195.google.com with SMTP id v80so3095407pfa.3 for ; Fri, 10 May 2019 04:29: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 :in-reply-to:references; bh=3omjhH7TbR3FmFs5TtPgVwPetLA6H87w8Ypx7qlc/xQ=; b=HoRmKH63l7C7FzvYpQKh9CZ7kohym54pLp7tXuBRX+GWRJfziLnjDDh+iRDQO9D9ee L4gUVGETEU2esvl0g5q9h3bRgSsop0fGsD0JpUSAmANdczdGmY6DncD+TdxbG83VSLOB ECMSRiDOXP/Qvyj9HQXFZqa4yto5zcrr+/ckIp8uh6ttN53QE3GNGRsdrEOGhUKa9tN6 cpDhWAifzey2GtZ4GhvpKvoMeoyVVNA+uQAOJfdNMJAJKf91DdZ6OPg+2ndEz9dgdFSr HMdKg/UDzXCfEyHxEksgJUnkPpgp9Z2LWM6luP+ICipwxa3FyktPtwlvuTTzOwiY+Lzi QKbw== 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:in-reply-to :references:in-reply-to:references; bh=3omjhH7TbR3FmFs5TtPgVwPetLA6H87w8Ypx7qlc/xQ=; b=n0bBw+JQc7+EwjoKmQ2UUVnj84NYHUc8lBUc9HbBFolHKwPVJHKD1uMDdkccfqd505 doFXZlPlY+zId/YwBcq9gdatbk6faYSFQCVwvItCTeCxXI3XUdfhPl9sLfP66Iuy6LF8 w/xQVmv5odK6Ttzc97mZ1KkPJnzgWrc5EKuG398cUdOMaDgAZGQAC0LfEzBJlq56efwy uyk8NK7ZuszjC9DBKstaao2GTf5htHiDHkKJca6WFDyuuRhdOyXyJzDRFMRTDyup4fj9 tIs9VV7jM+tqTqHEkWCE8yIvuEWX1ZmLsPD0jnFRe9NaB34WWxPT2niZyC9aHTycY5FX W34g== X-Gm-Message-State: APjAAAXt2vWDA6AttalIfVC2k5g3XJpORFxfNb2hwGgiQfRpe5R9CmJ5 4bRgZ9MHyGhmOW+9LadI47V3wg== X-Received: by 2002:aa7:820c:: with SMTP id k12mr13044777pfi.177.1557487796788; Fri, 10 May 2019 04:29:56 -0700 (PDT) Received: from localhost ([103.8.150.7]) by smtp.gmail.com with ESMTPSA id s137sm2854428pfc.119.2019.05.10.04.29.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 10 May 2019 04:29:56 -0700 (PDT) From: Amit Kucheria To: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, andy.gross@linaro.org, David Brown , Li Yang , Shawn Guo Cc: Sudeep Holla , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Subject: [PATCHv1 1/8] arm64: dts: Fix various entry-method properties to reflect documentation Date: Fri, 10 May 2019 16:59:39 +0530 Message-Id: X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The idle-states binding documentation[1] mentions that the 'entry-method' property is required on 64-bit platforms and must be set to "psci". We fixed up all uses of the entry-method property in commit e9880240e4f4 ("arm64: dts: Fix various entry-method properties to reflect documentation"). But a new one has appeared. Fix it up. Cc: Sudeep Holla Signed-off-by: Amit Kucheria --- arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 Acked-by: Sudeep Holla diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi index 2896bbcfa3bb..42e7822a0227 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi @@ -51,7 +51,7 @@ * PSCI node is not added default, U-boot will add missing * parts if it determines to use PSCI. */ - entry-method = "arm,psci"; + entry-method = "psci"; CPU_PH20: cpu-ph20 { compatible = "arm,idle-state"; From patchwork Fri May 10 11:29:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 163857 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:142:0:0:0:0 with SMTP id j2csp2233954ilr; Fri, 10 May 2019 04:30:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqwbQktnl9kQ1VD0+7FCcB/6uWvGCsaSV+B0fABGVgWOXi2mQ0GVsCapopHHgLsIPUoMSgj6 X-Received: by 2002:a63:6a41:: with SMTP id f62mr12781063pgc.392.1557487802879; Fri, 10 May 2019 04:30:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557487802; cv=none; d=google.com; s=arc-20160816; b=tdEnnGam5XKmT7p2tq7vOrR3iq1dkLjLhGLwOH8avqSr/UW+LnJnVvUO2se4P6x6Y0 /zncg/VyIFFtwRU9ARBej6lnps+sbxCToZoHJQSbRdvhdvucA7sWWiXXWFSugXY23RAt rbjL5hwwZcXTcKkAzidJ8tzi1qhXRb5LHiccMROAYmhjHz7pGfI4haJJLQEwfak+m3Uu 9C0iMlWVbgHSfpBXTakFNWrTF3SOu6fP4YcTtX5JMJbe/GUMeNzU337D5d7ft60nWMjz NEwZc1DaFRrXSDU3aO6V6HcLAY5THoXVuJJ86ZK5RsiLKayoNfTPTapb6n4abA7e28+R MlxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=Nowmg4pM+Rb20HCwqnrJE3ir4gOjFPzAF5fVDd2jYag=; b=MSIN8/yWn8B2ZHqIP4kgh6SLUSn5zJGXR3bsI0rG4nCkv48GzBELYjdpHGssMA+fu6 z7o4t4dOXsLVbgKMq6bJUJOzO8xF+HEaKZUlH30mEC3Q9ILXgWNLF9XKS1xBpS61sb9c Cgeroofu9ged5iFW6kLz++2rppdLfhdJ2c8Eo+pBXQvlpYyhEKL3T3RFzSEpgVdTS1T5 NE1WKsX5zH6c+/qIUOFNdwfcNMXBr9p157/hmbn/gb3N3PMw3K9uq0E6WabtH2tFk8H4 B+TvQnhrZcK5+DZEo/Zzn3ZVu14MWsAOipxiWZwIIPA+YhSCzFLlg1/g/jl7M8Gy9Cf3 Mx0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DaU0WMI+; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 p3si6859804plo.170.2019.05.10.04.30.02; Fri, 10 May 2019 04:30:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-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=DaU0WMI+; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1727346AbfEJLaC (ORCPT + 15 others); Fri, 10 May 2019 07:30:02 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:46261 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727340AbfEJLaB (ORCPT ); Fri, 10 May 2019 07:30:01 -0400 Received: by mail-pg1-f195.google.com with SMTP id t187so2879986pgb.13 for ; Fri, 10 May 2019 04:30:01 -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 :in-reply-to:references; bh=Nowmg4pM+Rb20HCwqnrJE3ir4gOjFPzAF5fVDd2jYag=; b=DaU0WMI+essN/z0vje9uyYZ/QVRI5R7wBylNonZJ7l9TcmbGVfnnheCNpFi2rdH/fw mm6qF57JD4HFRZHe2mvxcPLnNjjZV2R4QENKZsyWst8gEEkfrIQPduttU4QnYPPQbio1 y+Sm36/ksNcO6SplI1eUVlQuOG6OxE0lbRjzyL0VOj/S2+ifDUG96gEiHno20zUl+1c7 qJzgJBWxT46RYiIyccb1qMZ6O0njE6CU/0Mg1N4AMlVJDP0Yve2guyuTSTh2FjVxt1na 7MEx5uYwviLZCAey4uRmV3Fnc8hV3+jhM3Eq4LS+mryeP8WRwFR0SBhK9idMQNXTK+AG HePA== 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:in-reply-to :references:in-reply-to:references; bh=Nowmg4pM+Rb20HCwqnrJE3ir4gOjFPzAF5fVDd2jYag=; b=haoBes9GZhYyqaTi4wx8CHQ9GWXdGI6czj5LIj3Bzn6EZFmdkq4TZcmIAMHF1VfMoh QIoQhdIDcijnVAghBw+jAt+5yB7tjExQzDsvgo3MhNM9AjfWh/AWMdki0eS20vxeJLjO KazemMoEjPuzH3r6ANH4y7hq/Zj3Rb6VsOt6UvIjVofd2sfVIxLLv0h2qDxzRSszphoP dMjmzmwiB0s1bsjDnbQoasW0yixlN3JKPypWp37dL4/ek4kIX9u3fwYTZOjiNgcHErOA IM6ms1t4+AWXcND0yrQ5nsGyGfBnqs5diBUsaL+QMlFCuYTe5YASJ57bMswbWoXqhpq3 0jkg== X-Gm-Message-State: APjAAAUN5rAbiAE9Mj8W+yLG5SWkG14Eqn4QG4rtvZT09ufnQoTT5B1R M8UWnoYGYPcQQvnBWvL5xu3QUH0Oe0M= X-Received: by 2002:a62:87c6:: with SMTP id i189mr13483917pfe.65.1557487800962; Fri, 10 May 2019 04:30:00 -0700 (PDT) Received: from localhost ([103.8.150.7]) by smtp.gmail.com with ESMTPSA id 9sm5583081pgv.5.2019.05.10.04.29.59 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 10 May 2019 04:30:00 -0700 (PDT) From: Amit Kucheria To: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, andy.gross@linaro.org, David Brown , Li Yang , Shawn Guo Cc: Sudeep Holla , devicetree@vger.kernel.org Subject: [PATCHv1 2/8] Documentation: arm: Link idle-states binding to code Date: Fri, 10 May 2019 16:59:40 +0530 Message-Id: <5f25e2b3096fa73f205e1797e355e049ed9f8c9c.1557486950.git.amit.kucheria@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The enable-method needs to be psci for the psci_cpuidle_ops to be correctly registered. Add a note to the binding documentation on where to find the declaration of the enable-method since it is a macro and escapes any attempts to grep for it. Cc: Sudeep Holla Signed-off-by: Amit Kucheria --- Documentation/devicetree/bindings/arm/idle-states.txt | 7 +++++++ 1 file changed, 7 insertions(+) -- 2.17.1 diff --git a/Documentation/devicetree/bindings/arm/idle-states.txt b/Documentation/devicetree/bindings/arm/idle-states.txt index 45730ba60af5..3a42335a6f3d 100644 --- a/Documentation/devicetree/bindings/arm/idle-states.txt +++ b/Documentation/devicetree/bindings/arm/idle-states.txt @@ -239,6 +239,10 @@ processor idle states, defined as device tree nodes, are listed. # On ARM v8 64-bit this property is required and must be: - "psci" + (This assumes that the enable-method is "psci" + in the cpu node[6] that then uses the + CPUIDLE_METHOD_OF_DECLARE macro to setup the + psci_cpuidle_ops callbacks) # On ARM 32-bit systems this property is optional The nodes describing the idle states (state) can only be defined within the @@ -697,3 +701,6 @@ cpus { [5] Devicetree Specification https://www.devicetree.org/specifications/ + +[6] ARM Linux Kernel documentation - Booting AArch64 Linux + Documentation/arm64/booting.txt From patchwork Fri May 10 11:29:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 163861 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:142:0:0:0:0 with SMTP id j2csp2234275ilr; Fri, 10 May 2019 04:30:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqxfZIeoHbelPVZxUxBO0/mmqYSUmRkQvSUYGPtK/oXwSWOxm2NGi1TJNso+vhDqhcurJiiy X-Received: by 2002:a17:902:3324:: with SMTP id a33mr11487801plc.1.1557487818803; Fri, 10 May 2019 04:30:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557487818; cv=none; d=google.com; s=arc-20160816; b=wAxkJqKFwRe7i4jXH0ZfWOEZ8ECNXXl2JWzaYDd8ePnTJq2TGzMgRJZ6D2TZlMN+ZB Lb25hpx4GfBORBpTEGFPjNTnBmd1RzuQ1T6VnP4weTV/TmkCALLtgfFtwco2Rkhx9WJU Vi84oZWQSwXNBjKgdSm53h4XKPdCqZ9jjjnux7XHEJrPRPBjShgukKqwN9XJ/jU/a/M/ CJs5k7mK1u7h7/Sf7c2gRL3ZEQ/GTQpwkcRtybOY5muxBXENYHSG/lMA8o+e8mvKUZhY Vi9G1i8kk0y4M97veu2+0Tow8WRWvhM2aLTuQlsnkBEprnvH7lyojod9Y416JLqRDk95 a55Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=JVo/NvEDRX1QVQbcjE8Yetg8X4Rda/MV9JSZ7Qo1pjU=; b=HhOSI31Rw5E0FfvezVc440BZ7vzq4j2u010Gpfvvf53XeeU+wSx+qwj7QFWA2ULIes VqAXnVnC491u2lF/FtckkYQnwheita2SBssEjSVKy2LeKzxtSuiCSmG965qstOSmvwjy YExMkKhOA0BgaJ4pp0u/PsqcoMTKVXwN0/pTzkNraYvGuo+YLVm+TLd6M/zh8wDkLglw MGruJhwMXxxxd6mrSOUwkdAIsm8vZ3CwccCN7fbsagLbdT1hYQRcx1/5nDPTnMHBBSQk qbUU8FheaFfMK3ft7E5v8q4r8V25yvQIHljU/ErJ5eP10fVFz3nNcG34B+DVzwwcnQSC VCkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=s7jn7hlr; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 t38si6567981pgl.497.2019.05.10.04.30.18; Fri, 10 May 2019 04:30:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-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=s7jn7hlr; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1727483AbfEJLaS (ORCPT + 15 others); Fri, 10 May 2019 07:30:18 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:32903 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727476AbfEJLaR (ORCPT ); Fri, 10 May 2019 07:30:17 -0400 Received: by mail-pg1-f195.google.com with SMTP id h17so2909261pgv.0 for ; Fri, 10 May 2019 04:30:17 -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 :in-reply-to:references; bh=JVo/NvEDRX1QVQbcjE8Yetg8X4Rda/MV9JSZ7Qo1pjU=; b=s7jn7hlrXaSulZyC00By0r91cNEiJ4SQmpC82v3lVdN6t5HlkoTF5vWlBltkS/3M5D 6lNJ1AlB23X0DJ7A92bi7ijQ7QT/pDm4SlcAv4GWOMue0yksI3pxr4Tgt+IDcVRUQ2hJ 11Rj7TX8mo66oXANkYVxmfvvYkFNOrWm010WN2S1rU5iqLLXfOzzmr3Ni7FTIRDCZ+fu RW6s7S1Oe2mHLWyuwso/IDKyeKzur/Q/EKDBUxCHMtPhOcONfeFX/s3lgWzVIK56oIyw xaSGWvjXzxOnrR7BhhZh3IgQWSNoifY0fHaZKwPGfJ33VhleHf1gPRFPNGvzuvI77hGG xETw== 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:in-reply-to :references:in-reply-to:references; bh=JVo/NvEDRX1QVQbcjE8Yetg8X4Rda/MV9JSZ7Qo1pjU=; b=MUIJH8bb5rlzQ0jxIoCp1S5xoGxvqscT/xvrm8J+sJjRwiJCQGqaRAAZg3i2DBDj+v fVf7R3wmRctgrS6ioJePxVZgQ67BMKxLEcGdzIK02CXoWEZ6+ZZCxNCRXVJ3/MHQ6vHO 7Uu9+bxyNyZnNRZV/p6UuyjClbIYaVXwmMjNrkefWmDM8QiRXfTA7e1B7hoP8Tge72ny evgrOKf4PD0rH5gmMc98pGXMRei2I1/VcmLn5SzIk3jHWaiXrO8/jVYHQ47/7WUk88kd AcTi+0lt/nQF9TCNJQyH9h/MZ83+nE9LqOw8yalvGVb9gffHhdwDRdz8Ds2QRIdh04Vn O2Ww== X-Gm-Message-State: APjAAAVh6S+ARpLooruSxX0+hD8I3ucyv9LhypaqNhuf2YrAaSX8N5AX FRQMO3A01Z7eIy593rW5pB6Z4Q== X-Received: by 2002:aa7:98c6:: with SMTP id e6mr13008017pfm.191.1557487817121; Fri, 10 May 2019 04:30:17 -0700 (PDT) Received: from localhost ([103.8.150.7]) by smtp.gmail.com with ESMTPSA id g32sm5295248pgl.16.2019.05.10.04.30.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 10 May 2019 04:30:16 -0700 (PDT) From: Amit Kucheria To: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, andy.gross@linaro.org, David Brown , Li Yang , Shawn Guo Cc: devicetree@vger.kernel.org Subject: [PATCHv1 6/8] arm64: dts: qcom: msm8996: Add PSCI cpuidle low power states Date: Fri, 10 May 2019 16:59:44 +0530 Message-Id: <8648ba97d49a9f731001e4b36611be9650e37f37.1557486950.git.amit.kucheria@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add device bindings for cpuidle states for cpu devices. Signed-off-by: Amit Kucheria --- arch/arm64/boot/dts/qcom/msm8996.dtsi | 28 +++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) -- 2.17.1 diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi index c761269caf80..b615bcb9e351 100644 --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi @@ -95,6 +95,7 @@ compatible = "qcom,kryo"; reg = <0x0 0x0>; enable-method = "psci"; + cpu-idle-states = <&LITTLE_CPU_PD>; next-level-cache = <&L2_0>; L2_0: l2-cache { compatible = "cache"; @@ -107,6 +108,7 @@ compatible = "qcom,kryo"; reg = <0x0 0x1>; enable-method = "psci"; + cpu-idle-states = <&LITTLE_CPU_PD>; next-level-cache = <&L2_0>; }; @@ -115,6 +117,7 @@ compatible = "qcom,kryo"; reg = <0x0 0x100>; enable-method = "psci"; + cpu-idle-states = <&BIG_CPU_PD>; next-level-cache = <&L2_1>; L2_1: l2-cache { compatible = "cache"; @@ -127,6 +130,7 @@ compatible = "qcom,kryo"; reg = <0x0 0x101>; enable-method = "psci"; + cpu-idle-states = <&BIG_CPU_PD>; next-level-cache = <&L2_1>; }; @@ -151,6 +155,30 @@ }; }; }; + + idle-states { + entry-method="psci"; + + LITTLE_CPU_PD: little-power-down { + compatible = "arm,idle-state"; + idle-state-name = "standalone-power-collapse"; + arm,psci-suspend-param = <0x00000004>; + entry-latency-us = <40>; + exit-latency-us = <40>; + min-residency-us = <300>; + local-timer-stop; + }; + + BIG_CPU_PD: big-power-down { + compatible = "arm,idle-state"; + idle-state-name = "standalone-power-collapse"; + arm,psci-suspend-param = <0x00000004>; + entry-latency-us = <40>; + exit-latency-us = <40>; + min-residency-us = <300>; + local-timer-stop; + }; + }; }; thermal-zones { From patchwork Fri May 10 11:29:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 163862 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:142:0:0:0:0 with SMTP id j2csp2234340ilr; Fri, 10 May 2019 04:30:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqyDDjZXSRNyF5WGqpmUIvF2KHFa6MPiACDhue+NML0Z4AZB3BkayhiJJ6y/iBCptbr7zo8L X-Received: by 2002:a17:902:2a26:: with SMTP id i35mr12528791plb.229.1557487823155; Fri, 10 May 2019 04:30:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557487823; cv=none; d=google.com; s=arc-20160816; b=eWZPMvwOL+WOFGyAq7mRty4yL40dFAf/xo2TerVdjKLyNWVSsndUv3XNszZ1KEYeJr nfrTyTM8WQtsQaZTdvCf/X7S1JdNUjcM7UjR1TeJ1s0iSR0y35E+n1vmLJz4RbcC7KXf ptPwKd95d0cHcZ6/ERwzOIa5ht/SdBh7Ovjng5hvgwXg59KyCbPxIBJf6NYUeV6CoIbL cCUjD495sSVpIKy5ithS7nzn3CJwj8likT2kHS9AhNiuIX2uOxDBaLoUL5TXCqVxeUZu EHd70MylsTiZhK6VtCW/QhvlpfThb2Z/sszLUQCq5jUSh4D+JSfdKPO3R4xNQIIMUelU 32ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=vYKcDNOYSaC2OexnBDBqxk0MAwfNb45aOaOob4rH19c=; b=ViZIQqOLsDItR5kD9SPt8bG3LDx50/6timiwjlZdsScSo1fTWXnm085uc+O+zB+VVh tCDNEYglFxaiQTgaMr+2XSrZnam/8DpGPALcmBsSyxnKeAhN06WZrVpKIBs9fCE8KbR5 Z38sMNgMQuO7CRGYdv8DmWjSshmx804m/u7KXqWMmQ6Tsr1y/xMJ1sgXC624f18mPI03 8Alf/Uw6WD8e4cvB5k59PvPqtjGPfPuZmWiE+tLlT3X1+B5gZfBiqFRM/rkW21arU9Lb mtBc74tyw7UHcgxG6WMN/o5ZvcGV9lDdnMgei1ut8Gh+Fuw2ccZgNuZPUENnxkbQ9HyZ fLkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fs7Rtp7X; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 c72si7154500pfb.93.2019.05.10.04.30.22; Fri, 10 May 2019 04:30:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-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=fs7Rtp7X; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1727506AbfEJLaW (ORCPT + 15 others); Fri, 10 May 2019 07:30:22 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:34449 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727453AbfEJLaW (ORCPT ); Fri, 10 May 2019 07:30:22 -0400 Received: by mail-pf1-f193.google.com with SMTP id n19so3098561pfa.1 for ; Fri, 10 May 2019 04:30:21 -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 :in-reply-to:references; bh=vYKcDNOYSaC2OexnBDBqxk0MAwfNb45aOaOob4rH19c=; b=fs7Rtp7XMf+d3tnALRhBbpN9j7rlJ+iUcIzlz/u6nzfO2mv8FW3FT1NoOB3KADrDey t/ilbNCMjBOFA6b4L0JgDKu1LLpWBg/WpyX/jenE9l0P5EA6rY9G3FI2yE6MFHwBsF2c ilVObwL+oWzveslyQX302NlxxN1HrR+i895B/+v9DjRck8stXO9MGdi5CCjq3ah11GRi M1iZHKG+Omz7VJicEMmUMwS22N475rMKXkjiO6JOVXE9PJsm+WQcWeShnGIH5IJrf0ut ixgCXeDzFYYzdsO19Q7Cc61yhbqde/BQg03HBT0IW+98coF3WNRBL8k0tF+RxxF7hgmA sK8A== 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:in-reply-to :references:in-reply-to:references; bh=vYKcDNOYSaC2OexnBDBqxk0MAwfNb45aOaOob4rH19c=; b=MEYMyvVF4r9ORax/pdvN4nSCFc0OMKzsybwvIwhSheFxl8Ol55D3kG6BzPIYk1+pv5 lHDy7VOSgN3Pz2cQg2ShCFjHKMiEMgSlUcojzwTPoMdbDG2dNIFVCG1u2eCvtwaMGmet RAZ7iyYEwM967KB6uPjHD70IG/ipSdnfuzSSYVWsNhpnDBh4iDOCVJktyiB0SIHwEMs9 P7fRrcakJsLfCwD573p5mVpMNuZZJtH5tAFhwAzk3N0wXg+ZqeIEyHAtUWRwD9cWXD4K tx+D/XtqfPJVxRClz5MTJtzV8GYKFkCdVhMbjI9MVpkEbI2saACAQSlPkNejnQSl4Vuq XbYA== X-Gm-Message-State: APjAAAWU4yXBUEVX+WdSb6KzuZRugBq/UUqyWXXye2YDrPkNiGaJuyts 6KCFUA92Y4XntdIiz1KtKmYEmw== X-Received: by 2002:a63:8149:: with SMTP id t70mr12932306pgd.134.1557487821288; Fri, 10 May 2019 04:30:21 -0700 (PDT) Received: from localhost ([103.8.150.7]) by smtp.gmail.com with ESMTPSA id k63sm12757528pfb.108.2019.05.10.04.30.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 10 May 2019 04:30:20 -0700 (PDT) From: Amit Kucheria To: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, andy.gross@linaro.org, David Brown , Li Yang , Shawn Guo Cc: Marc Gonzalez , devicetree@vger.kernel.org Subject: [PATCHv1 7/8] arm64: dts: qcom: msm8998: Add PSCI cpuidle low power states Date: Fri, 10 May 2019 16:59:45 +0530 Message-Id: <0afe77d25490b10250f9eac4b4e92ccac8c42718.1557486950.git.amit.kucheria@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add device bindings for cpuidle states for cpu devices. Cc: Marc Gonzalez Signed-off-by: Amit Kucheria --- arch/arm64/boot/dts/qcom/msm8998.dtsi | 32 +++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) -- 2.17.1 diff --git a/arch/arm64/boot/dts/qcom/msm8998.dtsi b/arch/arm64/boot/dts/qcom/msm8998.dtsi index 3fd0769fe648..208281f318e2 100644 --- a/arch/arm64/boot/dts/qcom/msm8998.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8998.dtsi @@ -78,6 +78,7 @@ compatible = "arm,armv8"; reg = <0x0 0x0>; enable-method = "psci"; + cpu-idle-states = <&LITTLE_CPU_PD>; efficiency = <1024>; next-level-cache = <&L2_0>; L2_0: l2-cache { @@ -97,6 +98,7 @@ compatible = "arm,armv8"; reg = <0x0 0x1>; enable-method = "psci"; + cpu-idle-states = <&LITTLE_CPU_PD>; efficiency = <1024>; next-level-cache = <&L2_0>; L1_I_1: l1-icache { @@ -112,6 +114,7 @@ compatible = "arm,armv8"; reg = <0x0 0x2>; enable-method = "psci"; + cpu-idle-states = <&LITTLE_CPU_PD>; efficiency = <1024>; next-level-cache = <&L2_0>; L1_I_2: l1-icache { @@ -127,6 +130,7 @@ compatible = "arm,armv8"; reg = <0x0 0x3>; enable-method = "psci"; + cpu-idle-states = <&LITTLE_CPU_PD>; efficiency = <1024>; next-level-cache = <&L2_0>; L1_I_3: l1-icache { @@ -142,6 +146,7 @@ compatible = "arm,armv8"; reg = <0x0 0x100>; enable-method = "psci"; + cpu-idle-states = <&BIG_CPU_PD>; efficiency = <1536>; next-level-cache = <&L2_1>; L2_1: l2-cache { @@ -161,6 +166,7 @@ compatible = "arm,armv8"; reg = <0x0 0x101>; enable-method = "psci"; + cpu-idle-states = <&BIG_CPU_PD>; efficiency = <1536>; next-level-cache = <&L2_1>; L1_I_101: l1-icache { @@ -176,6 +182,7 @@ compatible = "arm,armv8"; reg = <0x0 0x102>; enable-method = "psci"; + cpu-idle-states = <&BIG_CPU_PD>; efficiency = <1536>; next-level-cache = <&L2_1>; L1_I_102: l1-icache { @@ -191,6 +198,7 @@ compatible = "arm,armv8"; reg = <0x0 0x103>; enable-method = "psci"; + cpu-idle-states = <&BIG_CPU_PD>; efficiency = <1536>; next-level-cache = <&L2_1>; L1_I_103: l1-icache { @@ -238,6 +246,30 @@ }; }; }; + + idle-states { + entry-method="psci"; + + LITTLE_CPU_PD: little-power-down { + compatible = "arm,idle-state"; + idle-state-name = "little-power-down"; + arm,psci-suspend-param = <0x00000002>; + entry-latency-us = <43>; + exit-latency-us = <43>; + min-residency-us = <200>; + local-timer-stop; + }; + + BIG_CPU_PD: big-power-down { + compatible = "arm,idle-state"; + idle-state-name = "big-power-down"; + arm,psci-suspend-param = <0x00000002>; + entry-latency-us = <41>; + exit-latency-us = <41>; + min-residency-us = <200>; + local-timer-stop; + }; + }; }; firmware {