Skip to contentSkip to conversation

ARM: tegra: roth: Add MMC pwrseq to power wifi on

PATCH In review Alexandre Courbot 3 participants 3 messages Jun 8, 2015 – Jul 8, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: tegra: roth: Add MMC pwrseq to power wifi on

The wifi chip on roth needs to have its reset deasserted in order to be probed. Add a mmc-pwrseq-simple to allow this to happen and get wifi working at boot time.

---
 arch/arm/boot/dts/tegra114-roth.dts | 6 ++++++
 1 file changed, 6 insertions(+)
arch/arm/boot/dts/tegra114-roth.dts +6 -0
index ea1772a686c2..04762532a178 100644
@@ -972,6 +972,11 @@
 		nvidia,invert-interrupt;
 	};
 
+	sdhci0_pwrseq: sdhci0_pwrseq {
+		compatible = "mmc-pwrseq-simple";
+		reset-gpios = <&gpio TEGRA_GPIO(CC, 5) GPIO_ACTIVE_LOW>;
+	};
+
 	/* Wifi */
 	sdhci at 78000000 {
 		status = "okay";
@@ -979,6 +984,7 @@
 		broken-cd;
 		keep-power-in-suspend;
 		cap-sdio-irq;
+		mmc-pwrseq = <&sdhci0_pwrseq>;
 	};
 
 	/* SD card */
Signature · 1 line
2.4.2
Reviewed-by on v1 1/1
#1 lore raw

Hello Alexandre,

Quoted 26 lines · Alexandre Courbot

The wifi chip on roth needs to have its reset deasserted in order to be probed. Add a mmc-pwrseq-simple to allow this to happen and get wifi working at boot time.

---
 arch/arm/boot/dts/tegra114-roth.dts | 6 ++++++
 1 file changed, 6 insertions(+)
arch/arm/boot/dts/tegra114-roth.dts +5 -0
index ea1772a686c2..04762532a178 100644
@@ -972,6 +972,11 @@
                nvidia,invert-interrupt;
        };
 
+       sdhci0_pwrseq: sdhci0_pwrseq {
+               compatible = "mmc-pwrseq-simple";
+               reset-gpios = <&gpio TEGRA_GPIO(CC, 5) GPIO_ACTIVE_LOW>;
+       };
+
        /* Wifi */
        sdhci at 78000000 {
                status = "okay";

arch/arm/boot/dts/tegra114-roth.dts line 990

Quoted 7 lines
arch/arm/boot/dts/tegra114-roth.dts +1 -0
@@ -979,6 +984,7 @@
                broken-cd;
                keep-power-in-suspend;
                cap-sdio-irq;
+               mmc-pwrseq = <&sdhci0_pwrseq>;
        };
 
        /* SD card */

I'm neither familiar with this board nor have a schematic but the patch looks good to me.

Best regards,
Javier

#2 lore raw

Ping Thierry, is this patch good to be merged?

Quoted 44 lines · Javier Martinez Canillas

Hello Alexandre,

Quoted 26 lines · Alexandre Courbot

The wifi chip on roth needs to have its reset deasserted in order to be probed. Add a mmc-pwrseq-simple to allow this to happen and get wifi working at boot time.

---
 arch/arm/boot/dts/tegra114-roth.dts | 6 ++++++
 1 file changed, 6 insertions(+)
arch/arm/boot/dts/tegra114-roth.dts +5 -0
index ea1772a686c2..04762532a178 100644
@@ -972,6 +972,11 @@
                nvidia,invert-interrupt;
        };
 
+       sdhci0_pwrseq: sdhci0_pwrseq {
+               compatible = "mmc-pwrseq-simple";
+               reset-gpios = <&gpio TEGRA_GPIO(CC, 5) GPIO_ACTIVE_LOW>;
+       };
+
        /* Wifi */
        sdhci at 78000000 {
                status = "okay";

arch/arm/boot/dts/tegra114-roth.dts line 990

Quoted 7 lines
arch/arm/boot/dts/tegra114-roth.dts +1 -0
@@ -979,6 +984,7 @@
                broken-cd;
                keep-power-in-suspend;
                cap-sdio-irq;
+               mmc-pwrseq = <&sdhci0_pwrseq>;
        };
 
        /* SD card */

I'm neither familiar with this board nor have a schematic but the patch looks good to me.

Best regards,
Javier