From patchwork Wed Mar 18 09:52:21 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 6037621 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.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id D800B9F314 for ; Wed, 18 Mar 2015 09:58:50 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0C3E3204FF for ; Wed, 18 Mar 2015 09:58:50 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (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 32A5D204FC for ; Wed, 18 Mar 2015 09:58:49 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YYAgx-0003Fx-4s; Wed, 18 Mar 2015 09:55:11 +0000 Received: from mail-wi0-x232.google.com ([2a00:1450:400c:c05::232]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YYAff-00021d-UI for linux-arm-kernel@lists.infradead.org; Wed, 18 Mar 2015 09:53:53 +0000 Received: by wibg7 with SMTP id g7so60877760wib.1 for ; Wed, 18 Mar 2015 02:53:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=JFg9cWGXeOP6MayOXGubmxjQ5SAu18clRRTvUGL6XfQ=; b=T74ntP15m9rSar1mxdOrGtt8i1zf6OpBOWRC4C4m6FQW68EccCWHCbVgmSkluP8OLL Nlet/DjNI0TqDXXe9teR0k935rBPsGUESuSqId9tAxB67df0rUGPcErdqiOsWXJ/h5b3 rpq0Ab0+sKb4Lq73MRVHLnPoPTCa8dQ0Zsj07cP7xKHLmaEJUqJYOA7y6YMjGXHMRh5b uhaUfeg7fRaFOnH25eQcWoRwAJNo/A0P5L1tJt1Eq/bQoFXfYyx/QD2yt9fVasO6BF1r h06JAvY8oDE2ANrPbTln3luHsFDb+VjUq1jyHqrqaG3JSt4RZjCwSple9LivyWDiZWhj 8eKg== X-Received: by 10.181.27.199 with SMTP id ji7mr5233322wid.76.1426672414694; Wed, 18 Mar 2015 02:53:34 -0700 (PDT) Received: from cizrna.lan ([109.72.12.84]) by mx.google.com with ESMTPSA id nb4sm23715761wjc.20.2015.03.18.02.53.31 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Mar 2015 02:53:32 -0700 (PDT) From: Tomeu Vizoso To: linux-tegra@vger.kernel.org Subject: [PATCH v6 06/12] ARM: tegra: Use pwrseq-simple for the wifi in Nyan Date: Wed, 18 Mar 2015 10:52:21 +0100 Message-Id: <1426672363-30667-7-git-send-email-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1426672363-30667-1-git-send-email-tomeu.vizoso@collabora.com> References: <1426672363-30667-1-git-send-email-tomeu.vizoso@collabora.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150318_025352_173073_9870DF85 X-CRM114-Status: GOOD ( 11.26 ) X-Spam-Score: -0.5 (/) Cc: Mark Rutland , Alexandre Courbot , Russell King , Tomeu Vizoso , Pawel Moll , Ian Campbell , Stephen Warren , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Rob Herring , Thierry Reding , Kumar Gala , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 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.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 Nyan boards have a Marvell 88w8897 wifi card connected through SDIO that needs the reset line to be asserted before mmc power up and deasserted afterwards. This patch also adds references to the power supplies of the card so that the regulators are enabled when it's probed. Signed-off-by: Tomeu Vizoso Acked-by: Stephen Warren Reviewed-by: Alexandre Courbot --- arch/arm/boot/dts/tegra124-nyan.dtsi | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/tegra124-nyan.dtsi b/arch/arm/boot/dts/tegra124-nyan.dtsi index 579b0b9..d3a95f9 100644 --- a/arch/arm/boot/dts/tegra124-nyan.dtsi +++ b/arch/arm/boot/dts/tegra124-nyan.dtsi @@ -207,7 +207,6 @@ regulator-name = "+1.8V_VDDIO"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; - regulator-boot-on; regulator-always-on; }; @@ -364,12 +363,20 @@ status = "okay"; }; + sdhci0_pwrseq: sdhci0_pwrseq { + compatible = "mmc-pwrseq-simple"; + + reset-gpios = <&gpio TEGRA_GPIO(X, 7) GPIO_ACTIVE_LOW>; + }; + sdhci@0,700b0000 { /* WiFi/BT on this bus */ status = "okay"; - power-gpios = <&gpio TEGRA_GPIO(X, 7) GPIO_ACTIVE_HIGH>; bus-width = <4>; no-1-8-v; non-removable; + mmc-pwrseq = <&sdhci0_pwrseq>; + vmmc-supply = <&vdd_3v3_lp0>; + vqmmc-supply = <&vddio_1v8>; }; sdhci@0,700b0400 { /* SD Card on this bus */