From patchwork Wed Jan 28 10:51:06 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 5727871 Return-Path: X-Original-To: patchwork-linux-arm@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 677C2BF440 for ; Wed, 28 Jan 2015 10:55:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8DCB9201F2 for ; Wed, 28 Jan 2015 10:55:21 +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 CB2C920274 for ; Wed, 28 Jan 2015 10:55:20 +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 1YGQFX-0001ZV-CW; Wed, 28 Jan 2015 10:53:31 +0000 Received: from mail-wi0-x22c.google.com ([2a00:1450:400c:c05::22c]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YGQEt-0000dP-Aw for linux-arm-kernel@lists.infradead.org; Wed, 28 Jan 2015 10:52:51 +0000 Received: by mail-wi0-f172.google.com with SMTP id h11so10917163wiw.5 for ; Wed, 28 Jan 2015 02:52:29 -0800 (PST) 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=Ek7YWx3KxwCDVx/nzOR2KeXLaqS2/9PfTvoEAwShu+8=; b=JeicGaPe3kHFYbGvCr7qxv0JSdf/5Ao2+6jG/b/1Tt2M8fGiqLeT41z5vTWEdUf+Ql JLKs0y0STJOs0F0DPue6uUmCb0+K2zQrMou9zjxWESfegVtDC/YDXZZi8Geohn0Lt+fo Qim062Dwkv0nWq/aTG5H2jgfYeQQNO5D7KlXTyPPO0+93I1uLvWDzPNrIE8CLNkZ+S/R +QslLGsFESyfx4ljd81gwbG6XEth8UbcaBaDuDbtXJXzKhHMle9OW1irtvyNIJZPPn6v pq7MZvF0UUp4JOUiINMMQ4pOf5LBzPbw9wCdOHV6vcBjollQ0Ez9RmHcEWKa3WD4ggtN u/Tg== X-Received: by 10.180.73.241 with SMTP id o17mr5981799wiv.16.1422442349334; Wed, 28 Jan 2015 02:52:29 -0800 (PST) Received: from cizrna.lan (37-48-33-238.tmcz.cz. [37.48.33.238]) by mx.google.com with ESMTPSA id cy8sm2257004wib.9.2015.01.28.02.52.26 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Jan 2015 02:52:28 -0800 (PST) From: Tomeu Vizoso To: linux-kernel@vger.kernel.org Subject: [PATCH v3 08/10] ARM: tegra: Use pwrseq-simple for the wifi in Nyan Date: Wed, 28 Jan 2015 11:51:06 +0100 Message-Id: <1422442278-10405-9-git-send-email-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1422442278-10405-1-git-send-email-tomeu.vizoso@collabora.com> References: <1422442278-10405-1-git-send-email-tomeu.vizoso@collabora.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150128_025251_530618_FCDA336B X-CRM114-Status: GOOD ( 10.90 ) X-Spam-Score: -0.7 (/) Cc: Mark Rutland , Alexandre Courbot , Russell King , Pawel Moll , Tomeu Vizoso , Ian Campbell , Andrew Bresticker , Simon Glass , Stephen Warren , devicetree@vger.kernel.org, Rob Herring , Thierry Reding , Kumar Gala , linux-tegra@vger.kernel.org, Dylan Reid , Javier Martinez Canillas , 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 --- 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 26e7402..632d181 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 */