From patchwork Tue Dec 17 01:40:15 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Tobias X-Patchwork-Id: 3358231 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 707D09F380 for ; Tue, 17 Dec 2013 01:40:50 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A6DF52020A for ; Tue, 17 Dec 2013 01:40:49 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B5C01200EB for ; Tue, 17 Dec 2013 01:40:48 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VsjeN-0000db-UW; Tue, 17 Dec 2013 01:40:44 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VsjeL-0004hr-2D; Tue, 17 Dec 2013 01:40:41 +0000 Received: from mail-ob0-x236.google.com ([2607:f8b0:4003:c01::236]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VsjeI-0004hQ-CN for linux-arm-kernel@lists.infradead.org; Tue, 17 Dec 2013 01:40:39 +0000 Received: by mail-ob0-f182.google.com with SMTP id wp4so5678941obc.41 for ; Mon, 16 Dec 2013 17:40:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=zgvi944Vus06A7nh/w6y9rjTEZ69USKliYmTcfrE0Bw=; b=FUsqtjm8oGTUnNY4Zcb6CaaLaJZ/2ACfYBwf+X+ApEqAmVbJO7P7VvIck8q3yoQJaH 9fuXqDhL+p47UtgMzpRX0R9XeO7usoJBHhvgC7QcZusCgskQO+0GvCUAB33UDTfGayx3 Inkzljzgr6yvyqZ+YvHPDoP/tkSgeyI1HSu0KAkj8xd2a4n2L0BWRCIokO9w9g3AlFyb yioeXxmfouYlCr1n7MGCHwNpK1k55+Hzi72l248YY4FFrRSklG6TgHVMzFN5EjwI5DiT rz1okpbmhHOXYlFyNSnOrYUEwnTyIu5mjBLwaD5nePb1hMBK/lZjh9ialWxvlLkL7LLg pJKw== MIME-Version: 1.0 X-Received: by 10.182.29.98 with SMTP id j2mr13896347obh.30.1387244415238; Mon, 16 Dec 2013 17:40:15 -0800 (PST) Received: by 10.60.36.166 with HTTP; Mon, 16 Dec 2013 17:40:15 -0800 (PST) Date: Mon, 16 Dec 2013 17:40:15 -0800 Message-ID: Subject: [PATCH 1/3]: Support cpu frequency scaling and power management for iMX6SL From: John Tobias To: linux-arm-kernel@lists.infradead.org, linux-mmc@vger.kernel.org, Shawn Guo , Fabio Estevam , Chris Ball X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131216_204038_503445_95934F71 X-CRM114-Status: UNSURE ( 7.34 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.0 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP iMX6SL device tree doesn't have a configuration settings to enable the frequency scaling and power management. From: John Tobias }; diff --git a/arch/arm/boot/dts/imx6sl.dtsi b/arch/arm/boot/dts/imx6sl.dtsi index 28558f1..0ad2f6a 100644 --- a/arch/arm/boot/dts/imx6sl.dtsi +++ b/arch/arm/boot/dts/imx6sl.dtsi @@ -38,6 +38,19 @@ device_type = "cpu"; reg = <0x0>; next-level-cache = <&L2>; + operating-points = < + /* kHz uV */ + 1000000 1275000 + 792000 1150000 + >; + clock-latency = <61036>; /* two CLK32 periods */ + clocks = <&clks IMX6SL_CLK_ARM>, <&clks IMX6SL_CLK_PLL2_PFD2>, <&clks IMX6SL_CLK_STEP>, + <&clks IMX6SL_CLK_PLL1_SW>, <&clks IMX6SL_CLK_PLL1_SYS>; + clock-names = "arm", "pll2_pfd2_396m", "step", + "pll1_sw", "pll1_sys"; + arm-supply = <®_arm>; + pu-supply = <®_pu>; + soc-supply = <®_soc>; };