From patchwork Thu Feb 12 08:51:00 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 5818331 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 B10A29F380 for ; Thu, 12 Feb 2015 08:56:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D5B0A2015E for ; Thu, 12 Feb 2015 08:56:20 +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 106BC200B4 for ; Thu, 12 Feb 2015 08:56: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 1YLpWt-0003C8-Nf; Thu, 12 Feb 2015 08:53:47 +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 1YLpVx-0002cl-7A for linux-arm-kernel@lists.infradead.org; Thu, 12 Feb 2015 08:52:49 +0000 Received: by mail-wi0-f178.google.com with SMTP id em10so2435997wid.5 for ; Thu, 12 Feb 2015 00:52:27 -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=NyMKMIpkwlfZIFahEVyxI5HsFe3x385GiU2AqTNIomg=; b=P7f5crVhDsryCYWmrkH9pfplmok6yr2HjhZGV5mx6zPMXxjQpDoh1c7c8WygMz2fdi hh2B8n6W/m4ILZ1PUD+yGUEac8DiUmJ0KnaPDkBlF9JLVHU35u1Pi4+Gh8iiyZ8C+tbE Rrfvoj8Fmrntu8ELsiBAjPXfMeI8hQo1E+6ruTfJwbN86DyeHixACDcSWIDyjl0O9InM 04Ys1IRTnUQZ0XZh3rtM3JTKT+CiedwDFVIHpPQpb+uiWGDONBE2X16Myle/MmzXKacy WiZCViU17Yi1EVBsAt5JpG6HSms3CpMFqCikLUSOiExqtvLFNCpdCQehE+nR6Ngdyi5I Tx6A== X-Received: by 10.194.187.236 with SMTP id fv12mr1055891wjc.131.1423731147396; Thu, 12 Feb 2015 00:52:27 -0800 (PST) Received: from cizrna.lan (37-48-47-45.tmcz.cz. [37.48.47.45]) by mx.google.com with ESMTPSA id w16sm1571919wia.15.2015.02.12.00.52.24 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Feb 2015 00:52:26 -0800 (PST) From: Tomeu Vizoso To: linux-tegra@vger.kernel.org Subject: [PATCH v5 06/11] ARM: tegra: Use pwrseq-simple for the wifi in Nyan Date: Thu, 12 Feb 2015 09:51:00 +0100 Message-Id: <1423731078-26681-7-git-send-email-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1423731078-26681-1-git-send-email-tomeu.vizoso@collabora.com> References: <1423731078-26681-1-git-send-email-tomeu.vizoso@collabora.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150212_005249_422901_FC500089 X-CRM114-Status: GOOD ( 10.60 ) X-Spam-Score: -0.5 (/) Cc: Mark Rutland , Alexandre Courbot , Russell King , Pawel Moll , Tomeu Vizoso , Stephen Warren , Andrew Bresticker , Simon Glass , Ian Campbell , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Rob Herring , Thierry Reding , Kumar Gala , 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 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 */