From patchwork Wed Apr 27 14:00:18 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 8957891 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 7DB909F372 for ; Wed, 27 Apr 2016 14:02:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9D76120114 for ; Wed, 27 Apr 2016 14:02:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BAEBB20109 for ; Wed, 27 Apr 2016 14:02:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752801AbcD0OBW (ORCPT ); Wed, 27 Apr 2016 10:01:22 -0400 Received: from mailout3.w1.samsung.com ([210.118.77.13]:26229 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752598AbcD0OBT (ORCPT ); Wed, 27 Apr 2016 10:01:19 -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 <0O6A00CK7PM2W030@mailout3.w1.samsung.com>; Wed, 27 Apr 2016 15:01:14 +0100 (BST) X-AuditID: cbfec7f5-f792a6d000001302-b2-5720c62a33ab Received: from eusync3.samsung.com ( [203.254.199.213]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id 71.D2.04866.A26C0275; Wed, 27 Apr 2016 15:01:14 +0100 (BST) Received: from AMDC2174.DIGITAL.local ([106.120.53.17]) by eusync3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0O6A00BPYPLYFS50@eusync3.samsung.com>; Wed, 27 Apr 2016 15:01:14 +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, Tobias Jakobi , Marek Szyprowski Cc: linux-mmc@vger.kernel.org, linux.amoon@gmail.com, Bartlomiej Zolnierkiewicz Subject: [PATCH v2 1/3] ARM: dts: exynos: Define vqmmc for SD card and allow disabling regulators on Odroid X/X2/U3 Date: Wed, 27 Apr 2016 16:00:18 +0200 Message-id: <1461765620-6833-1-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprELMWRmVeSWpSXmKPExsVy+t/xq7paxxTCDdYeE7LYOGM9q8X8I+dY LV6/MLTof/ya2WLT42usFpd3zWGzOPK/n9Fixvl9TBbrNt5it1h75C67RdvqD6wO3B47Z91l 99i0qpPNY/OSeo9/x9g9+rasYvT4vEkugC2KyyYlNSezLLVI3y6BK+N1w23WgmPcFU9edrI3 MG7j7GLk5JAQMJE4tmcCI4QtJnHh3nq2LkYuDiGBpYwSfSc2soEkhAQamSROrZAFsdkEjCU2 L18CViQisJ1JYtvsyUwgCWaBHIn9f/Yyg9jCAqUSxz6tYgexWQRUJfqmPwazeQXcJF4/msoM sU1O4uSxyawTGLkXMDKsYhRNLU0uKE5KzzXSK07MLS7NS9dLzs/dxAgJqa87GJceszrEKMDB qMTDWyChEC7EmlhWXJl7iFGCg1lJhDf8CFCINyWxsiq1KD++qDQntfgQozQHi5I478xd70OE BNITS1KzU1MLUotgskwcnFINjEkV0V8sd/+RX6yl4Lem58LSa28m8Rh9n1OVtHmqrgp/8Zy/ zC9SDOftz7H4K/vIf9bWy7bXLYL8Wq+3KOncYr8zb3Wkvx1zvqqWQ2Lz52zPyzsj+bdPlNzk EJCzSLTgaLLPKoXl65dcvc9vUlBYv6Pc58xy1hWf7/BmbDp5ULTwCP/aSmGvuUosxRmJhlrM RcWJAMhuw4UlAgAA Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@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 Reviewed-by: Javier Martinez Canillas --- Changes since v1: 1. None --- 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";