From patchwork Tue Jun 13 10:44:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gregory CLEMENT X-Patchwork-Id: 9783649 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id BAF13602DC for ; Tue, 13 Jun 2017 10:46:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AC53728652 for ; Tue, 13 Jun 2017 10:46:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A0DA22867B; Tue, 13 Jun 2017 10:46:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3F58328652 for ; Tue, 13 Jun 2017 10:46:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=gRNXWw32gVmiQpeASn/t8QWIMyfr6xIEnW1Kh0tZz38=; b=bacSqz/Hh9/5aTqyYnHZpiPucE meFheKmmGRuW2GiWvM7KMvJYBdTWfcZHyr9YpAyhJbJed3n8VDiMayaR9C9ST+TCdPym8+9ISZad5 HDuHvbJ7pQEEa8EWDJW9yj0CdnEVA/AiQ8dYVujsRPyh/xyPBLoS4lmLby2KU0nDttK3rxCVPmj0G JgxQfTeloXHcMik5z6c6I39tRIpR9CCHNc9ukelzuZRxQYZKpzBr9nfK6V46wh0wz7AqNuKGJ16Vj DIKgxQukG8s9TmGnhXq6d80GdYDzdTJvAKGjBmDbFGX6xsMVV1pjoYObGIuyiqZcNFRnZp8SzP19J 8+37f3KQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dKjKw-0008TJ-43; Tue, 13 Jun 2017 10:46:14 +0000 Received: from mail.free-electrons.com ([62.4.15.54]) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dKjJr-0005bF-EA for linux-arm-kernel@lists.infradead.org; Tue, 13 Jun 2017 10:45:11 +0000 Received: by mail.free-electrons.com (Postfix, from userid 110) id C658B21E24; Tue, 13 Jun 2017 12:44:23 +0200 (CEST) Received: from localhost (83.146.29.93.rev.sfr.net [93.29.146.83]) by mail.free-electrons.com (Postfix) with ESMTPSA id 9EFE121974; Tue, 13 Jun 2017 12:44:23 +0200 (CEST) From: Gregory CLEMENT To: Jason Cooper , Andrew Lunn , Sebastian Hesselbarth , Gregory CLEMENT Subject: [PATCH v2 5/5] arm64: dts: marvell: armada-3720-db: Add vqmmc regulator for SD slot Date: Tue, 13 Jun 2017 12:44:12 +0200 Message-Id: <20170613104412.1616-6-gregory.clement@free-electrons.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170613104412.1616-1-gregory.clement@free-electrons.com> References: <20170613104412.1616-1-gregory.clement@free-electrons.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170613_034508_506042_D9E5DA3F X-CRM114-Status: UNSURE ( 8.87 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Petazzoni , Hua Jing , Nadav Haklai , Victor Gu , Neta Zur Hershkovits , Kostya Porotchkin , Marcin Wojtas , Wilson Ding , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP By adding this regulator, the SD cards are usable at higher speed protocols such as SDR104. This patch was tested with an SD HC card compatible with UHS-I. Signed-off-by: Gregory CLEMENT --- arch/arm64/boot/dts/marvell/armada-3720-db.dts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/marvell/armada-3720-db.dts b/arch/arm64/boot/dts/marvell/armada-3720-db.dts index eab3bc7e6382..9df0f06ce607 100644 --- a/arch/arm64/boot/dts/marvell/armada-3720-db.dts +++ b/arch/arm64/boot/dts/marvell/armada-3720-db.dts @@ -80,6 +80,20 @@ compatible = "usb-nop-xceiv"; vcc-supply = <&exp_usb3_vbus>; }; + + vcc_sd_reg1: regulator { + compatible = "regulator-gpio"; + regulator-name = "vcc_sd1"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + + gpios = <&gpiosb 23 GPIO_ACTIVE_HIGH>; + gpios-states = <0>; + states = <1800000 0x1 + 3300000 0x0>; + enable-active-high; + }; }; /* Gigabit module on CON19(V2.0)/CON21(V1.4) */ @@ -164,6 +178,7 @@ cd-gpios = <&gpiosb 2 GPIO_ACTIVE_LOW>; bus-width = <4>; marvell,pad-type = "sd"; + vqmmc-supply = <&vcc_sd_reg1>; status = "okay"; };