Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp246922imm; Tue, 28 Aug 2018 22:06:36 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaJzegX92swDyBADn6D6kOGn5IMkRfmtanRy/BFJjfOQc79cSwny47pPwMSX7kLx1Yx2Hm8 X-Received: by 2002:a65:4306:: with SMTP id j6-v6mr4086810pgq.359.1535519196029; Tue, 28 Aug 2018 22:06:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535519196; cv=none; d=google.com; s=arc-20160816; b=cTzO3mIdMingd943EXcGTIEzYUJ2aP34YbgQiauBIuIIBi3A5VLPjh558T+sg16WTM cIdLR5XWKKDX7Ig4hKG4MObeRSfQuDU7O04mEifPg+dxPNe4h9pYTYtL4Kq5hLVMyV31 QVLODpSTgu+7BIKk56O8vFvRxy2WwhygbVie/1nBL0OwkUrOKlBdFAm3XPsKeJ5lvQIP TirELBzrav28VKQeIkgDlGuCXh/V72Fg7G3lOCn+FnAWo6o3aThNComk7qxZ0faPXSeV gjSN2QglXANj3Q0z2sa7DyvKDCiboUGFxRxFcqVRzUk07hO2lvM2xJNPYqz1VB7ibwGk psaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:message-id:date:subject:cc:to :from:dkim-signature:arc-authentication-results; bh=NQVZmfkLTJiMHJeMSXKLFfkEY12ik0TxmHWt0ClUDoU=; b=HFjBV+0imCjlluhwn4VrM8xg/otHpN8LPseVkdR1qe2LbCOJQhVMIWHn6oGBIqvpJn +zQSiT+lnQhhV3bWAFD+DZUXjlYqaGLJKDvw31XDRDdum2jMjLd4leyM8dkNZaPfWr37 4LIUKciJPa4pLIatjqIF2fIc6TAg7m8/WgGWvRVVwyjmfuftUjJoH31nBEvoTmLtP4+8 nWJMvd9jTz2xBwivbcgG1MMabDC56ya6UNscS0LtjUEok+sOfm7M6yt74N2+B6Ar9FEV RdGvHgmqqs7OSFqHgjGVg2lccGZFUVdA4V2GXpaX1X5COmgXQoqojil4h+9aM1vYB9xA 9StQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=DaAH2jaR; 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=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t7-v6si2472996plo.165.2018.08.28.22.06.18; Tue, 28 Aug 2018 22:06:35 -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=@nxp.com header.s=selector1 header.b=DaAH2jaR; 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=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727117AbeH2JAJ (ORCPT + 99 others); Wed, 29 Aug 2018 05:00:09 -0400 Received: from mail-eopbgr30068.outbound.protection.outlook.com ([40.107.3.68]:38631 "EHLO EUR03-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726209AbeH2JAJ (ORCPT ); Wed, 29 Aug 2018 05:00:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NQVZmfkLTJiMHJeMSXKLFfkEY12ik0TxmHWt0ClUDoU=; b=DaAH2jaRFlxNn5lMyh71c81xdsSX2ZqBFdOjE7XFJ15INqqIVDRfeYuWru7mszqCjXbz9LkLl9h0uj8siAgEoNCD5KBVJ4NCfifXk9XrRokpxO3f/mc19RW3W9gLO9Zninthw6GGWmjyvfB4OjYT74zOg2shoA/F5faFpBAGEdw= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=anson.huang@nxp.com; Received: from anson-OptiPlex-790.ap.freescale.net (119.31.174.66) by AM6PR0402MB3909.eurprd04.prod.outlook.com (2603:10a6:209:1b::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1080.17; Wed, 29 Aug 2018 05:04:58 +0000 From: Anson Huang To: shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, fabio.estevam@nxp.com, robh+dt@kernel.org, mark.rutland@arm.com, linux@armlinux.org.uk, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Linux-imx@nxp.com Subject: [PATCH 1/2] ARM: dts: imx7s: enable cpuidle driver Date: Wed, 29 Aug 2018 13:00:46 +0800 Message-Id: <1535518847-24417-1-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK0P153CA0023.APCP153.PROD.OUTLOOK.COM (2603:1096:203:18::35) To AM6PR0402MB3909.eurprd04.prod.outlook.com (2603:10a6:209:1b::32) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0d9344c8-a7c9-4e41-5445-08d60d6cf9f6 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:AM6PR0402MB3909; X-Microsoft-Exchange-Diagnostics: 1;AM6PR0402MB3909;3:VovRm8LaNTj1bytlhfWizwj/Qq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nFMXMJ4EBVGnUOdEFOfdoOfMenUUYMutUK6mY40n1esHFB9ilqwC9VXrjM5t6js8sNedHEXPYPLzXIQbq3VFi30mjIsxaih3I6A/g06OplC3NHul2Ij3j1Hb1cL3p+pvUb7D17I7/Pl0RF6pWDJFKxodaKspRD9vzVK7wqnQQMul5E3p3r27+V3PxZB5nE8OKylyYJXpy/OBOmNJ8Qhxf/+10qwiFgmgfStFUXyjupbyswuFE/PH1rtJ1At+3bB8up/9ZQgb/WNEmytZEs2/5m8VJmgqcSHjqdTRt7ANPx57M3OB1veCgdIn8/9H6TrVY7N9AO1yT;4:ljhTObFxY4rnWUN7pxlcWIu2mqYrGFvtSthSu1rqXKk2d5zYB6RcXJqxyBFAdlWOQYXRgYkkvol81TfvHxakTUEZKlU23aI/Cta8g/zMN/3B6V5/iIqwKUPix0oOjbWkeqVrdQH9+r9Lzu7mPx2JPXw+wXygIXRMOpcjHYv5gFtTwJJQH5sVi6rW2e4anPkuFmbGrfaPf5pV+IWVD8kbm5eh8FucjDh0y91WdKi6+HhAsCqP7G3wlmcITbfxVoN0BC/pj7S0xgYOMDUqAnKkT+2YPex/y0XcMUjYrJ5ZZ3n3KwWSD9BXk5ciMCgbMabS X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(823301075)(10201501046)(93006095)(93001095)(3231311)(944501410)(52105095)(3002001)(6055026)(149027)(150027)(6041310)(20161123558120)(20161123560045)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699016);SRVR:AM6PR0402MB3909;BCL:0;PCL:0;RULEID:;SRVR:AM6PR0402MB3909; X-Forefront-PRVS: 077929D941 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(376002)(396003)(39860400002)(136003)(366004)(346002)(199004)(189003)(97736004)(66066001)(50466002)(36756003)(68736007)(48376002)(86362001)(105586002)(305945005)(47776003)(6486002)(7736002)(14444005)(106356001)(25786009)(956004)(2616005)(486006)(575784001)(476003)(5660300001)(50226002)(16586007)(81166006)(6666003)(8676002)(81156014)(6506007)(8936002)(53936002)(4326008)(26005)(386003)(52116002)(51416003)(186003)(6116002)(6512007)(3846002)(316002)(16526019)(2906002)(478600001)(921003)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:AM6PR0402MB3909;H:anson-OptiPlex-790.ap.freescale.net;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;AM6PR0402MB3909;23:kRKw+lt12WLGYasbWiraG+l4UCExBzg6Pn4x/X+?= =?us-ascii?Q?l8GdP89A1qH9wwpgz/jYjBz6Dpcs2IR41spMcEUe0krBpgG5TcaZvdWr+ZA5?= =?us-ascii?Q?kz7toydUb0rL9M/gW2t+M8acFvNwaNgfIRiYg5N9LfT/mGHJ34/qACnQL9FR?= =?us-ascii?Q?SFu8LCnJEYHen5Cy5kB58i5oD/TKGgEO0ejGv8r5UAZRqwjf1LGZ/XcuxwHO?= =?us-ascii?Q?X6IEHlaskmFyUX37rcFyK1s9SSyjVNHc4u41xKWr1fJ2dhIH44cF75z7gB4N?= =?us-ascii?Q?ZnY08TVVjV69Yyh/EimSNspT7d3F3g/4XguyaMfAy4jombAOq3rgsaSGgGEo?= =?us-ascii?Q?0qqiDoHK2xFaOnsUCgLCkJJjF1B1aciEvOi4tlSPFlACIh8ZjITv2TPwSALP?= =?us-ascii?Q?xax/aaYAsi922tqoSTZUgB5j2deNFOtFzdMISR8CeqtLjB9XidSEgt+d7E+B?= =?us-ascii?Q?iszHPmALGzcP0ITyNSLTy90uQdAoaZs3A7++FOonDl31WRiDIl262DOFeucB?= =?us-ascii?Q?+9brsobj8wmn9ktfR/z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osticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Aug 2018 05:04:58.7859 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0d9344c8-a7c9-4e41-5445-08d60d6cf9f6 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR0402MB3909 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Enable cpuidle for i.MX7S/D using generic ARM cpuidle driver, below 2 idle states enabled: 1. ARM WFI; 2. SoC WAIT mode. Signed-off-by: Anson Huang --- arch/arm/boot/dts/imx7d.dtsi | 1 + arch/arm/boot/dts/imx7s.dtsi | 14 ++++++++++++++ 2 files changed, 15 insertions(+) diff --git a/arch/arm/boot/dts/imx7d.dtsi b/arch/arm/boot/dts/imx7d.dtsi index 7cbc2ff..4d0d0f6 100644 --- a/arch/arm/boot/dts/imx7d.dtsi +++ b/arch/arm/boot/dts/imx7d.dtsi @@ -20,6 +20,7 @@ reg = <1>; clock-frequency = <996000000>; operating-points-v2 = <&cpu0_opp_table>; + cpu-idle-states = <&CPU_SLEEP>; }; }; diff --git a/arch/arm/boot/dts/imx7s.dtsi b/arch/arm/boot/dts/imx7s.dtsi index 93884ce..cf5570b 100644 --- a/arch/arm/boot/dts/imx7s.dtsi +++ b/arch/arm/boot/dts/imx7s.dtsi @@ -54,6 +54,19 @@ #address-cells = <1>; #size-cells = <0>; + idle-states { + entry-method = "psci"; + + CPU_SLEEP: WAIT { + compatible = "arm,idle-state"; + arm,psci-suspend-param = <0x0010000>; + local-timer-stop; + entry-latency-us = <100>; + exit-latency-us = <50>; + min-residency-us = <1000>; + }; + }; + cpu0: cpu@0 { compatible = "arm,cortex-a7"; device_type = "cpu"; @@ -61,6 +74,7 @@ clock-frequency = <792000000>; clock-latency = <61036>; /* two CLK32 periods */ clocks = <&clks IMX7D_CLK_ARM>; + cpu-idle-states = <&CPU_SLEEP>; }; }; -- 2.7.4