From patchwork Wed Aug 29 05:00:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anson Huang X-Patchwork-Id: 10579531 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 45ECB139B for ; Wed, 29 Aug 2018 05:05:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2AC592A816 for ; Wed, 29 Aug 2018 05:05:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1EE522A8BE; Wed, 29 Aug 2018 05:05:28 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8A3C02A816 for ; Wed, 29 Aug 2018 05:05:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=GukyZ5ooVvweVWeZDMjYpnN0hmO9guN/NchIh5F8Ruc=; b=mPOM9va6ccKlc3 rrW1O9tLV4uGUlOH9mNuR/e4SUZ2VW0idwysfnhedwTBtyIe2gLq9P/40tW7M0h7XYn9e3cfluj75 967VgOSh0x69VvTTN5pcKYRgL65OpbiyyjFzDJMxcZmXoGrNR6v051BQKF0R59j63DrXaqZZnUw+I JI4nJy3wUkZGZ3aGEruJ2CB8VjwgDs5Tnd11c2s3vfI2YQKLMok3id2uVaFDykkkbx8DaoFOOpCM8 7vpGG1aD9BuWc4F2kC7H3x84/6chHvTjGENizCasSj/15iJCW0CsaVb35BKUzsOU6rWtiLL4zxdDt vNhBj7w5JJ+i1rMa1p+Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fusfQ-0001ra-NO; Wed, 29 Aug 2018 05:05:20 +0000 Received: from mail-db5eur03on062f.outbound.protection.outlook.com ([2a01:111:f400:fe0a::62f] helo=EUR03-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fusfM-0000gl-Vc for linux-arm-kernel@lists.infradead.org; Wed, 29 Aug 2018 05:05:18 +0000 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 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 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/QqLHN4Wp9HoX5FgzVGEiI157sxuhujy89CJjFp9F09KeoyYHWtLH+nu4oNuTgLtouAwkNJLvVM0ZSfy4f1kvm/PJTSQABX1SM+CdK87uzZflGtI8ND52aP98nE7NRYOsx+TAtvL+HmC0yk3z9PSStEQXW2Ab1rlUqS14ClyP3kQogMs9sVN1hOUK/k0ANFNo/VJ28XZOPHBscDBUr6lh89ar1qrLr/RY2+CIq6Ue; 25:rq742ZkaocREw4VGoh8JevFZDOozXKIrI8q+2r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EmytZEs2/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+?= l8GdP89A1qH9wwpgz/jYjBz6Dpcs2IR41spMcEUe0krBpgG5TcaZvdWr+ZA5kz7toydUb0rL9M/gW2t+M8acFvNwaNgfIRiYg5N9LfT/mGHJ34/qACnQL9FRSFu8LCnJEYHen5Cy5kB58i5oD/TKGgEO0ejGv8r5UAZRqwjf1LGZ/XcuxwHOX6IEHlaskmFyUX37rcFyK1s9SSyjVNHc4u41xKWr1fJ2dhIH44cF75z7gB4NZnY08TVVjV69Yyh/EimSNspT7d3F3g/4XguyaMfAy4jombAOq3rgsaSGgGEo0qqiDoHK2xFaOnsUCgLCkJJjF1B1aciEvOi4tlSPFlACIh8ZjITv2TPwSALPxax/aaYAsi922tqoSTZUgB5j2deNFOtFzdMISR8CeqtLjB9XidSEgt+d7E+BiszHPmALGzcP0ITyNSLTy90uQdAoaZs3A7++FOonDl31WRiDIl262DOFeucB+9brsobj8wmn9ktfR/zcmUctfBeEhwtLJ02AihTl6IwPfBy2AxdjG7mpeXfCwPTQZ/atxr5OgwFS/taAO2ca4mnJKpAOUgguL5UZQLWp/vK57MabQ5ytP8b6gyzErBK1PEFQDeP88+2tdsyqA9TyJrhaGn1Va9lfyvQD5Sapt+sg/Mt8yR1Oc9eZV/HGj4f4gJVRbix38PcbFJegTPJ/HSVyrTg3+WpLlYxkoBkc2HcYJcHvXGRaCypS11oIdyXNbrvpMl3M7lulbU/9fhX8j32b0/k2CuklDeYN3t187el4L9apg6vtpyPin91I0MLmSr/ei8b2hEOSHY+SdkxIcA9WfwBtKfAzYQDmOJWArbAi/km32S+0oidE3GUAAv7wrwBh+ghb0Dm/br0cacOb2FgV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SE7nzFgV/3Z4kMvaKjTHEAYJt3OoUciDylNzKwapouYWm3m3E+cPYbB31ted3o7hcDAZr3iTGg==; 5:qmd9ttAPZ3xff4UCc2TP8/MFO4jXayzEg8/2T/HKkKgsdP7NxKfxb7M1nZhMfYb2+ajHCyQ/ZKgtTDh3c8oc+OtWJV8gRIfq8FL8ugaIv75snk5yEnDjwwdddjRpUkyjs5Knv0cEC/JBmMj0DqLqDFx95gkAOTvndcnHS8LKkho=; 7:gFbp51LOMXSCiBFR3O5tI6EezC8sv128M61Cx8fZYDWZi3pPPpDn+JF2O+CwSFJXnVv0PZrxcjR9mAe9eonZoW5j1vzVrJ+/oQNXrIJZrTbT6osx0Doo3UAoZrz1298vY1HxXE8BHlEO0Pe51MUrxA7Exo3X7owsRw77N9cWLomiuWL88I3/+f9r+khrLxhcgaHYUVHfBCnUIihjMJVhj6hRTwz/6DICHmZwxQEID/XjcAUG+ecKZSpDys4oYrIK SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180828_220517_168206_9706C7B4 X-CRM114-Status: GOOD ( 10.04 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Linux-imx@nxp.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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>; }; };