Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp755086ybl; Fri, 16 Aug 2019 03:32:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqyOaCgmMpOoz7AuvFoCrM3FaBr+yrkIoRKSeEJrfT+pp5FBrB0kdACS78U/FGWjGgyADYkH X-Received: by 2002:aa7:9edc:: with SMTP id r28mr9800374pfq.219.1565951557975; Fri, 16 Aug 2019 03:32:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565951557; cv=none; d=google.com; s=arc-20160816; b=iAH1RY5W57/hRWsLSTxlNfLjvdumi2K0KEoH7wt9E1ddlFpojzAhoeGKC7btK0Aeel FEE8fUQhKrUpGeep0iLgZTcvrt/w2XPQpTZOzqGE5fNGMwNkdSPP9IrJlOL2T/kgzQks +J01JT8WZj0+3eC4iezzHGZViV7909Y1gmh/JRWiVrjNcpjlieQE7lxzawbjWSD/WUKc jAzFp1ghOkR8BGwRtbBqg69aRspc3dqSrmSZ+BoL+rFDlzUHQYzHHV7F6FSJgLLqfzkt olXcgkPpdvb7Vo6CmvyQ0/i6uqDpYOkc7ZnoTtrgAZBQ5hfA/5q7PFbsCWj5Ci2hMyql 832w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=06ZmZ0YbHa167PC4AkISQ94QKrkFh6DUX9W3N7zmlwE=; b=N7Vj6qyDYJvTAjOvqVLWvlVl2nlb0c3Q9Qhy2wQrWXbW/H1520ruymNaUsk55vzs5P culuLMNRX+WEC0lTa4pTds8O+U+V8vMM2jPgfB067Npyz59T/yb3fqjk17qfoMtKN1xW iWSBu9DtdU/NWorvf1Itqu1jiA7gyjtHfN0zYycKmfzMUeUNcPDervkSujpRny/XyIhX zrPelXMzrCAlYaKi26ao/s0wJY5BKIhexj+BN7+kdLZSOqIadI3MsaJPAyoXZD4h20UM k2XaOiK0mV25AvXmXWGjFleLEcjk2IlQoH888McWgtMUGAn8DtM0A2QSOkS30S18Ft+S sdEw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i3si3861962pld.357.2019.08.16.03.32.20; Fri, 16 Aug 2019 03:32:37 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727021AbfHPKbg (ORCPT + 99 others); Fri, 16 Aug 2019 06:31:36 -0400 Received: from inva020.nxp.com ([92.121.34.13]:43106 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726839AbfHPKbg (ORCPT ); Fri, 16 Aug 2019 06:31:36 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id C62F51A003D; Fri, 16 Aug 2019 12:31:33 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id B07A51A0027; Fri, 16 Aug 2019 12:31:26 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id D05F940293; Fri, 16 Aug 2019 18:31:17 +0800 (SGT) From: Anson Huang To: robh+dt@kernel.org, mark.rutland@arm.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, Anson.Huang@nxp.com, leonard.crestez@nxp.com, abel.vesa@nxp.com, ping.bai@nxp.com, jun.li@nxp.com, daniel.baluta@nxp.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Linux-imx@nxp.com Subject: [PATCH] arm64: dts: imx8mm: Enable cpu-idle driver Date: Fri, 16 Aug 2019 06:13:03 -0400 Message-Id: <1565950383-589-1-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Enable i.MX8MM cpu-idle using generic ARM cpu-idle driver, 2 states are supported, details as below: root@imx8mmevk:~# cat /sys/devices/system/cpu/cpu0/cpuidle/state0/name WFI root@imx8mmevk:~# cat /sys/devices/system/cpu/cpu0/cpuidle/state0/usage 3973 root@imx8mmevk:~# cat /sys/devices/system/cpu/cpu0/cpuidle/state1/name cpu-pd-wait root@imx8mmevk:~# cat /sys/devices/system/cpu/cpu0/cpuidle/state1/usage 6647 Signed-off-by: Anson Huang Acked-by: Daniel Lezcano --- arch/arm64/boot/dts/freescale/imx8mm.dtsi | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mm.dtsi b/arch/arm64/boot/dts/freescale/imx8mm.dtsi index e8560d1..984ea7b 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm.dtsi @@ -44,6 +44,19 @@ #address-cells = <1>; #size-cells = <0>; + idle-states { + entry-method = "psci"; + + cpu_pd_wait: cpu-pd-wait { + compatible = "arm,idle-state"; + arm,psci-suspend-param = <0x0010033>; + local-timer-stop; + entry-latency-us = <1000>; + exit-latency-us = <700>; + min-residency-us = <2700>; + }; + }; + A53_0: cpu@0 { device_type = "cpu"; compatible = "arm,cortex-a53"; @@ -55,6 +68,7 @@ operating-points-v2 = <&a53_opp_table>; nvmem-cells = <&cpu_speed_grade>; nvmem-cell-names = "speed_grade"; + cpu-idle-states = <&cpu_pd_wait>; }; A53_1: cpu@1 { @@ -66,6 +80,7 @@ enable-method = "psci"; next-level-cache = <&A53_L2>; operating-points-v2 = <&a53_opp_table>; + cpu-idle-states = <&cpu_pd_wait>; }; A53_2: cpu@2 { @@ -77,6 +92,7 @@ enable-method = "psci"; next-level-cache = <&A53_L2>; operating-points-v2 = <&a53_opp_table>; + cpu-idle-states = <&cpu_pd_wait>; }; A53_3: cpu@3 { @@ -88,6 +104,7 @@ enable-method = "psci"; next-level-cache = <&A53_L2>; operating-points-v2 = <&a53_opp_table>; + cpu-idle-states = <&cpu_pd_wait>; }; A53_L2: l2-cache0 { -- 2.7.4