Commit fd7e118c authored by Javier Martinez Canillas's avatar Javier Martinez Canillas Committed by Tony Lindgren

ARM: dts: omap3-igep0020: Use MMC pwrseq to init SDIO WiFi

When the WiFi support was added to the IGEP0020 board, the MMC subsystem
did not provide a mechanism to define power sequence providers. So a DT
hack was used to toggle the WiFi chip reset and power down pins by using
fake fixed regulators whose enable GPIO was the GPIOs connected to these
pins.

But now the simple MMC power sequence provider can be used for this and
the workaround removed.
Signed-off-by: default avatarJavier Martinez Canillas <javier@osg.samsung.com>
Acked-by: default avatarEnric Balletbo Serra <enric.balletbo@collabora.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent ca17c4ff
...@@ -15,25 +15,17 @@ / { ...@@ -15,25 +15,17 @@ / {
model = "IGEPv2 Rev. C (TI OMAP AM/DM37x)"; model = "IGEPv2 Rev. C (TI OMAP AM/DM37x)";
compatible = "isee,omap3-igep0020", "ti,omap36xx", "ti,omap3"; compatible = "isee,omap3-igep0020", "ti,omap36xx", "ti,omap3";
/* Regulator to trigger the WIFI_PDN signal of the Wifi module */ vmmcsdio_fixed: fixedregulator-mmcsdio {
lbee1usjyc_pdn: lbee1usjyc_pdn {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
regulator-name = "regulator-lbee1usjyc-pdn"; regulator-name = "vmmcsdio_fixed";
regulator-min-microvolt = <3300000>; regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>; regulator-max-microvolt = <3300000>;
gpio = <&gpio5 10 GPIO_ACTIVE_HIGH>; /* gpio_138 - WIFI_PDN */
startup-delay-us = <10000>;
enable-active-high;
}; };
/* Regulator to trigger the RESET_N_W signal of the Wifi module */ mmc2_pwrseq: mmc2_pwrseq {
lbee1usjyc_reset_n_w: lbee1usjyc_reset_n_w { compatible = "mmc-pwrseq-simple";
compatible = "regulator-fixed"; reset-gpios = <&gpio5 11 GPIO_ACTIVE_LOW>, /* gpio_139 - RESET_N_W */
regulator-name = "regulator-lbee1usjyc-reset-n-w"; <&gpio5 10 GPIO_ACTIVE_LOW>; /* gpio_138 - WIFI_PDN */
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
gpio = <&gpio5 11 GPIO_ACTIVE_HIGH>; /* gpio_139 - RESET_N_W */
enable-active-high;
}; };
}; };
...@@ -51,8 +43,8 @@ OMAP3_CORE1_IOPAD(0x216a, PIN_OUTPUT | MUX_MODE4) /* sdmmc2_dat7.gpio_139 - RST_ ...@@ -51,8 +43,8 @@ OMAP3_CORE1_IOPAD(0x216a, PIN_OUTPUT | MUX_MODE4) /* sdmmc2_dat7.gpio_139 - RST_
&mmc2 { &mmc2 {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&mmc2_pins &lbee1usjyc_pins>; pinctrl-0 = <&mmc2_pins &lbee1usjyc_pins>;
vmmc-supply = <&lbee1usjyc_pdn>; vmmc-supply = <&vmmcsdio_fixed>;
vmmc_aux-supply = <&lbee1usjyc_reset_n_w>; mmc-pwrseq = <&mmc2_pwrseq>;
bus-width = <4>; bus-width = <4>;
non-removable; non-removable;
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment