All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tomeu Vizoso <tomeu.vizoso@collabora.com>
To: linux-tegra@vger.kernel.org
Cc: Tomeu Vizoso <tomeu.vizoso@collabora.com>,
	Rob Herring <robh+dt@kernel.org>, Pawel Moll <pawel.moll@arm.com>,
	Mark Rutland <mark.rutland@arm.com>,
	Ian Campbell <ijc+devicetree@hellion.org.uk>,
	Kumar Gala <galak@codeaurora.org>,
	Russell King <linux@arm.linux.org.uk>,
	Stephen Warren <swarren@wwwdotorg.org>,
	Thierry Reding <thierry.reding@gmail.com>,
	Alexandre Courbot <gnurou@gmail.com>,
	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	[thread overview]
Message-ID: <1426672363-30667-7-git-send-email-tomeu.vizoso@collabora.com> (raw)
In-Reply-To: <1426672363-30667-1-git-send-email-tomeu.vizoso@collabora.com>

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 <tomeu.vizoso@collabora.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
---
 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 */
-- 
2.1.0

WARNING: multiple messages have this Message-ID (diff)
From: tomeu.vizoso@collabora.com (Tomeu Vizoso)
To: linux-arm-kernel@lists.infradead.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	[thread overview]
Message-ID: <1426672363-30667-7-git-send-email-tomeu.vizoso@collabora.com> (raw)
In-Reply-To: <1426672363-30667-1-git-send-email-tomeu.vizoso@collabora.com>

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 <tomeu.vizoso@collabora.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
---
 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 at 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 at 0,700b0400 { /* SD Card on this bus */
-- 
2.1.0

  parent reply	other threads:[~2015-03-18  9:52 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-18  9:52 [PATCH v6 00/12] Improvements to Tegra-based Chromebook support Tomeu Vizoso
2015-03-18  9:52 ` Tomeu Vizoso
2015-03-18  9:52 ` Tomeu Vizoso
2015-03-18  9:52 ` [PATCH v6 01/12] ARM: tegra: Change model of sound card in Nyan Big Tomeu Vizoso
2015-03-18  9:52   ` Tomeu Vizoso
2015-03-18  9:52 ` [PATCH v6 02/12] ARM: tegra: Move out nyan-generic parts out from the nyan-big DT Tomeu Vizoso
2015-03-18  9:52   ` Tomeu Vizoso
2015-03-18  9:52 ` [PATCH v6 03/12] drm/panel: add support for Samsung LTN140AT29 panel Tomeu Vizoso
2015-03-24 10:27   ` Thierry Reding
2015-03-18  9:52 ` [PATCH v6 04/12] ARM: tegra: Add DTS for the nyan-blaze board Tomeu Vizoso
2015-03-18  9:52   ` Tomeu Vizoso
2015-03-18  9:52   ` Tomeu Vizoso
2015-03-18  9:52 ` [PATCH v6 05/12] ARM: tegra: Add node for trackpad in Nyan boards Tomeu Vizoso
2015-03-18  9:52   ` Tomeu Vizoso
2015-03-18  9:52 ` Tomeu Vizoso [this message]
2015-03-18  9:52   ` [PATCH v6 06/12] ARM: tegra: Use pwrseq-simple for the wifi in Nyan Tomeu Vizoso
2015-03-18  9:52 ` [PATCH v6 10/12] soc/tegra: pmc: move to using a restart handler Tomeu Vizoso
2015-03-18  9:52   ` Tomeu Vizoso
2015-03-24 10:26   ` Thierry Reding
2015-03-24 10:26     ` Thierry Reding
2015-03-18  9:52 ` [PATCH v6 11/12] ARM: tegra: Add gpio-restart node Tomeu Vizoso
2015-03-18  9:52   ` Tomeu Vizoso
2015-03-18  9:52 ` [PATCH v6 12/12] ARM: tegra: The WiFi card is kept powered during suspend Tomeu Vizoso
2015-03-18  9:52   ` Tomeu Vizoso
2015-03-18  9:52 ` [PATCH v6 13/13] HACK: Hide RPMB partitions Tomeu Vizoso
     [not found]   ` <1426672363-30667-14-git-send-email-tomeu.vizoso-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
2015-03-18  9:55     ` Tomeu Vizoso
2015-03-18  9:55       ` Tomeu Vizoso
     [not found] ` <1426672363-30667-1-git-send-email-tomeu.vizoso-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
2015-03-18  9:52   ` [PATCH v6 07/12] ARM: tegra: Use the generated pinmux data Tomeu Vizoso
2015-03-18  9:52     ` Tomeu Vizoso
2015-03-18  9:52     ` Tomeu Vizoso
2015-03-18  9:52   ` [PATCH v6 08/12] ARM: tegra: Set spi-max-frequency property to flash node Tomeu Vizoso
2015-03-18  9:52     ` Tomeu Vizoso
2015-03-18  9:52     ` Tomeu Vizoso
2015-03-18  9:52   ` [PATCH v6 09/12] drm/tegra: Reset the SOR on probe Tomeu Vizoso
2015-03-18  9:52     ` Tomeu Vizoso
     [not found]     ` <1426672363-30667-10-git-send-email-tomeu.vizoso-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
2015-03-24 10:24       ` Thierry Reding
2015-03-24 10:24         ` Thierry Reding
     [not found]         ` <20150324102447.GA18115-AwZRO8vwLAwmlAP/+Wk3EA@public.gmane.org>
2015-03-25  8:59           ` [PATCH] drm/tegra: Reset the SOR during initialization Tomeu Vizoso
2015-03-25  8:59             ` Tomeu Vizoso
     [not found]             ` <1427273979-394-1-git-send-email-tomeu.vizoso-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
2015-03-26  9:24               ` Dmitry Osipenko
2015-03-26  9:24                 ` Dmitry Osipenko
2015-03-24 10:28   ` [PATCH v6 00/12] Improvements to Tegra-based Chromebook support Thierry Reding
2015-03-24 10:28     ` Thierry Reding
2015-03-24 10:28     ` Thierry Reding

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1426672363-30667-7-git-send-email-tomeu.vizoso@collabora.com \
    --to=tomeu.vizoso@collabora.com \
    --cc=devicetree@vger.kernel.org \
    --cc=galak@codeaurora.org \
    --cc=gnurou@gmail.com \
    --cc=ijc+devicetree@hellion.org.uk \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tegra@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    --cc=mark.rutland@arm.com \
    --cc=pawel.moll@arm.com \
    --cc=robh+dt@kernel.org \
    --cc=swarren@wwwdotorg.org \
    --cc=thierry.reding@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.