From patchwork Wed Apr 27 12:19:11 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 8956481 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 B5ED7BF29F for ; Wed, 27 Apr 2016 12:21:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EE055200E1 for ; Wed, 27 Apr 2016 12:21:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2C70120259 for ; Wed, 27 Apr 2016 12:21:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752670AbcD0MTc (ORCPT ); Wed, 27 Apr 2016 08:19:32 -0400 Received: from mailout3.w1.samsung.com ([210.118.77.13]:19643 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752542AbcD0MTa (ORCPT ); Wed, 27 Apr 2016 08:19:30 -0400 Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245]) by mailout3.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0O6A00BZZKWE4600@mailout3.w1.samsung.com>; Wed, 27 Apr 2016 13:19:27 +0100 (BST) X-AuditID: cbfec7f5-f792a6d000001302-95-5720ae4e5339 Received: from eusync4.samsung.com ( [203.254.199.214]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id 20.01.04866.E4EA0275; Wed, 27 Apr 2016 13:19:26 +0100 (BST) Received: from AMDC2174.DIGITAL.local ([106.120.53.17]) by eusync4.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0O6A00JXCKWBUR20@eusync4.samsung.com>; Wed, 27 Apr 2016 13:19:26 +0100 (BST) From: Krzysztof Kozlowski To: Kukjin Kim , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Tobias Jakobi , Anand Moon , Jaehoon Chung , linux-mmc@vger.kernel.org, Marek Szyprowski , Bartlomiej Zolnierkiewicz Subject: [PATCH 1/3] ARM: dts: exynos: Define vqmmc for SD card and allow disabling regulators on Odroid X/X2/U3 Date: Wed, 27 Apr 2016 14:19:11 +0200 Message-id: <1461759553-10119-1-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprBLMWRmVeSWpSXmKPExsVy+t/xa7p+6xTCDXatUrfYOGM9q8X8I+dY LW78amO1eP3C0KL/8Wtmi02Pr7FaXN41h83iyP9+RosZ5/cxWazbeIvdYu2Ru+wWbas/sDrw eOycdZfdY9OqTjaPzUvqPf4dY/fo27KK0ePzJrkAtigum5TUnMyy1CJ9uwSujKcL77AXLOSu 2N+3nK2BcR5nFyMnh4SAicTlpxOZIWwxiQv31rN1MXJxCAksZZSY3LELymlkklj+7gYbSBWb gLHE5uVLwBIiAjcZJXasPM4M4jCDVE1a9BJslrBAkcStyV/Yuxg5OFgEVCU2tIWAhHkF3CXW 7nnNBLFOTuLkscmsExi5FzAyrGIUTS1NLihOSs810itOzC0uzUvXS87P3cQICa+vOxiXHrM6 xCjAwajEw1sgoRAuxJpYVlyZe4hRgoNZSYR3wyqgEG9KYmVValF+fFFpTmrxIUZpDhYlcd6Z u96HCAmkJ5akZqemFqQWwWSZODilGhiVCyqVTQ50sCc7uxra/f6+rMNvwUSZMkPWr5sklZKm 7dE5p+N931C7nSt6ace0xF2bGYQV36faPj1UKS2/WG7C8gbjn6+vv5Y+r6iTK77RU2CVlYit +ZH+vB/iC18tKlvu3pM9d2ah/4fGjXO+rkjt/9hbc1nzu3PyuwVfHcviROx44+RctiqxFGck GmoxFxUnAgA89euqKwIAAA== 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=-7.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 The SD-card vmmc-supply contained incorrectly two regulators. The second one is ignored. Fix this by defining proper vmmc and vqmmc supplies. Additionally these regulators do not have to be always on, so allow disabling them to reduce energy consumption. Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/exynos4412-odroid-common.dtsi | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/exynos4412-odroid-common.dtsi b/arch/arm/boot/dts/exynos4412-odroid-common.dtsi index cab0f07d7d28..3d0d44581fbd 100644 --- a/arch/arm/boot/dts/exynos4412-odroid-common.dtsi +++ b/arch/arm/boot/dts/exynos4412-odroid-common.dtsi @@ -249,7 +249,6 @@ regulator-name = "VDDQ_MMC2_2.8V"; regulator-min-microvolt = <2800000>; regulator-max-microvolt = <2800000>; - regulator-always-on; regulator-boot-on; }; @@ -345,7 +344,6 @@ regulator-name = "LDO21_3.3V"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; - regulator-always-on; regulator-boot-on; }; @@ -482,7 +480,8 @@ bus-width = <4>; pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus4>; pinctrl-names = "default"; - vmmc-supply = <&ldo4_reg &ldo21_reg>; + vmmc-supply = <&ldo21_reg>; + vqmmc-supply = <&ldo4_reg>; cd-gpios = <&gpk2 2 GPIO_ACTIVE_HIGH>; cd-inverted; status = "okay";