Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1307505imm; Sun, 2 Sep 2018 18:19:31 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY+A0ukOT4wfI/r2FRBKQc3mbe+6h/feVRezWicOZXZo1f3aiWhqf5EognP/g+3p0+oKEEf X-Received: by 2002:a63:6283:: with SMTP id w125-v6mr23325969pgb.83.1535937570939; Sun, 02 Sep 2018 18:19:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535937570; cv=none; d=google.com; s=arc-20160816; b=eK+2WjmQPdNqVXtoMsBxNUjQTLaCaFYAbJ5wXX/sbuiwyxEyigHjH+gAAzjByEuVV5 IpqFmPoSQXvUrEcp8pkpkCoLZkqzcQq2C3KkXbTXufCsS075yZTwZQHR8+lkqnrRQ4BL V3dHd4T6xIO+m5Z/v55dcoDUwd9g9B/v5Rz9q+wwmu6RMORfC5E7hZcMygC1CYmWBFEJ r3etc6gDqsabdi9g2oxckkHY+E786yy/Nsv2uiuJrJ295MriOQaoO/C+P3bBQwKI7piq MXQRjL5EgmlsV8gpzUr1NZuWd36WY27dUudfj4iA/UGv32mQIC16PSEvlNJ8vGz4Zius Vd5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=eOu6amxsaRZKf16L3yVA9cWTnY4iUw36Kr8hEd0MK3Y=; b=zfbCEPUAODFqMJOLY3Eo6u6VCq7Ad9U+9CgeyzClXsldcRT9k1RiflGqpYwfKGunbW MB6N6EI8xij42FtDIYCtdI4d6y209eD5WOnMl0k7DUDj+805Eep7NHvBSS8i9luia+Bo 6TxAB+O8zdIzf3HQtBj2ox56xSdy3WqDuAqdz4i1whleNLjdOeAp+Yv027Jg6jJFYjxZ k6F5a+UjOy+vBKKBsS698ZhLKNswnyxaliQRtnwg0A5I+QPhWSf4I1iR2WIA9FUrgZNZ FLQFdZyDYjmaqWCp9NNcbd6emOJPpGtHeqlHOZmdgyBgDSbx4b/ig6VmNSR7qAc/g5z3 2U8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=tRXKN1H6; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n65-v6si1183610pfn.320.2018.09.02.18.19.15; Sun, 02 Sep 2018 18:19:30 -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=@kernel.org header.s=default header.b=tRXKN1H6; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726022AbeICFfX (ORCPT + 99 others); Mon, 3 Sep 2018 01:35:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:48416 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725762AbeICFfW (ORCPT ); Mon, 3 Sep 2018 01:35:22 -0400 Received: from dragon (unknown [45.56.155.166]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2FA7C20841; Mon, 3 Sep 2018 01:17:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1535937457; bh=HYkK9EBLn+0IpmIx9SexuX5SNqIN8TgxqejaIqM0Kec=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tRXKN1H6k4elKmuDOsF7sB3CLvlv4C1PCIiA/0qc0DL/MzIAvNKKKum3CAwx2WbTa xmc80ZsOs0aIO/pmrN0nzFPXmjWmzgN9W6ILHrknWQ4oBIRIvyYX9dBl5MHCsFmSes u1z36Zfdx+iLj4c1LcfayDv2hHKKwEYjqpnVSy0o= Date: Mon, 3 Sep 2018 09:16:26 +0800 From: Shawn Guo To: Anson Huang Cc: 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, Linux-imx@nxp.com Subject: Re: [PATCH 1/2] ARM: dts: imx7s: enable cpuidle driver Message-ID: <20180903011625.GZ3850@dragon> References: <1535518847-24417-1-git-send-email-Anson.Huang@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1535518847-24417-1-git-send-email-Anson.Huang@nxp.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 29, 2018 at 01:00:46PM +0800, Anson Huang wrote: > 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 { I understand uppercase is allowed, but we conventionally use lowercase for label and node name. Can we do something like below? cpu_sleep_wait: cpu-sleep-wait { ... } Shawn > + 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 > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel