ARM: tegra: Use pwrseq-simple for the wifi in Nyan
authorTomeu Vizoso <tomeu.vizoso@collabora.com>
Wed, 18 Mar 2015 09:52:21 +0000 (10:52 +0100)
committerThierry Reding <treding@nvidia.com>
Tue, 24 Mar 2015 09:51:35 +0000 (10:51 +0100)
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>
Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm/boot/dts/tegra124-nyan.dtsi

index 579b0b9c7383f5b302133f7a8411f6c2af4ebf78..d3a95f937dfb8f30f80acf839eed5527140fe13f 100644 (file)
                                        regulator-name = "+1.8V_VDDIO";
                                        regulator-min-microvolt = <1800000>;
                                        regulator-max-microvolt = <1800000>;
-                                       regulator-boot-on;
                                        regulator-always-on;
                                };
 
                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 */