From patchwork Mon Jan 12 09:23:04 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 5609181 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id E6F11C058D for ; Mon, 12 Jan 2015 09:26:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1E0AB2024D for ; Mon, 12 Jan 2015 09:26:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2F9512038E for ; Mon, 12 Jan 2015 09:26:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752108AbbALJ0f (ORCPT ); Mon, 12 Jan 2015 04:26:35 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:32012 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752677AbbALJXY (ORCPT ); Mon, 12 Jan 2015 04:23:24 -0500 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout2.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NI200FHD4XR8O90@mailout2.w1.samsung.com>; Mon, 12 Jan 2015 09:27:27 +0000 (GMT) X-AuditID: cbfec7f4-b7f126d000001e9a-46-54b3928a66b3 Received: from eusync1.samsung.com ( [203.254.199.211]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 34.B6.07834.A8293B45; Mon, 12 Jan 2015 09:23:22 +0000 (GMT) Received: from AMDC1943.digital.local ([106.116.151.171]) by eusync1.samsung.com (Oracle Communications Messaging Server 7u4-23.01(7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0NI200FPC4QTVE70@eusync1.samsung.com>; Mon, 12 Jan 2015 09:23:22 +0000 (GMT) From: Krzysztof Kozlowski To: Chris Ball , Ulf Hansson , Jaehoon Chung , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org, Kukjin Kim , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Cc: Kyungmin Park , Bartlomiej Zolnierkiewicz , Marek Szyprowski , Krzysztof Kozlowski Subject: [RFC 2/3] ARM: dts: Specify MSHC realistic clocks and use frequency scaling Date: Mon, 12 Jan 2015 10:23:04 +0100 Message-id: <1421054585-9032-3-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1421054585-9032-1-git-send-email-k.kozlowski@samsung.com> References: <1421054585-9032-1-git-send-email-k.kozlowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprBLMWRmVeSWpSXmKPExsVy+t/xy7pdkzaHGBzcbmmxccZ6VosJl7cz Wsw/co7V4savNlaL1y8MLfofv2a2ONv0ht1i0+NrrBaXd81hszjyv5/RYsb5fUwWa4/cZbc4 vjbcgddj06pONo871/aweWxeUu9x49VCJo++LasYPT5vkgtgi+KySUnNySxLLdK3S+DKuH5r PVvBd/aKR2s+sjYwXmDrYuTkkBAwkVj34SwLhC0mceHeeqA4F4eQwFJGiZZTW1ggnD4miZPf ZzGBVLEJGEtsXr4ErEpEYAuTxKo1a1lBHGaBo4wSN2bdBasSFgiTOH7qDdhcFgFVieb+JnYQ m1fATeLdvbXMEPvkJE4em8wKYnMKuEscnPgDzBYCqrm6q5NpAiPvAkaGVYyiqaXJBcVJ6bmG esWJucWleel6yfm5mxghofllB+PiY1aHGAU4GJV4eCfIbA4RYk0sK67MPcQowcGsJMLrWgYU 4k1JrKxKLcqPLyrNSS0+xMjEwSnVwJgq/oLntI6wecKPgru+L7Y6yc43OXEh97DslZdGe60L NyvICYv1MOQIO/BydN9orfq2P75SrTu6qaF/zZQzVq5C745nvNDf/u/Kqa0nD3zX402VFXTY dM5xYpnp1PvCU95lKV2fkjZ3RVXHGc5NnG5RZWfuspRuyU6Jstkr3fe4sdrrgLCDmxJLcUai oRZzUXEiAG05LlQrAgAA Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, 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 Lower the dw_mmc host clock from 400 MHz to 100 MHz because there are a lot of MMC errors above 100 MHz. Enable frequency scaling to reduce energy consumption. In idle this reduced energy consumption by 2.6% (from 119.5 mA to 116.4 mA). Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/exynos4412-trats2.dts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/exynos4412-trats2.dts b/arch/arm/boot/dts/exynos4412-trats2.dts index 29231b452643..21f1236ae979 100644 --- a/arch/arm/boot/dts/exynos4412-trats2.dts +++ b/arch/arm/boot/dts/exynos4412-trats2.dts @@ -558,7 +558,9 @@ non-removable; card-detect-delay = <200>; vmmc-supply = <&vemmc_reg>; - clock-frequency = <400000000>; + clock-frequency = <100000000>; + clock-freq-min-max = <400000 100000000>; + frequency-scaling; samsung,dw-mshc-ciu-div = <0>; samsung,dw-mshc-sdr-timing = <2 3>; samsung,dw-mshc-ddr-timing = <1 2>;