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: 451336 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 59AD61400EA for ; Wed, 18 Mar 2015 20:58:11 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="verification failed; unprotected key" header.d=gmail.com header.i=@gmail.com header.b=T74ntP15; dkim-adsp=none (unprotected policy); dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932841AbbCRJxj (ORCPT ); Wed, 18 Mar 2015 05:53:39 -0400 Received: from mail-we0-f182.google.com ([74.125.82.182]:33328 "EHLO mail-we0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932742AbbCRJxg (ORCPT ); Wed, 18 Mar 2015 05:53:36 -0400 Received: by weop45 with SMTP id p45so27761480weo.0; 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 Cc: Tomeu Vizoso , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Russell King , Stephen Warren , Thierry Reding , Alexandre Courbot , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@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> Sender: linux-tegra-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-tegra@vger.kernel.org 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 */